/busybox-1.35.0/libbb/ |
D | llist.c | 15 void FAST_FUNC llist_add_to(llist_t **old_head, void *data) in llist_add_to() argument 19 new_head->data = data; in llist_add_to() 25 void FAST_FUNC llist_add_to_end(llist_t **list_head, void *data) in llist_add_to_end() argument 30 (*list_head)->data = data; in llist_add_to_end() 37 void *data = NULL; in llist_pop() local 41 data = temp->data; in llist_pop() 45 return data; in llist_pop() 64 void FAST_FUNC llist_free(llist_t *elm, void (*freeit)(void *data)) in llist_free() argument 67 void *data = llist_pop(&elm); in llist_free() local 70 freeit(data); in llist_free() [all …]
|
D | capability.c | 14 extern int capset(cap_user_header_t header, cap_user_data_t data); 15 extern int capget(cap_user_header_t header, const cap_user_data_t data); 125 if (capget(&caps->header, caps->data) != 0) in getcaps()
|
/busybox-1.35.0/archival/libarchive/ |
D | unsafe_symlink_target.c | 32 target = list->data + 1 + strlen(list->data + 1) + 1; in create_links_from_list() 33 if ((*list->data ? link : symlink) (target, list->data + 1)) { in create_links_from_list() 36 *list->data ? "hard" : "sym", in create_links_from_list() 37 list->data + 1, target in create_links_from_list()
|
D | find_list_entry.c | 15 if (fnmatch(list->data, filename, 0) == 0) { in find_list_entry() 34 c = list->data; in find_list_entry2() 47 if (fnmatch(list->data, buf, 0) == 0) { in find_list_entry2()
|
/busybox-1.35.0/testsuite/ |
D | sort.tests | 23 data="42 1 3 woot 40 " "$data" "" 48 " "$data" "" 57 " "$data" "" 65 " "$data" ""
|
/busybox-1.35.0/procps/ |
D | nmeter.c | 356 ullong data[CPU_FIELDCNT] = { 0, 0, 0, 0, 0, 0, 0 }; in S_STAT_END() local 364 if (rdval(get_file(&proc_stat), "cpu ", data, 0 in S_STAT_END() 379 if (data[i] < old) old = data[i]; //sanitize in S_STAT_END() 380 s->old[i] = data[i]; in S_STAT_END() 381 all += (data[i] -= old); in S_STAT_END() 386 ullong t = bar_sz * data[i]; in S_STAT_END() 387 norm_all += data[i] = t / all; in S_STAT_END() 398 data[pos]++; in S_STAT_END() 403 memset(bar, 'S', data[2]); bar += data[2]; //sys in S_STAT_END() 404 memset(bar, 'U', data[0]); bar += data[0]; //usr in S_STAT_END() [all …]
|
/busybox-1.35.0/editors/ |
D | patch.c | 59 char *data; member 64 static void dlist_free(struct double_list *list, void (*freeit)(void *data)) in dlist_free() argument 76 static struct double_list *dlist_add(struct double_list **list, char *data) in dlist_add() argument 81 line->data = data; in dlist_add() 137 static void do_line(void *data) in do_line() argument 139 struct double_list *dlist = data; in do_line() 141 if (TT.state>1 && *dlist->data != TT.state) in do_line() 143 "%s\n", dlist->data+(TT.state>3 ? 1 : 0)); in do_line() 145 if (PATCH_DEBUG) fdprintf(2, "DO %d: %s\n", TT.state, dlist->data); in do_line() 147 free(dlist->data); in do_line() [all …]
|
D | patch_toybox.c | 53 char *data; member 74 void TOY_llist_free(void *list, void (*freeit)(void *data)) in TOY_llist_free() argument 88 struct double_list *dlist_add(struct double_list **list, char *data) in dlist_add() argument 92 line->data = data; in dlist_add() 262 static void do_line(void *data) in do_line() argument 264 struct double_list *dlist = (struct double_list *)data; in do_line() 266 if (TT.state>1 && *dlist->data != TT.state) in do_line() 268 "%s\n", dlist->data+(TT.state>3 ? 1 : 0)); in do_line() 270 if (PATCH_DEBUG) fdprintf(2, "DO %d: %s\n", TT.state, dlist->data); in do_line() 272 free(dlist->data); in do_line() [all …]
|
D | ed.c | 31 char data[1]; member 135 cp = &lp->data[offset]; in findString() 145 return (cp - lp->data); in findString() 314 static int insertLine(int num, const char *data, int len) in insertLine() argument 325 memcpy(newLp->data, data, len); in insertLine() 493 if (full_write(fd, lp->data, lp->len) != lp->len) { in writeLines() 538 write(STDOUT_FILENO, lp->data, lp->len); in printLines() 548 cp = lp->data; in printLines() 714 memcpy(&lp->data[offset], newStr, newLen); in subCommand() 716 memcpy(&lp->data[offset + newLen], in subCommand() [all …]
|
/busybox-1.35.0/scripts/ |
D | objsizes | 12 while read text data bss dec hex filename; do 14 t_data=$((t_data+data)) 16 printf "%9d %11d %9d %9d %s\n" $((text+data)) $text $data $bss "$filename"
|
/busybox-1.35.0/miscutils/ |
D | conspy.c | 63 char* data; member 160 char *data; in screen_read_close() local 168 if (G.data == NULL) { in screen_read_close() 170 G.data = xzalloc(2 * i); in screen_read_close() 175 data = G.data + G.current; in screen_read_close() 176 xread(vcsa_fd, data, G.size); in screen_read_close() 179 for (j = 0; j < G.remote.cols; j++, NEXT(data)) { in screen_read_close() 184 DATA(data) = 0; in screen_read_close() 186 uint8_t ch = CHAR(data); in screen_read_close() 188 CHAR(data) = ch | 0x40; in screen_read_close() [all …]
|
D | hexedit.c | 74 static int format_line(char *hex, uint8_t *data, off_t offset) in format_line() argument 92 end1 = data + 15; in format_line() 96 end = data + (G.size - offset) - 1; in format_line() 97 while (data <= end) { in format_line() 98 uint8_t c = *data++; in format_line() 107 while (data <= end1) { in format_line() 112 data++; in format_line() 121 uint8_t *data; in redraw() local 132 data = G.baseaddr + i * 16; in redraw() 138 pos = format_line(buf, data, offset); in redraw() [all …]
|
D | i2c_tools.c | 94 union i2c_smbus_data *data; member 111 int size, union i2c_smbus_data *data) in i2c_smbus_access() argument 118 args.data = data; in i2c_smbus_access() 125 union i2c_smbus_data data; in i2c_smbus_read_byte() local 128 err = i2c_smbus_access(fd, I2C_SMBUS_READ, 0, I2C_SMBUS_BYTE, &data); in i2c_smbus_read_byte() 132 return data.byte; in i2c_smbus_read_byte() 144 union i2c_smbus_data data; in i2c_smbus_read_byte_data() local 148 I2C_SMBUS_BYTE_DATA, &data); in i2c_smbus_read_byte_data() 152 return data.byte; in i2c_smbus_read_byte_data() 157 union i2c_smbus_data data; in i2c_smbus_read_word_data() local [all …]
|
/busybox-1.35.0/networking/ |
D | nbd-client.c | 77 char data[124]; in nbdclient_main() member 82 char data[124]; in nbdclient_main() member 98 BUILD_BUG_ON(offsetof(struct old_nbd_header_t, data) != 8 + 4); in nbdclient_main() 99 BUILD_BUG_ON(offsetof(struct new_nbd_header_t, data) != 8 + 2); in nbdclient_main() 167 char *data; in nbdclient_main() local 199 sizeof(old_nbd_header.data)); in nbdclient_main() 206 data = old_nbd_header.data; in nbdclient_main() 229 sizeof(new_nbd_header.data)); in nbdclient_main() 238 data = new_nbd_header.data; in nbdclient_main() 264 sprintf(data, "/sys/block/%.32s/pid", s ? s + 1 : device); in nbdclient_main() [all …]
|
D | tls_aes.h | 11 void aes_encrypt_one_block(struct tls_aes *aes, const void *data, void *dst) FAST_FUNC; 13 void aes_cbc_encrypt(struct tls_aes *aes, void *iv, const void *data, size_t len, void *dst) FAST_F… 14 void aes_cbc_decrypt(struct tls_aes *aes, void *iv, const void *data, size_t len, void *dst) FAST_F…
|
/busybox-1.35.0/archival/ |
D | Config.src | 9 bool "Make tar, rpm, modprobe etc understand .xz data" 13 bool "Make tar, rpm, modprobe etc understand .lzma data" 17 bool "Make tar, rpm, modprobe etc understand .bz2 data" 21 bool "Make tar, rpm, modprobe etc understand .gz data" 25 bool "Make tar, rpm, modprobe etc understand .Z data"
|
/busybox-1.35.0/shell/hush_test/hush-read/ |
D | read_t0.tests | 4 # This would not be deterministic: returns 0 "data exists" if EOF is seen 5 # (true terminated) - because EOF is considered to be data (read will not block), 6 # else returns 1 "no data".
|
/busybox-1.35.0/shell/ash_test/ash-read/ |
D | read_t0.tests | 4 # This would not be deterministic: returns 0 "data exists" if EOF is seen 5 # (true terminated) - because EOF is considered to be data (read will not block), 6 # else returns 1 "no data".
|
/busybox-1.35.0/docs/ |
D | tcp.txt | 11 a large block of data is only buffered by kernel, it can't be sent all at once. 16 data from the connection. If such a host issues a close() call 17 while received data is still pending in TCP, or if new data is 19 to show that data was lost." 25 data, and it may be reported as error, not EOF, on peer's side. 45 This makes kernel send FIN after all data is written: 51 shutdown() and from close() before all data is sent, 52 and if peer sends any data to us after this, kernel still responds with 53 RST before all our data is sent. 56 such data to us, in which case this solution is acceptable. [all …]
|
/busybox-1.35.0/networking/udhcp/ |
D | common.c | 382 void FAST_FUNC udhcp_add_simple_option(struct dhcp_packet *packet, uint8_t code, uint32_t data) in udhcp_add_simple_option() argument 394 data <<= 8 * (4 - len); in udhcp_add_simple_option() 396 move_to_unaligned32(&option[OPT_DATA], data); in udhcp_add_simple_option() 416 cur_code = opt_list->data[OPT_CODE]; in udhcp_find_option() 419 if (opt_list->data[D6_OPT_CODE] != 0) in udhcp_find_option() 421 cur_code = opt_list->data[D6_OPT_CODE + 1]; in udhcp_find_option() 458 new->data = xzalloc(length + OPT_DATA); in udhcp_insert_new_option() 459 new->data[OPT_CODE] = code; in udhcp_insert_new_option() 460 new->data[OPT_LEN] = length; in udhcp_insert_new_option() 462 new->data = xzalloc(length + D6_OPT_DATA); in udhcp_insert_new_option() [all …]
|
/busybox-1.35.0/util-linux/ |
D | fdformat.c | 64 unsigned char *data; in fdformat_main() local 112 data = xmalloc(n); in fdformat_main() 116 read_bytes = safe_read(fd, data, n); in fdformat_main() 127 if (data[read_bytes] != FD_FILL_BYTE) { in fdformat_main() 136 if (ENABLE_FEATURE_CLEAN_UP) free(data); in fdformat_main()
|
D | mount.c | 542 unsigned long mountflags, const void *data) in verbose_mount() argument 547 rc = mount(source, target, filesystemtype, mountflags, data); in verbose_mount() 551 mountflags, (char*)data, rc); in verbose_mount() 984 char data[32]; member 988 unsigned char data[64]; member 1256 struct nfs_mount_data data; in nfsmount() local 1350 memset(&data, 0, sizeof(data)); in nfsmount() 1351 data.retrans = 3; in nfsmount() 1352 data.acregmin = 3; in nfsmount() 1353 data.acregmax = 60; in nfsmount() [all …]
|
D | setpriv.c | 86 extern int capset(cap_user_header_t header, cap_user_data_t data); 87 extern int capget(cap_user_header_t header, const cap_user_data_t data); 160 caps.data[CAP_TO_INDEX(cap)].inheritable |= CAP_TO_MASK(cap); in set_inh_caps() 162 caps.data[CAP_TO_INDEX(cap)].inheritable &= ~CAP_TO_MASK(cap); in set_inh_caps() 166 if (capset(&caps.header, caps.data) != 0) in set_inh_caps() 241 if (caps.data[idx].inheritable & CAP_TO_MASK(i)) { in dump()
|
/busybox-1.35.0/networking/libiproute/ |
D | libnetlink.h | 55 extern int addattr32(struct nlmsghdr *n, int maxlen, int type, uint32_t data) FAST_FUNC; 56 extern int addattr_l(struct nlmsghdr *n, int maxlen, int type, void *data, int alen) FAST_FUNC; 57 extern int rta_addattr32(struct rtattr *rta, int maxlen, int type, uint32_t data) FAST_FUNC; 58 extern int rta_addattr_l(struct rtattr *rta, int maxlen, int type, void *data, int alen) FAST_FUNC;
|
D | utils.c | 100 if (inet_pton(AF_INET6, name, addr->data) <= 0) in get_addr_1() 113 if (inet_pton(AF_INET, name, addr->data) <= 0) in get_addr_1() 125 ((uint8_t*)addr->data)[i] = n; in get_addr_1() 177 uint32_t mask = ntohl(netmask_pfx.data[0]); in get_prefix_1() 227 return addr.data[0]; in get_addr32() 254 const uint32_t *a1 = a->data; in inet_addr_match() 255 const uint32_t *a2 = b->data; in inet_addr_match()
|