Home
last modified time | relevance | path

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

12345

/device/linaro/bootloader/edk2/StdLib/BsdSocketLib/
Dres_init.c155 register char *cp, **pp; in res_init() local
215 if (issetugid() == 0 && (cp = getenv("LOCALDOMAIN")) != NULL) in res_init()
217 if ((cp = getenv("LOCALDOMAIN")) != NULL) in res_init()
220 (void)strncpy(_res.defdname, cp, sizeof(_res.defdname) - 1); in res_init()
231 cp = _res.defdname; in res_init()
233 *pp++ = cp; in res_init()
234 for (n = 0; *cp && pp < _res.dnsrch + MAXDNSRCH; cp++) { in res_init()
235 if (*cp == '\n') /* silly backwards compat */ in res_init()
237 else if (*cp == ' ' || *cp == '\t') { in res_init()
238 *cp = 0; in res_init()
[all …]
Dgetnetbyht.c93 register char *cp, **q; in getnetent() local
103 cp = strpbrk(p, "#\n"); in getnetent()
104 if (cp == NULL) in getnetent()
106 *cp = '\0'; in getnetent()
108 cp = strpbrk(p, " \t"); in getnetent()
109 if (cp == NULL) in getnetent()
111 *cp++ = '\0'; in getnetent()
112 while (*cp == ' ' || *cp == '\t') in getnetent()
113 cp++; in getnetent()
114 p = strpbrk(cp, " \t"); in getnetent()
[all …]
Dgetprotoent.c77 register char *cp, **q; in getprotoent() local
86 cp = strpbrk(p, "#\n"); in getprotoent()
87 if (cp == NULL) in getprotoent()
89 *cp = '\0'; in getprotoent()
91 cp = strpbrk(p, " \t"); in getprotoent()
92 if (cp == NULL) in getprotoent()
94 *cp++ = '\0'; in getprotoent()
95 while (*cp == ' ' || *cp == '\t') in getprotoent()
96 cp++; in getprotoent()
97 p = strpbrk(cp, " \t"); in getprotoent()
[all …]
Dres_mkquery.c116 register u_char *cp; in res_mkquery() local
140 cp = buf + HFIXEDSZ; in res_mkquery()
154 if ((n = dn_comp(dname, cp, buflen, dnptrs, lastdnptr)) < 0) in res_mkquery()
156 cp += n; in res_mkquery()
158 __putshort((u_int16_t)type, cp); in res_mkquery()
159 cp += INT16SZ; in res_mkquery()
160 __putshort((u_int16_t)class, cp); in res_mkquery()
161 cp += INT16SZ; in res_mkquery()
169 n = dn_comp((char *)data, cp, buflen, dnptrs, lastdnptr); in res_mkquery()
172 cp += n; in res_mkquery()
[all …]
Dgetnetbynis.c59 register char *cp, **q; in _getnetbynis() local
87 if ((cp = index(result, '\n'))) in _getnetbynis()
88 *cp = '\0'; in _getnetbynis()
90 cp = strpbrk(result, " \t"); in _getnetbynis()
91 *cp++ = '\0'; in _getnetbynis()
94 while (*cp == ' ' || *cp == '\t') in _getnetbynis()
95 cp++; in _getnetbynis()
97 h.n_net = inet_network(cp); in _getnetbynis()
101 cp = strpbrk(cp, " \t"); in _getnetbynis()
102 if (cp != NULL) in _getnetbynis()
[all …]
Dres_debug.c295 p_cdnname(const u_char *cp, const u_char *msg, int len, FILE *file) { in p_cdnname() argument
299 if ((n = dn_expand(msg, msg + len, cp, name, sizeof name)) < 0) in p_cdnname()
305 return (cp + n); in p_cdnname()
309 p_cdname(const u_char *cp, const u_char *msg, FILE *file) { in p_cdname() argument
310 return (p_cdnname(cp, msg, PACKETSZ, file)); in p_cdname()
318 const u_char *cp, in p_fqnname() argument
327 if ((n = dn_expand(msg, cp + msglen, cp, name, namelen)) < 0) in p_fqnname()
336 return (cp + n); in p_fqnname()
342 p_fqname(const u_char *cp, const u_char *msg, FILE *file) { in p_fqname() argument
346 n = p_fqnname(cp, msg, MAXCDNAME, name, sizeof name); in p_fqname()
[all …]
Dgethostbynis.c60 register char *cp, **q; in _gethostbynis() local
89 if ((cp = index(result, '\n'))) in _gethostbynis()
90 *cp = '\0'; in _gethostbynis()
92 cp = strpbrk(result, " \t"); in _gethostbynis()
93 *cp++ = '\0'; in _gethostbynis()
99 while (*cp == ' ' || *cp == '\t') in _gethostbynis()
100 cp++; in _gethostbynis()
101 h.h_name = cp; in _gethostbynis()
103 cp = strpbrk(cp, " \t"); in _gethostbynis()
104 if (cp != NULL) in _gethostbynis()
[all …]
Dgethostbyht.c114 register char *cp, **q; in gethostent() local
128 if ( NULL == (cp = strpbrk(p, "#\n"))) in gethostent()
130 *cp = '\0'; in gethostent()
131 if ( NULL == (cp = strpbrk(p, " \t"))) in gethostent()
133 *cp++ = '\0'; in gethostent()
154 while (*cp == ' ' || *cp == '\t') in gethostent()
155 cp++; in gethostent()
156 host.h_name = cp; in gethostent()
158 if ((cp = strpbrk(cp, " \t\r")) != NULL) in gethostent()
159 *cp++ = '\0'; in gethostent()
[all …]
Dres_update.c127 u_char *cp, *eom; in res_update() local
217 cp = answer + HFIXEDSZ; in res_update()
220 n = dn_skipname(cp, eom); in res_update()
221 if (n < 0 || cp + n + 2 * INT16SZ > eom) in res_update()
223 cp += n + 2 * INT16SZ; in res_update()
246 if ((n = dn_expand(answer, eom, cp, zname, in res_update()
249 cp += n; in res_update()
250 if (cp + 2 * INT16SZ > eom) in res_update()
252 GETSHORT(type, cp); in res_update()
253 GETSHORT(class, cp); in res_update()
[all …]
Dgetservent.c212 register char *cp, **q; in getservent() local
243 cp = strpbrk(p, "#\n"); in getservent()
244 if (cp == NULL) in getservent()
246 *cp = '\0'; in getservent()
254 cp = strpbrk(p, ",/"); in getservent()
255 if (cp == NULL) in getservent()
257 *cp++ = '\0'; in getservent()
259 serv.s_proto = cp; in getservent()
261 cp = strpbrk(cp, " \t"); in getservent()
262 if (cp != NULL) in getservent()
[all …]
Dns_ntoa.c52 register char *cp; in ns_ntoa() local
59 cp = spectHex(obuf); in ns_ntoa()
60 cp2 = cp + 1; in ns_ntoa()
64 sprintf(cp, ".0"); in ns_ntoa()
65 cp += 2; in ns_ntoa()
68 sprintf(cp, ".%x", *up++); in ns_ntoa()
70 while (*cp) cp++; in ns_ntoa()
71 sprintf(cp, "%02x", *up++); in ns_ntoa()
73 cp = spectHex(cp2); in ns_ntoa()
76 sprintf(cp, ".%x", port); in ns_ntoa()
[all …]
Dres_mkupdate.c113 u_char *cp, *sp2, *startp, *endp; in res_mkupdate() local
138 cp = buf + HFIXEDSZ; in res_mkupdate()
212 if ((n = dn_comp(rrecp->r_dname, cp, buflen, dnptrs, in res_mkupdate()
215 cp += n; in res_mkupdate()
217 PUTSHORT(rtype, cp); in res_mkupdate()
218 PUTSHORT(rclass, cp); in res_mkupdate()
225 PUTLONG(rttl, cp); in res_mkupdate()
226 sp2 = cp; /* save pointer to length byte */ in res_mkupdate()
227 cp += INT16SZ; in res_mkupdate()
247 PUTLONG(n1, cp); in res_mkupdate()
[all …]
Dgethostbydns.c182 cp += x; \
183 if (cp > eom) { \
201 register const u_char *cp; in gethostanswer() local
235 cp = answer->buf; in gethostanswer()
241 n = dn_expand(answer->buf, eom, cp, bp, buflen); in gethostanswer()
272 while (ancount-- > 0 && cp < eom && !had_error) { in gethostanswer()
273 n = dn_expand(answer->buf, eom, cp, bp, buflen); in gethostanswer()
278 cp += n; /* name */ in gethostanswer()
279 BOUNDS_CHECK(cp, 3 * INT16SZ + INT32SZ); in gethostanswer()
280 type = _getshort(cp); in gethostanswer()
[all …]
Dns_name.c92 const u_char *cp; in ns_name_ntop() local
97 cp = src; in ns_name_ntop()
101 while ((n = *cp++) != 0) { in ns_name_ntop()
119 c = *cp++; in ns_name_ntop()
175 char *cp; in ns_name_pton() local
184 if ((cp = strchr(digits, c)) != NULL) { in ns_name_pton()
185 n = (int)(cp - digits) * 100; in ns_name_pton()
187 (cp = strchr(digits, c)) == NULL) { in ns_name_pton()
191 n += (int)(cp - digits) * 10; in ns_name_pton()
193 (cp = strchr(digits, c)) == NULL) { in ns_name_pton()
[all …]
Dgetnetnamadr.c84 char *cp, *p, buf[BUFSIZ]; in init_services() local
98 while ((cp = strsep(&p, "\n \t,:;")) != NULL && *cp == '\0') in init_services()
100 if (cp == NULL) in init_services()
103 if (isalpha(cp[0])) { in init_services()
104 service_order[cc] = get_service_name(cp); in init_services()
108 while ((cp = strsep(&p, "\n \t,:;")) != NULL && *cp == '\0') in init_services()
110 } while(cp != NULL && cc < SERVICE_MAX); in init_services()
Dgetnetbydns.c122 register u_char *cp; in getnetanswer() local
152 cp = answer->buf + HFIXEDSZ; in getnetanswer()
161 cp += __dn_skipname(cp, eom) + QFIXEDSZ; in getnetanswer()
166 while (--ancount >= 0 && cp < eom) { in getnetanswer()
167 n = dn_expand(answer->buf, eom, cp, bp, buflen); in getnetanswer()
170 cp += n; in getnetanswer()
174 GETSHORT(type, cp); in getnetanswer()
175 GETSHORT(class, cp); in getnetanswer()
176 cp += INT32SZ; /* TTL */ in getnetanswer()
177 GETSHORT(n, cp); in getnetanswer()
[all …]
Dgetprotoname.c47 register char **cp; in getprotobyname() local
53 for (cp = p->p_aliases; *cp != 0; cp++) in getprotobyname()
54 if (strcmp(*cp, name) == 0) in getprotobyname()
/device/linaro/bootloader/edk2/CryptoPkg/Library/OpensslLib/
DInstall.sh4 cp e_os2.h ../../../Include/openssl
5 cp crypto/crypto.h ../../../Include/openssl
6 cp crypto/opensslv.h ../../../Include/openssl
7 cp crypto/opensslconf.h ../../../Include/openssl
8 cp crypto/ebcdic.h ../../../Include/openssl
9 cp crypto/symhacks.h ../../../Include/openssl
10 cp crypto/ossl_typ.h ../../../Include/openssl
11 cp crypto/objects/objects.h ../../../Include/openssl
12 cp crypto/objects/obj_mac.h ../../../Include/openssl
13 cp crypto/md4/md4.h ../../../Include/openssl
[all …]
/device/linaro/bootloader/edk2/StdLib/LibC/Stdio/
Dfparseln.c80 const char *cp; in isescaped() local
91 for (ne = 0, cp = p; --cp >= sp && *cp == esc; ne++) in isescaped()
111 char *ptr, *cp; in fparseln() local
149 for (cp = ptr; cp < ptr + s; cp++) in fparseln()
150 if (*cp == com && !isescaped(ptr, cp, esc)) { in fparseln()
151 s = cp - ptr; in fparseln()
158 cp = &ptr[s - 1]; in fparseln()
160 if (*cp == nl) in fparseln()
165 cp = &ptr[s - 1]; in fparseln()
167 if (*cp == con && !isescaped(ptr, cp, esc)) { in fparseln()
[all …]
Dvsnprintf_ss.c125 char *cp; /* handy char pointer (short term usage) */ local
150 cp = NULL; /* XXX: shutup gcc */
262 *(cp = bf) = va_arg(ap, int);
317 if ((cp = va_arg(ap, char *)) == NULL)
319 cp = __UNCONST("(null)");
326 char *p = memchr(cp, 0, (size_t)prec);
329 size = p - cp;
335 size = strlen(cp);
371 cp = bf + sizeof(bf);
381 *--cp = to_char(_uquad & 7);
[all …]
/device/linaro/bootloader/edk2/StdLib/LibC/NetUtil/
Dinet_network.c66 inet_network(const char *cp) in __weak_alias()
74 _DIAGASSERT(cp != NULL); in __weak_alias()
78 if (*cp == '0') in __weak_alias()
79 digit = 1, base = 8, cp++; in __weak_alias()
80 if (*cp == 'x' || *cp == 'X') in __weak_alias()
81 base = 16, cp++; in __weak_alias()
82 while ((c = *cp) != 0) { in __weak_alias()
87 cp++; in __weak_alias()
93 cp++; in __weak_alias()
101 if (*cp == '.') { in __weak_alias()
[all …]
Dinet_addr.c112 inet_addr(const char *cp) { in __weak_alias()
115 if (inet_aton(cp, &val)) in __weak_alias()
128 inet_aton(const char *cp, struct in_addr *addr) { in inet_aton() argument
136 c = *cp; in inet_aton()
147 c = *++cp; in inet_aton()
149 base = 16, c = *++cp; in inet_aton()
160 c = *++cp; in inet_aton()
166 c = *++cp; in inet_aton()
181 c = *++cp; in inet_aton()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dimageop.c22 #define CHARP(cp, xmax, x, y) ((char *)(cp+y*xmax+x)) argument
23 #define SHORTP(cp, xmax, x, y) ((short *)(cp+2*(y*xmax+x))) argument
24 #define LONGP(cp, xmax, x, y) ((Py_Int32 *)(cp+4*(y*xmax+x))) argument
118 char *cp, *ncp; in imageop_crop() local
125 if ( !PyArg_ParseTuple(args, "s#iiiiiii", &cp, &len, &size, &x, &y, in imageop_crop()
159 *ncp++ = *CHARP(cp, x, ix, iy); in imageop_crop()
161 *nsp++ = *SHORTP(cp, x, ix, iy); in imageop_crop()
163 *nlp++ = *LONGP(cp, x, ix, iy); in imageop_crop()
173 char *cp, *ncp; in imageop_scale() local
182 &cp, &len, &size, &x, &y, &newx, &newy) ) in imageop_scale()
[all …]
/device/google/accessory/demokit/
Dmake-download.sh32 cp -r demokit/firmware/* ADK_release_${dateStamp}/arduino_libs/AndroidAccessory/examples
35 cp -r demokit/app ADK_release_${dateStamp}
36 cp -r demokit/hardware ADK_release_${dateStamp}
39 cp demokit/COPYING ADK_release_${dateStamp}
40 cp demokit/README ADK_release_${dateStamp}
43 cp -r arduino/* ADK_release_${dateStamp}/arduino_libs
/device/linaro/bootloader/edk2/ArmPkg/Include/Chipset/
DArmV7.h53 #define CPACR_CP_DENIED(cp) 0x00 argument
54 #define CPACR_CP_PRIV(cp) ((0x1 << ((cp) << 1)) & 0x0FFFFFFF) argument
55 #define CPACR_CP_FULL(cp) ((0x3 << ((cp) << 1)) & 0x0FFFFFFF) argument
61 #define NSACR_CP(cp) ((1 << (cp)) & 0x3FFF) argument

12345