/system/netd/resolv/ |
D | res_mkquery.cpp | 112 u_char *cp, *ep; in res_nmkquery() local 131 ep = buf + buflen; in res_nmkquery() 143 if (ep - cp < QFIXEDSZ) return (-1); in res_nmkquery() 144 if ((n = dn_comp(dname, cp, ep - cp - QFIXEDSZ, dnptrs, lastdnptr)) < 0) return (-1); in res_nmkquery() 155 if ((ep - cp) < RRFIXEDSZ) return (-1); in res_nmkquery() 156 n = dn_comp((const char*) data, cp, ep - cp - RRFIXEDSZ, dnptrs, lastdnptr); in res_nmkquery() 174 if (ep - cp < 1 + RRFIXEDSZ + datalen) return (-1); in res_nmkquery() 203 u_char *cp, *ep; in res_nopt() local 210 ep = buf + buflen; in res_nopt() 212 if ((ep - cp) < 1 + RRFIXEDSZ) return (-1); in res_nopt()
|
D | gethnamaddr.cpp | 110 static void convert_v4v6_hostent(struct hostent* hp, char** bpp, char* ep, 115 static void pad_v4v6_hostent(struct hostent* hp, char** bpp, char* ep); 152 char *bp, **hap, *ep; in getanswer() local 188 ep = buf + buflen; in getanswer() 193 n = dn_expand(answer->buf, eom, cp, bp, (int) (ep - bp)); in getanswer() 214 n = dn_expand(answer->buf, eom, cp, bp, (int) (ep - bp)); in getanswer() 252 if (n > ep - bp || n >= MAXHOSTNAMELEN) { in getanswer() 256 strlcpy(bp, tbuf, (size_t)(ep - bp)); in getanswer() 271 if (n > ep - bp || n >= MAXHOSTNAMELEN) { in getanswer() 275 strlcpy(bp, tbuf, (size_t)(ep - bp)); in getanswer() [all …]
|
D | getaddrinfo.cpp | 214 char* ep; in str2number() local 220 ep = NULL; in str2number() 222 v = strtoul(p, &ep, 10); in str2number() 223 if (errno == 0 && ep && *ep == '\0' && v <= UINT_MAX) in str2number() 772 char* ep; in ip6_str2scopeid() local 804 lscopeid = strtoul(scope, &ep, 10); in ip6_str2scopeid() 806 if (errno == 0 && ep && *ep == '\0' && *scopeid == lscopeid) in ip6_str2scopeid() 839 char *bp, *ep; in getanswer() local 870 ep = hostbuf + sizeof hostbuf; in getanswer() 877 n = dn_expand(answer->buf, eom, cp, bp, ep - bp); in getanswer() [all …]
|
/system/core/libutils/ |
D | ProcessCallStack.cpp | 154 dirent* ep; in update() local 155 while ((ep = readdir(dp.get())) != nullptr) { in update() 157 sscanf(ep->d_name, "%d", &tid); in update() 162 __FUNCTION__, PATH_SELF_TASK, ep->d_name); in update()
|
/system/core/liblog/ |
D | event_tag_map.cpp | 252 char* ep; in scanTagLine() local 253 unsigned long val = strtoul(pData, &ep, 10); in scanTagLine() 254 const char* cp = ep; in scanTagLine() 521 char* ep; in __getEventTag() local 522 unsigned long val = strtoul(buf, &ep, 10); // return size in __getEventTag() 523 const char* cp = ep; in __getEventTag() 578 const char* ep = endOfTag(tagname); in android_lookupEventTagNum() local 579 size_t len = ep - tagname; in android_lookupEventTagNum() 580 if (!len || *ep) { in android_lookupEventTagNum()
|
/system/core/toolbox/upstream-netbsd/usr.bin/grep/ |
D | grep.c | 321 char *ep; in main() local 425 l = strtoull(optarg, &ep, 10); in main() 429 else if (ep[0] != '\0') { in main() 516 mcount = strtoull(optarg, &ep, 10); in main() 520 else if (ep[0] != '\0') { in main()
|
/system/core/logcat/tests/ |
D | logcat_test.cpp | 229 char* ep = cp; in fgetLongTime() local 230 while (isdigit(*ep)) { in fgetLongTime() 231 ++ep; in fgetLongTime() 233 if ((*ep != '-') && (*ep != '.')) { in fgetLongTime() 237 while (((ep = strchr(ep, ':'))) && (*++ep != ' ')) { in fgetLongTime() 238 if (isdigit(ep[0]) && isdigit(ep[1]) && isdigit(ep[2])) break; in fgetLongTime() 240 if (!ep) { in fgetLongTime() 244 ep -= pid_field_width; in fgetLongTime() 245 *ep = '\0'; in fgetLongTime()
|
/system/core/logd/ |
D | LogKlog.cpp | 245 char* ep = buffer + len; in onDataAvailable() local 246 *ep = '\0'; in onDataAvailable() 251 if (((tok + sublen) >= ep) && (retval != 0) && full) { in onDataAvailable() 271 const char* ep = real.strptime(real_string, real_format); in calculateCorrection() local 272 if (!ep || (ep > &real_string[len]) || (real > log_time(CLOCK_REALTIME))) { in calculateCorrection()
|
/system/core/logcat/ |
D | logcat.cpp | 626 char* ep = t.strptime(cp, "%m-%d %H:%M:%S.%q"); in parseTime() local 627 if (ep) return ep; in parseTime() 628 ep = t.strptime(cp, "%Y-%m-%d %H:%M:%S.%q"); in parseTime() 629 if (ep) return ep; in parseTime() 674 char* ep = parseTime(t, line.c_str()); in lastLogTime() local 675 if (!ep || (*ep != ' ')) continue; in lastLogTime()
|
/system/core/fastboot/ |
D | usb_linux.cpp | 409 bulk.ep = handle_->ep_out; in Write() 443 bulk.ep = handle_->ep_in; in Read()
|
/system/update_engine/sample_images/ |
D | generate_images.sh | 57 sudo setcap cap_net_raw=ep "${mntdir}"/regular-with_net_cap
|
/system/core/libusbhost/ |
D | usbhost.c | 675 ctrl.ep = endpoint; in usb_device_bulk_transfer()
|