/busybox-1.35.0/networking/ |
D | parse_pasv_epsv.c | 33 char *ptr; in parse_pasv_epsv() local 40 ptr = strrchr(buf, ')'); in parse_pasv_epsv() 41 if (!ptr) ptr = strrchr(buf, '\r'); /* for PASV responses not ending with ')' */ in parse_pasv_epsv() 42 if (!ptr) ptr = strrchr(buf, '\n'); /* for PASV responses not ending with ')' */ in parse_pasv_epsv() 43 if (ptr) *ptr = '\0'; in parse_pasv_epsv() 45 ptr = strrchr(buf, ','); in parse_pasv_epsv() 46 if (!ptr) return -1; in parse_pasv_epsv() 47 *ptr = '\0'; in parse_pasv_epsv() 48 port = xatou_range(ptr + 1, 0, 255); in parse_pasv_epsv() 50 ptr = strrchr(buf, ','); in parse_pasv_epsv() [all …]
|
D | interface.c | 215 static char* FAST_FUNC UNSPEC_print(unsigned char *ptr) in UNSPEC_print() argument 225 sprintf(pos, "%02X-", *ptr++); in UNSPEC_print() 689 static char* FAST_FUNC ether_print(unsigned char *ptr) in ether_print() argument 693 ptr[0], ptr[1], ptr[2], ptr[3], ptr[4], ptr[5] in ether_print() 847 static void ife_print6(struct interface *ptr) in ife_print6() argument 865 if (strcmp(devname, ptr->name) == 0) { in ife_print6() 904 static void ife_print(struct interface *ptr) in ife_print() argument 911 ap = get_afntype(ptr->addr.sa_family); in ife_print() 915 hf = ptr->type; in ife_print() 924 printf("%-9s Link encap:%s ", ptr->name, hw->title); in ife_print() [all …]
|
D | ifconfig.c | 528 char *ptr; in ifconfig_main() local 530 for (ptr = ifr.ifr_name; *ptr; ptr++) in ifconfig_main() 531 if (*ptr == ':') in ifconfig_main() 533 if (found_colon && ptr[-1] == '-') in ifconfig_main()
|
D | nslookup.c | 828 char *ptr = resbuf; in make_ptr() local 830 *ptr++ = 0x20 | bb_hexdigits_upcase[(unsigned char)addr[15 - i] & 0xf]; in make_ptr() 831 *ptr++ = '.'; in make_ptr() 832 *ptr++ = 0x20 | bb_hexdigits_upcase[(unsigned char)addr[15 - i] >> 4]; in make_ptr() 833 *ptr++ = '.'; in make_ptr() 835 strcpy(ptr, "ip6.arpa"); in make_ptr() 962 char *ptr; in nslookup_main() local 964 ptr = make_ptr(argv[0]); in nslookup_main() 965 if (ptr) { in nslookup_main() 966 add_query(T_PTR, ptr); in nslookup_main()
|
/busybox-1.35.0/coreutils/ |
D | expand.c | 76 char *ptr; in expand() local 87 ptr = ptr_strbeg = line; in expand() 89 unsigned char c = *ptr; in expand() 112 *ptr = '\0'; in expand() 116 len += ptr - ptr_strbeg; in expand() 122 ptr_strbeg = ptr + 1; in expand() 124 ptr++; in expand() 138 char *ptr = line; in unexpand() local 141 while (*ptr) { in unexpand() 145 while (*ptr == ' ') { in unexpand() [all …]
|
/busybox-1.35.0/modutils/ |
D | depmod.c | 40 char *image, *ptr; in parse_module() local 54 for (ptr = image; ptr < image + len - 10; ptr++) { in parse_module() 55 if (is_prefixed_with(ptr, "depends=")) { in parse_module() 58 ptr += 8; in parse_module() 59 for (u = ptr; *u; u++) in parse_module() 62 ptr += string_to_llist(ptr, &e->deps, ","); in parse_module() 64 && is_prefixed_with(ptr, "alias=") in parse_module() 66 llist_add_to(&e->aliases, xstrdup(ptr + 6)); in parse_module() 67 ptr += strlen(ptr); in parse_module() 69 && is_prefixed_with(ptr, "__ksymtab_") in parse_module() [all …]
|
D | modinfo.c | 66 char *ptr, *the_module; in modinfo() local 101 ptr = the_module; in modinfo() 105 ptr = memchr(ptr, *pattern, len - (ptr - (char*)the_module)); in modinfo() 106 if (ptr == NULL) /* no occurrence left, done */ in modinfo() 108 after_pattern = is_prefixed_with(ptr, pattern); in modinfo() 111 if ((ptr[-1] & 0x7F) == 0x00) { in modinfo() 112 ptr = after_pattern + 1; in modinfo() 113 display(ptr, pattern); in modinfo() 114 ptr += strlen(ptr); in modinfo() 117 ++ptr; in modinfo()
|
D | modprobe-small.c | 163 static char* find_keyword(char *ptr, size_t len, const char *word) in find_keyword() argument 165 if (!ptr) /* happens if xmalloc_open_zipped_read_close cannot read it */ in find_keyword() 170 char *old = ptr; in find_keyword() 174 ptr = memchr(ptr, word[0], len); in find_keyword() 175 if (ptr == NULL) /* no occurrence left, done */ in find_keyword() 177 after_word = is_prefixed_with(ptr, word); in find_keyword() 180 ++ptr; in find_keyword() 181 len -= (ptr - old); in find_keyword() 299 char *ptr; in parse_module() local 316 ptr = find_keyword(module_image + pos, len - pos, "alias="); in parse_module() [all …]
|
/busybox-1.35.0/miscutils/ |
D | lsscsi.c | 58 char *ptr; in lsscsi_main() local 74 ptr = get_line("vendor", buf, buf + sizeof(buf)); in lsscsi_main() 76 type_str = ptr; in lsscsi_main() 77 ptr = get_line("type", ptr, buf + sizeof(buf)); in lsscsi_main() 79 model = ptr; in lsscsi_main() 80 ptr = get_line("model", ptr, buf + sizeof(buf)); in lsscsi_main() 82 rev = ptr; in lsscsi_main() 83 /*ptr =*/ get_line("rev", ptr, buf + sizeof(buf)); in lsscsi_main()
|
D | crontab.c | 45 const char *ptr; in edit_file() local 60 ptr = getenv("VISUAL"); in edit_file() 61 if (!ptr) { in edit_file() 62 ptr = getenv("EDITOR"); in edit_file() 63 if (!ptr) in edit_file() 64 ptr = "vi"; in edit_file() 67 BB_EXECLP(ptr, ptr, file, NULL); in edit_file() 68 bb_perror_msg_and_die("can't execute '%s'", ptr); in edit_file()
|
D | devfsd.c | 300 …ic unsigned int scan_dev_name_common(const char *d, unsigned int n, int addendum, const char *ptr); 301 static unsigned int scan_dev_name(const char *d, unsigned int n, const char *ptr); 369 …tic unsigned int scan_dev_name_common(const char *d, unsigned int n, int addendum, const char *ptr) in scan_dev_name_common() argument 375 if (ptr[0] == 'p' && ptr[1] == 'a' && ptr[2] == 'r' && ptr[3] == 't') in scan_dev_name_common() 377 if (ptr[n - 2] == 'm' && ptr[n - 1] == 't') in scan_dev_name_common() 382 static unsigned int scan_dev_name(const char *d, unsigned int n, const char *ptr) in scan_dev_name() argument 389 return scan_dev_name_common(d, n, 0, ptr); in scan_dev_name() 394 return scan_dev_name_common(d, n, 4, ptr); in scan_dev_name() 568 char *ptr; in process_config_line() local 630 ptr = strchr(p[0], '.'); in process_config_line() [all …]
|
D | conspy.c | 234 char *ptr; in screen_char() local 236 ptr = G.attrbuf; in screen_char() 245 *ptr++ = '0'; // "reset all attrs" in screen_char() 246 *ptr++ = ';'; in screen_char() 252 *ptr++ = '1'; in screen_char() 253 *ptr++ = ';'; in screen_char() 256 *ptr++ = '5'; in screen_char() 257 *ptr++ = ';'; in screen_char() 260 *ptr++ = '3'; in screen_char() 261 *ptr++ = color[attr & fg_mask]; in screen_char() [all …]
|
D | crond.c | 222 const char *names, char *ptr) in ParseField() argument 225 char *base = ptr; in ParseField() 237 if (*ptr == '*') { in ParseField() 241 ++ptr; in ParseField() 242 } else if (isdigit(*ptr)) { in ParseField() 245 n1 = strtol(ptr, &endp, 10) + off; in ParseField() 247 n2 = strtol(ptr, &endp, 10) + off; in ParseField() 249 ptr = endp; /* gcc likes temp var for &endp */ in ParseField() 256 if (strncasecmp(ptr, &names[i], 3) == 0) { in ParseField() 257 ptr += 3; in ParseField() [all …]
|
/busybox-1.35.0/archival/libarchive/bz/ |
D | blocksort.c | 38 void mvswap(uint32_t* ptr, int32_t zzp1, int32_t zzp2, int32_t zzn) in mvswap() argument 41 mswap(ptr[zzp1], ptr[zzp2]); in mvswap() 474 uint32_t *const ptr = state->ptr; in mainSimpleSort() local 498 v = ptr[i]; in mainSimpleSort() 500 while (mainGtU(state, ptr[j-h]+d, v+d)) { in mainSimpleSort() 501 ptr[j] = ptr[j-h]; in mainSimpleSort() 505 ptr[j] = v; in mainSimpleSort() 512 v = ptr[i]; in mainSimpleSort() 514 while (mainGtU(state, ptr[j-h]+d, v+d)) { in mainSimpleSort() 515 ptr[j] = ptr[j-h]; in mainSimpleSort() [all …]
|
/busybox-1.35.0/libbb/ |
D | in_ether.c | 18 char *ptr; in in_ether() local 24 ptr = (char *) sap->sa_data; in in_ether() 52 *ptr++ = val; in in_ether()
|
D | inet_cksum.c | 9 uint16_t FAST_FUNC inet_cksum(const void *ptr, int nleft) in inet_cksum() argument 11 const uint16_t *addr = ptr; in inet_cksum()
|
D | process_escape_sequence.c | 18 char FAST_FUNC bb_process_escape_sequence(const char **ptr) in bb_process_escape_sequence() argument 27 q = *ptr; in bb_process_escape_sequence() 100 *ptr = q; in bb_process_escape_sequence()
|
D | platform.c | 136 char *ptr; in strsep() local 142 ptr = start + strlen(start); in strsep() 144 ptr = strpbrk(start, delim); in strsep() 145 if (!ptr) { in strsep() 151 *ptr = '\0'; in strsep() 152 *stringp = ptr + 1; in strsep()
|
D | xfuncs_printf.c | 41 void *ptr = malloc(size); in malloc_or_warn() local 42 if (ptr == NULL && size != 0) in malloc_or_warn() 44 return ptr; in malloc_or_warn() 50 void *ptr = malloc(size); in xmalloc() local 51 if (ptr == NULL && size != 0) in xmalloc() 53 return ptr; in xmalloc() 59 void* FAST_FUNC xrealloc(void *ptr, size_t size) in xrealloc() argument 61 ptr = realloc(ptr, size); in xrealloc() 62 if (ptr == NULL && size != 0) in xrealloc() 64 return ptr; in xrealloc() [all …]
|
/busybox-1.35.0/examples/shutdown-1.0/script/ |
D | hardshutdown.c | 110 char *prog, *ptr; in main() local 114 ptr = strrchr(prog,'/'); in main() 115 if (ptr) in main() 116 prog = ptr+1; in main()
|
/busybox-1.35.0/archival/libarchive/unxz/ |
D | xz_config.h | 28 #define kfree(ptr) free(ptr) argument 30 #define vfree(ptr) free(ptr) argument
|
/busybox-1.35.0/networking/libiproute/ |
D | utils.c | 40 char *ptr; in get_unsigned() local 43 res = strtoul(arg, &ptr, 0); in get_unsigned() 45 if (!*ptr && res <= UINT_MAX) { in get_unsigned() 55 char *ptr; in get_u32() local 58 res = strtoul(arg, &ptr, 0); in get_u32() 60 if (!*ptr && res <= 0xFFFFFFFFUL) { in get_u32() 70 char *ptr; in get_u16() local 73 res = strtoul(arg, &ptr, 0); in get_u16() 75 if (!*ptr && res <= 0xFFFF) { in get_u16()
|
/busybox-1.35.0/scripts/ |
D | echo.c | 38 static char bb_process_escape_sequence(const char **ptr) in bb_process_escape_sequence() argument 54 q = *ptr; in bb_process_escape_sequence() 102 *ptr = q; in bb_process_escape_sequence()
|
/busybox-1.35.0/networking/udhcp/ |
D | d6_dhcpc.c | 220 const char *ptr, *name = NULL; in string_option_to_env() local 224 ptr = d6_option_strings; in string_option_to_env() 226 while (*ptr) { in string_option_to_env() 228 name = ptr; in string_option_to_env() 231 ptr += strlen(ptr) + 1; in string_option_to_env() 484 uint8_t *ptr; in init_d6_packet() local 495 ptr = packet->d6_options; /* NB: it is 32-bit aligned */ in init_d6_packet() 496 *((uint32_t*)ptr) = htonl((D6_OPT_ELAPSED_TIME << 16) + 2); in init_d6_packet() 497 ptr += 4; in init_d6_packet() 502 *((uint16_t*)ptr) = (secs < 0xffff) ? htons(secs) : 0xffff; in init_d6_packet() [all …]
|
/busybox-1.35.0/scripts/kconfig/ |
D | symbol.c | 649 const char *ptr; in sym_lookup() local 661 for (ptr = name; *ptr; ptr++) in sym_lookup() 662 hash += *ptr; in sym_lookup() 695 const char *ptr; in sym_find() local 708 for (ptr = name; *ptr; ptr++) in sym_find() 709 hash += *ptr; in sym_find()
|