Home
last modified time | relevance | path

Searched refs:cp (Results 1 – 25 of 369) sorted by relevance

12345678910>>...15

/glibc-2.36/localedata/
Dtst-ctype.c66 const char *cp; in do_test() local
131 for (cp = lower; *cp != '\0'; ++cp) in do_test()
132 if (! islower (*cp)) in do_test()
133 FAIL ("islower ('%c') not true", *cp); in do_test()
134 for (cp = upper; *cp != '\0'; ++cp) in do_test()
135 if (islower (*cp)) in do_test()
136 FAIL ("islower ('%c') is true", *cp); in do_test()
137 for (cp = digits; *cp != '\0'; ++cp) in do_test()
138 if (islower (*cp)) in do_test()
139 FAIL ("islower ('%c') is true", *cp); in do_test()
[all …]
/glibc-2.36/iconvdata/
Dgbk.c13225 const char *cp = buf; \
13235 cp = __gbk_from_ucs4_tab1[ch - 0xa4]; \
13238 cp = "\xa8\xa5"; \
13241 cp = "\xa8\xa7"; \
13244 cp = "\xa8\xa9"; \
13247 cp = "\xa8\xbd"; \
13250 cp = "\xa8\xbe"; \
13253 cp = "\xa8\xad"; \
13256 cp = "\xa8\xb1"; \
13259 cp = "\xa8\xa3"; \
[all …]
Dgb2312.h74 const char *cp = buf; in size_t() local
79 cp = __gb2312_from_ucs4_tab1[ch - 0xa4]; in size_t()
82 cp = "\x28\x25"; in size_t()
85 cp = "\x28\x27"; in size_t()
88 cp = "\x28\x29"; in size_t()
91 cp = "\x28\x2d"; in size_t()
94 cp = "\x28\x31"; in size_t()
97 cp = "\x28\x23"; in size_t()
100 cp = "\x28\x2b"; in size_t()
103 cp = "\x28\x2f"; in size_t()
[all …]
Dbig5.c8467 const char *cp; \
8474 cp = from_ucs4_tab2[ch - 0x2c7]; \
8477 cp = from_ucs4_tab3[ch - 0x391]; \
8480 cp = from_ucs4_tab4[ch - 0x2013]; \
8483 cp = "\xa3\xe1"; \
8486 cp = "\xa2\x4a"; \
8489 cp = "\xa1\xc1"; \
8492 cp = "\xa2\x4b"; \
8495 cp = from_ucs4_tab5[ch - 0x2160]; \
8498 cp = from_ucs4_tab6[ch - 0x2190]; \
[all …]
Dcns11643.h147 const char *cp = buf; in size_t() local
153 cp = __cns11643l1_from_ucs4_tab1[ch - 0xa7]; in size_t()
156 cp = __cns11643l1_from_ucs4_tab2[ch - 0x2c7]; in size_t()
159 cp = __cns11643l1_from_ucs4_tab3[ch - 0x391]; in size_t()
162 cp = __cns11643l1_from_ucs4_tab4[ch - 0x2013]; in size_t()
165 cp = "\x22\x6a"; in size_t()
168 cp = "\x22\x22"; in size_t()
171 cp = "\x22\x6b"; in size_t()
182 cp = __cns11643l1_from_ucs4_tab5[ch - 0x2190]; in size_t()
185 cp = __cns11643l1_from_ucs4_tab6[ch - 0x2215]; in size_t()
[all …]
Dcns11643l1.h78 const char *cp = buf; in size_t() local
83 cp = __cns11643l1_from_ucs4_tab1[ch - 0xa7]; in size_t()
86 cp = __cns11643l1_from_ucs4_tab2[ch - 0x2c7]; in size_t()
89 cp = __cns11643l1_from_ucs4_tab3[ch - 0x391]; in size_t()
92 cp = __cns11643l1_from_ucs4_tab4[ch - 0x2013]; in size_t()
95 cp = "\x22\x6a"; in size_t()
98 cp = "\x22\x22"; in size_t()
101 cp = "\x22\x6b"; in size_t()
112 cp = __cns11643l1_from_ucs4_tab5[ch - 0x2190]; in size_t()
115 cp = __cns11643l1_from_ucs4_tab6[ch - 0x2215]; in size_t()
[all …]
Dgb18030.c24272 const unsigned char *cp = NULL; \
24276 cp = __ucs_to_gb18030_tab1[ch - 0x80]; \
24277 if (*cp && *cp < 0x81) \
24279 idx = (cp[0] - 0x20) * 256 + cp[1]; \
24282 if (cp[0] == 0 && cp[1] == 0) \
24292 cp = __ucs_to_gb18030_tab2[ch - 0xE000]; \
24293 if ((cp[0] != 0 || cp[1] != 0) && cp[0] < 0x81) \
24295 idx = cp[0] * 256 + cp[1] + 7456; \
24298 else if (cp[0] == 0 && cp[1] == 0) \
24308 cp = __ucs_to_gb18030_tab2[ch - 0xE000 - 4295]; \
[all …]
Diso_6937-2.c462 const char *cp; \
470 cp = "\xcf\x20"; \
479 cp = tmp; \
483 cp = "\xd0"; \
486 cp = "\xa9"; \
489 cp = "\xb9"; \
492 cp = "\xaa"; \
495 cp = "\xba"; \
498 cp = "\xd4"; \
501 cp = "\xe0"; \
[all …]
/glibc-2.36/resolv/
Dres_init.c258 char *cp; in res_vinit_1() local
263 if ((cp = getenv ("LOCALDOMAIN")) != NULL) in res_vinit_1()
266 cp = __strdup (cp); in res_vinit_1()
267 if (cp == NULL) in res_vinit_1()
270 parser->search_list_store = cp; in res_vinit_1()
274 search_list_add (&parser->search_list, cp); in res_vinit_1()
281 for (bool in_name = true; *cp != '\0'; cp++) in res_vinit_1()
283 if (*cp == '\n') in res_vinit_1()
285 *cp = '\0'; in res_vinit_1()
288 else if (*cp == ' ' || *cp == '\t') in res_vinit_1()
[all …]
Dres_debug.c334 p_cdnname(const u_char *cp, const u_char *msg, int len, FILE *file) { in p_cdnname() argument
338 if ((n = __libc_dn_expand (msg, msg + len, cp, name, sizeof name)) < 0) in p_cdnname()
344 return (cp + n); in p_cdnname()
349 p_cdname(const u_char *cp, const u_char *msg, FILE *file) { in libresolv_hidden_def()
350 return (p_cdnname(cp, msg, PACKETSZ, file)); in libresolv_hidden_def()
357 p_fqnname (const u_char *cp, const u_char *msg, int msglen, char *name, in p_fqnname() argument
362 if ((n = __libc_dn_expand (msg, cp + msglen, cp, name, namelen)) < 0) in p_fqnname()
371 return (cp + n); in p_fqnname()
378 p_fqname(const u_char *cp, const u_char *msg, FILE *file) { in libresolv_hidden_def()
382 n = p_fqnname(cp, msg, MAXCDNAME, name, sizeof name); in libresolv_hidden_def()
[all …]
Dcompat-gethnamaddr.c124 cp += x; \
125 if (cp > eom) { \
144 const u_char *cp; in getanswer() local
176 cp = answer->buf; in getanswer()
182 n = __libc_dn_expand (answer->buf, eom, cp, bp, buflen); in getanswer()
212 while (ancount-- > 0 && cp < eom && !had_error) { in getanswer()
213 n = __libc_dn_expand (answer->buf, eom, cp, bp, buflen); in getanswer()
218 cp += n; /* name */ in getanswer()
219 BOUNDS_CHECK(cp, 3 * INT16SZ + INT32SZ); in getanswer()
220 type = ns_get16(cp); in getanswer()
[all …]
/glibc-2.36/posix/
Dtst-fnmatch.c60 char *cp; in do_test() local
79 cp = linebuf; in do_test()
81 locale = next_input (&cp, 1, 0); in do_test()
85 input = next_input (&cp, 0, 0); in do_test()
89 pattern = next_input (&cp, 0, 0); in do_test()
93 result_str = next_input (&cp, 0, 0); in do_test()
109 flags = next_input (&cp, 0, 1); in do_test()
168 char *cp = *line; in next_input() local
171 while (*cp == ' ' || *cp == '\t') in next_input()
172 ++cp; in next_input()
[all …]
/glibc-2.36/hesiod/
Dhesiod.c80 char *cp; in hesiod_init() local
102 if ((cp = __libc_secure_getenv("HES_DOMAIN")) != NULL) { in hesiod_init()
104 ctx->RHS = malloc(strlen(cp)+2); in hesiod_init()
107 if (cp[0] == '.') in hesiod_init()
108 strcpy(ctx->RHS, cp); in hesiod_init()
111 strcpy(ctx->RHS + 1, cp); in hesiod_init()
155 const char *RHS, *cp; in hesiod_to_bind() local
159 if ((cp = strchr(name, '@')) != NULL) { in hesiod_to_bind()
160 if (strchr(cp + 1, '.')) in hesiod_to_bind()
161 RHS = cp + 1; in hesiod_to_bind()
[all …]
/glibc-2.36/string/
Dstrchrnul.c138 const unsigned char *cp = (const unsigned char *) (longword_ptr - 1); in STRCHRNUL() local
140 if (*cp == c || *cp == '\0') in STRCHRNUL()
141 return (char *) cp; in STRCHRNUL()
142 if (*++cp == c || *cp == '\0') in STRCHRNUL()
143 return (char *) cp; in STRCHRNUL()
144 if (*++cp == c || *cp == '\0') in STRCHRNUL()
145 return (char *) cp; in STRCHRNUL()
146 if (*++cp == c || *cp == '\0') in STRCHRNUL()
147 return (char *) cp; in STRCHRNUL()
150 if (*++cp == c || *cp == '\0') in STRCHRNUL()
[all …]
Dstrchr.c138 const unsigned char *cp = (const unsigned char *) (longword_ptr - 1); in STRCHR() local
140 if (*cp == c) in STRCHR()
141 return (char *) cp; in STRCHR()
142 else if (*cp == '\0') in STRCHR()
144 if (*++cp == c) in STRCHR()
145 return (char *) cp; in STRCHR()
146 else if (*cp == '\0') in STRCHR()
148 if (*++cp == c) in STRCHR()
149 return (char *) cp; in STRCHR()
150 else if (*cp == '\0') in STRCHR()
[all …]
Dtester.c80 char *cp; variable
135 char *cp; \
139 for (cp = one, __n = 0; __n < n; ++__n, ++cp) \
140 check (*cp == '0' + (n % 10), ntest); \
141 check (*cp == '\0', ntest); \
598 cp = strchrnul ((os = "abcd"), 'z'); in test_strchrnul()
599 check (*cp == '\0', 1); /* Not found. */ in test_strchrnul()
600 check (cp == os + 4, 2); in test_strchrnul()
620 cp = strchrnul (p, '/'); in test_strchrnul()
621 check (*cp == '\0', 9+2*i); in test_strchrnul()
[all …]
Dstrlen.c76 const char *cp = (const char *) (longword_ptr - 1); in STRLEN() local
78 if (cp[0] == 0) in STRLEN()
79 return cp - str; in STRLEN()
80 if (cp[1] == 0) in STRLEN()
81 return cp - str + 1; in STRLEN()
82 if (cp[2] == 0) in STRLEN()
83 return cp - str + 2; in STRLEN()
84 if (cp[3] == 0) in STRLEN()
85 return cp - str + 3; in STRLEN()
88 if (cp[4] == 0) in STRLEN()
[all …]
Dmemrchr.c158 const unsigned char *cp = (const unsigned char *) longword_ptr; in __memrchr() local
161 if (cp[7] == c) in __memrchr()
162 return (void *) &cp[7]; in __memrchr()
163 if (cp[6] == c) in __memrchr()
164 return (void *) &cp[6]; in __memrchr()
165 if (cp[5] == c) in __memrchr()
166 return (void *) &cp[5]; in __memrchr()
167 if (cp[4] == c) in __memrchr()
168 return (void *) &cp[4]; in __memrchr()
170 if (cp[3] == c) in __memrchr()
[all …]
Dstrnlen.c124 const char *cp = (const char *) (longword_ptr - 1); in __strnlen() local
126 char_ptr = cp; in __strnlen()
127 if (cp[0] == 0) in __strnlen()
129 char_ptr = cp + 1; in __strnlen()
130 if (cp[1] == 0) in __strnlen()
132 char_ptr = cp + 2; in __strnlen()
133 if (cp[2] == 0) in __strnlen()
135 char_ptr = cp + 3; in __strnlen()
136 if (cp[3] == 0) in __strnlen()
140 char_ptr = cp + 4; in __strnlen()
[all …]
/glibc-2.36/stdlib/
Dgrouping.c69 const STRING_TYPE *cp = end - 1; in __correctly_grouped_prefixwc() local
73 while (cp >= begin) in __correctly_grouped_prefixwc()
76 if (*cp == thousands) in __correctly_grouped_prefixwc()
79 if (cp[thousands_len - 1] == *thousands) in __correctly_grouped_prefixwc()
82 if (thousands[cnt] != cp[thousands_len - 1 - cnt]) in __correctly_grouped_prefixwc()
88 --cp; in __correctly_grouped_prefixwc()
93 if (cp < begin) in __correctly_grouped_prefixwc()
96 if (end - cp == (int) *gp + 1) in __correctly_grouped_prefixwc()
102 if (cp < begin) in __correctly_grouped_prefixwc()
110 new_end = cp - 1; in __correctly_grouped_prefixwc()
[all …]
/glibc-2.36/intl/
Dexplodename.c59 char *cp; in _nl_explode_name() local
70 *language = cp = name; in _nl_explode_name()
71 cp = _nl_find_language (*language); in _nl_explode_name()
73 if (*language == cp) in _nl_explode_name()
76 cp = strchr (*language, '\0'); in _nl_explode_name()
79 if (cp[0] == '_') in _nl_explode_name()
82 cp[0] = '\0'; in _nl_explode_name()
83 *territory = ++cp; in _nl_explode_name()
85 while (cp[0] != '\0' && cp[0] != '.' && cp[0] != '@') in _nl_explode_name()
86 ++cp; in _nl_explode_name()
[all …]
/glibc-2.36/nss/nss_files/
Dfiles-netgrp.c169 char *cp = str; in libc_hidden_def() local
172 while (isspace (*cp)) in libc_hidden_def()
173 cp++; in libc_hidden_def()
175 str = cp; in libc_hidden_def()
176 while (*cp != '\0' && ! isspace(*cp)) in libc_hidden_def()
177 cp++; in libc_hidden_def()
180 *cp = '\0'; in libc_hidden_def()
191 char *cp = *cursor; in _nss_netgroup_parseline() local
194 if (cp == NULL) in _nss_netgroup_parseline()
198 while (isspace (*cp)) in _nss_netgroup_parseline()
[all …]
/glibc-2.36/nscd/
Dcachedumper.c43 data_string (unsigned char *cp, const char *str, int len) in data_string() argument
46 unsigned char *cpe = cp + len; in data_string()
48 while (len == -1 || cp < cpe) in data_string()
50 if (isgraph (*cp)) in data_string()
51 putchar (*cp); in data_string()
53 printf ("\033[%dm<%02x>\033[0m", *cp % 6 + 31, *cp); in data_string()
54 if (len == -1 && *cp == 0) in data_string()
55 return cp + 1; in data_string()
57 ++cp; in data_string()
61 return cp; in data_string()
[all …]
/glibc-2.36/nis/
Dnis_ismember.c34 char *cp, *cp2; in internal_ismember() local
37 cp = stpcpy (buf, nis_leaf_of_r (group, leafbuf, sizeof (leafbuf) - 1)); in internal_ismember()
38 cp = stpcpy (cp, ".groups_dir"); in internal_ismember()
42 *cp++ = '.'; in internal_ismember()
43 strcpy (cp, cp2); in internal_ismember()
64 cp = NIS_RES_OBJECT (res)->GR_data.gr_members.gr_members_val[i]; in internal_ismember()
65 if (cp[0] == '-') in internal_ismember()
67 if (strcmp (&cp[1], principal) == 0) in internal_ismember()
72 if (cp[1] == '@') in internal_ismember()
73 switch (internal_ismember (principal, &cp[2])) in internal_ismember()
[all …]
/glibc-2.36/crypt/
Dsha512-crypt.c110 char *cp; in __sha512_crypt_r() local
246 cp = p_bytes = (char *) alloca (key_len); in __sha512_crypt_r()
249 free_pbytes = cp = p_bytes = (char *)malloc (key_len); in __sha512_crypt_r()
258 cp = mempcpy (cp, temp_result, 64); in __sha512_crypt_r()
259 memcpy (cp, temp_result, cnt); in __sha512_crypt_r()
272 cp = s_bytes = alloca (salt_len); in __sha512_crypt_r()
274 cp = mempcpy (cp, temp_result, 64); in __sha512_crypt_r()
275 memcpy (cp, temp_result, cnt); in __sha512_crypt_r()
315 cp = __stpncpy (buffer, sha512_salt_prefix, MAX (0, buflen)); in __sha512_crypt_r()
320 int n = __snprintf (cp, MAX (0, buflen), "%s%zu$", in __sha512_crypt_r()
[all …]

12345678910>>...15