/busybox-1.35.0/libbb/ |
D | fgets_str.c | 18 int idx = 0; in xmalloc_fgets_internal() local 25 if (idx == 0) in xmalloc_fgets_internal() 30 if (idx >= linebufsz) { in xmalloc_fgets_internal() 33 if (idx >= maxsz) { in xmalloc_fgets_internal() 34 linebuf[idx] = ch; in xmalloc_fgets_internal() 35 idx++; in xmalloc_fgets_internal() 40 linebuf[idx] = ch; in xmalloc_fgets_internal() 41 idx++; in xmalloc_fgets_internal() 44 end_string_offset = idx - term_length; in xmalloc_fgets_internal() 49 idx -= term_length; in xmalloc_fgets_internal() [all …]
|
D | get_line_from_file.c | 16 size_t idx = 0; in bb_get_chunk_from_file() local 21 if (!(idx & 0xff)) { in bb_get_chunk_from_file() 22 if (idx == ((size_t)-1) - 0xff) in bb_get_chunk_from_file() 24 linebuf = xrealloc(linebuf, idx + 0x100); in bb_get_chunk_from_file() 26 linebuf[idx++] = (char) ch; in bb_get_chunk_from_file() 33 *end = idx; in bb_get_chunk_from_file() 41 linebuf = xrealloc(linebuf, idx + 1); in bb_get_chunk_from_file() 42 linebuf[idx] = '\0'; in bb_get_chunk_from_file() 126 int idx = 0; 132 linebuf = xrealloc(linebuf, idx + 0x100); [all …]
|
D | xrealloc_vector.c | 35 void* FAST_FUNC xrealloc_vector_helper(void *vector, unsigned sizeof_and_shift, int idx) in xrealloc_vector_helper() argument 39 if (!(idx & (mask - 1))) { in xrealloc_vector_helper() 41 vector = xrealloc(vector, sizeof_and_shift * (idx + mask + 1)); in xrealloc_vector_helper() 42 memset((char*)vector + (sizeof_and_shift * idx), 0, sizeof_and_shift * (mask + 1)); in xrealloc_vector_helper()
|
D | human_readable.c | 88 unsigned v, u, idx = 0; in smart_ulltoa5() local 94 idx++; in smart_ulltoa5() 102 if (!idx) { in smart_ulltoa5() 133 buf[4] = scale[idx]; /* typically scale = " kmgt..." */ in smart_ulltoa5() 145 unsigned v, u, idx = 0; in smart_ulltoa4() local 151 idx++; in smart_ulltoa4() 159 if (!idx) { in smart_ulltoa4() 183 buf[3] = scale[idx]; /* typically scale = " kmgt..." */ in smart_ulltoa4()
|
D | compare_string_array.c | 66 int j, idx = 0; in index_in_strings() local 73 return idx; /* yes */ in index_in_strings() 79 idx++; in index_in_strings() 107 int idx = 0; in index_in_substrings() local 111 return idx; /* exact match */ in index_in_substrings() 114 matched_idx = idx; in index_in_substrings() 117 idx++; in index_in_substrings()
|
D | hash_md5prime.c | 409 unsigned i, idx, partLen; in md5_hash() local 413 idx = (context->count[0] >> 3) & 0x3F; in md5_hash() 423 partLen = 64 - idx; in md5_hash() 425 memcpy(&context->buffer[idx], input, partLen); in md5_hash() 429 idx = 0; in md5_hash() 433 memcpy(&context->buffer[idx], &input[i], inputLen - i); in md5_hash() 442 unsigned idx, padLen; in md5_end() local 452 idx = (context->count[0] >> 3) & 0x3f; in md5_end() 453 padLen = (idx < 56) ? (56 - idx) : (120 - idx); in md5_end()
|
D | lineedit.c | 1483 unsigned idx, i, line_len; in load_history() local 1490 for (idx = st_parm->cnt_history; idx > 0;) { in load_history() 1491 idx--; in load_history() 1492 free(st_parm->history[idx]); in load_history() 1493 st_parm->history[idx] = NULL; in load_history() 1498 idx = 0; in load_history() 1505 free(temp_h[idx]); in load_history() 1506 temp_h[idx] = line; in load_history() 1508 idx++; in load_history() 1509 if (idx == st_parm->max_history) in load_history() [all …]
|
/busybox-1.35.0/util-linux/ |
D | uevent.c | 71 int idx; in uevent_main() local 99 idx = 0; in uevent_main() 104 if (strchr(s, '=') && idx < MAX_ENV) in uevent_main() 105 env[idx++] = s; in uevent_main() 108 env[idx] = NULL; in uevent_main() 111 idx = 0; in uevent_main() 112 while (env[idx]) in uevent_main() 113 putenv(env[idx++]); in uevent_main() 115 idx = 0; in uevent_main() 116 while (env[idx]) in uevent_main() [all …]
|
D | setpriv.c | 176 unsigned idx; in set_ambient_caps() local 178 idx = parse_cap(cap); in set_ambient_caps() 180 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, idx, 0, 0) < 0) in set_ambient_caps() 183 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_LOWER, idx, 0, 0) < 0) in set_ambient_caps() 236 unsigned idx = CAP_TO_INDEX(i); in dump() local 237 if (idx >= caps.u32s) { in dump() 238 printf("\nindex: %u u32s: %u capability: %u\n", idx, caps.u32s, i); in dump() 241 if (caps.data[idx].inheritable & CAP_TO_MASK(i)) { in dump()
|
D | getopt.c | 258 unsigned idx; in generate_output() local 260 idx = optind; in generate_output() 261 while (argv[idx]) in generate_output() 262 printf(" %s", normalize(argv[idx++])); in generate_output()
|
/busybox-1.35.0/networking/libiproute/ |
D | ll_map.c | 28 static struct idxmap *find_by_index(int idx) in find_by_index() argument 33 for (im = idxmap[idx & 0xF]; im; im = im->next) in find_by_index() 34 if (im->index == idx) in find_by_index() 89 const char FAST_FUNC *ll_idx_n2a(int idx/*, char *buf*/) in ll_idx_n2a() argument 93 if (idx == 0) in ll_idx_n2a() 95 im = find_by_index(idx); in ll_idx_n2a() 100 return auto_string(xasprintf("if%d", idx)); in ll_idx_n2a() 103 const char FAST_FUNC *ll_index_to_name(int idx) in ll_index_to_name() argument 106 return ll_idx_n2a(idx/*, nbuf*/); in ll_index_to_name() 110 int ll_index_to_type(int idx) in ll_index_to_type() argument [all …]
|
D | ll_map.h | 11 const char *ll_index_to_name(int idx) FAST_FUNC; 13 unsigned ll_index_to_flags(int idx) FAST_FUNC;
|
D | iproute.c | 677 int idx; local 682 idx = xll_name_to_index(d); 683 addattr32(&req.n, sizeof(req), RTA_OIF, idx); 910 int idx; in iproute_list_or_flush() local 913 idx = xll_name_to_index(id); in iproute_list_or_flush() 914 G_filter.iif = idx; in iproute_list_or_flush() 917 idx = xll_name_to_index(od); in iproute_list_or_flush() 918 G_filter.oif = idx; in iproute_list_or_flush() 1052 int idx; in iproute_get() local 1055 idx = xll_name_to_index(idev); in iproute_get() [all …]
|
/busybox-1.35.0/archival/libarchive/ |
D | data_extract_to_command.c | 43 static void str2env(char *env[], int idx, const char *str) in str2env() argument 45 env[idx] = xasprintf("TAR_%s=%s", tar_var[idx], str); in str2env() 46 xputenv(env[idx]); in str2env() 49 static void dec2env(char *env[], int idx, unsigned long long val) in dec2env() argument 51 env[idx] = xasprintf("TAR_%s=%llu", tar_var[idx], val); in dec2env() 52 xputenv(env[idx]); in dec2env() 55 static void oct2env(char *env[], int idx, unsigned long val) in oct2env() argument 57 env[idx] = xasprintf("TAR_%s=%lo", tar_var[idx], val); in oct2env() 58 xputenv(env[idx]); in oct2env()
|
/busybox-1.35.0/miscutils/ |
D | mt.c | 112 int fd, mode, idx; in mt_main() local 125 idx = index_in_strings(opcode_name, argv[1]); in mt_main() 127 if (idx < 0) in mt_main() 130 op.mt_op = opcode_value[idx]; in mt_main() 136 switch (opcode_value[idx]) { in mt_main() 151 switch (opcode_value[idx]) { in mt_main()
|
D | setserial.c | 418 int idx = 0; in index_in_strings_case_insensitive() local 422 return idx; in index_in_strings_case_insensitive() 425 idx++; in index_in_strings_case_insensitive() 437 int idx; in get_spd() local 441 idx = CMD_SPD_HI; in get_spd() 444 idx = CMD_SPD_VHI; in get_spd() 447 idx = CMD_SPD_SHI; in get_spd() 450 idx = CMD_SPD_WARP; in get_spd() 453 idx = CMD_SPD_CUST; in get_spd() 458 idx = CMD_SPD_NORMAL; in get_spd() [all …]
|
D | rfkill.c | 103 if (rf_idx >= 0 && event.idx != rf_idx) { in rfkill_main() 109 sprintf(rf_sysfs, "/sys/class/rfkill/rfkill%u/uevent", event.idx); in rfkill_main() 123 printf("%u: %s: %s\n", event.idx, name, type); in rfkill_main() 137 event.idx = rf_idx; in rfkill_main()
|
D | bc.c | 378 size_t idx; member 1192 static void bc_vec_pushAt(BcVec *v, const void *data, size_t idx) in bc_vec_pushAt() argument 1194 if (idx == v->len) in bc_vec_pushAt() 1201 ptr = v->v + v->size * idx; in bc_vec_pushAt() 1203 memmove(ptr + v->size, ptr, v->size * (v->len++ - idx)); in bc_vec_pushAt() 1218 static void *bc_vec_item(const BcVec *v, size_t idx) in bc_vec_item() argument 1220 return v->v + v->size * idx; in bc_vec_item() 1223 static void *bc_vec_item_rev(const BcVec *v, size_t idx) in bc_vec_item_rev() argument 1225 return v->v + v->size * (v->len - idx - 1); in bc_vec_item_rev() 1240 static BcFunc* xc_program_func(size_t idx) in xc_program_func() argument [all …]
|
/busybox-1.35.0/scripts/kconfig/ |
D | qconf.h | 106 int mapIdx(colIdx idx) in mapIdx() argument 108 return colMap[idx]; in mapIdx() 110 void addColumn(colIdx idx, const QString& label) in addColumn() argument 112 colMap[idx] = Parent::addColumn(label); in addColumn() 113 colRevMap[colMap[idx]] = idx; in addColumn() 115 void removeColumn(colIdx idx) in removeColumn() argument 117 int col = colMap[idx]; in removeColumn() 120 colRevMap[col] = colMap[idx] = -1; in removeColumn() 183 void setText(colIdx idx, const QString& text) in setText() argument 185 Parent::setText(listView()->mapIdx(idx), text); in setText() [all …]
|
/busybox-1.35.0/editors/ |
D | sed.c | 158 int idx; /* Space used */ member 277 int idx = 0; in index_of_next_unescaped_regexp_delim() local 285 for (; (ch = str[idx]) != '\0'; idx++) { in index_of_next_unescaped_regexp_delim() 288 && !(bracket == idx - 1 || (bracket == idx - 2 && str[idx - 1] == '^')) in index_of_next_unescaped_regexp_delim() 297 bracket = idx; in index_of_next_unescaped_regexp_delim() 299 return idx; in index_of_next_unescaped_regexp_delim() 313 int idx = 0; in parse_regex_delim() local 322 idx = index_of_next_unescaped_regexp_delim(delimiter, cmdstr_ptr); in parse_regex_delim() 323 *match = copy_parsing_escapes(cmdstr_ptr, idx); in parse_regex_delim() 326 cmdstr_ptr += idx + 1; in parse_regex_delim() [all …]
|
/busybox-1.35.0/scripts/basic/ |
D | docproc.c | 225 int idx = 0; in docfunctions() local 235 vec[idx++] = KERNELDOC; in docfunctions() 236 vec[idx++] = DOCBOOK; in docfunctions() 240 vec[idx++] = type; in docfunctions() 241 vec[idx++] = sym->symbollist[j].name; in docfunctions() 244 vec[idx++] = filename; in docfunctions() 245 vec[idx] = NULL; in docfunctions() 262 int i, idx = 0; in singfunc() local 264 vec[idx++] = KERNELDOC; in singfunc() 265 vec[idx++] = DOCBOOK; in singfunc() [all …]
|
/busybox-1.35.0/findutils/ |
D | grep.c | 319 int idx = 0; /* used for iteration through the circular buffer */ in grep_file() local 503 idx = curpos; in grep_file() 504 while (before_buf[idx] == NULL) { in grep_file() 505 idx = (idx + 1) % lines_before; in grep_file() 510 while (before_buf[idx] != NULL) { in grep_file() 511 print_line(before_buf[idx], before_buf_size[idx], first_buf_entry_line_num, '-'); in grep_file() 512 free(before_buf[idx]); in grep_file() 513 before_buf[idx] = NULL; in grep_file() 514 idx = (idx + 1) % lines_before; in grep_file()
|
D | xargs.c | 113 int idx; member 135 G.idx = 0; \ 251 if (!(G.idx & 0xff)) { /* G.idx == N*256? */ in store_param() 253 G.args = xrealloc(G.args, sizeof(G.args[0]) * (G.idx + 0x100)); in store_param() 255 G.args[G.idx++] = s; in store_param() 729 initial_idx = G.idx; in xargs_main() 733 G.idx = initial_idx; in xargs_main()
|
/busybox-1.35.0/coreutils/ |
D | od_bloaty.c | 997 int idx; in dump() local 1003 idx = 0; in dump() 1012 read_block(n_needed, block[idx], &n_bytes_read); in dump() 1016 write_block(current_offset, n_bytes_read, block[idx ^ 1], block[idx]); in dump() 1018 idx ^= 1; in dump() 1022 read_block(G.bytes_per_block, block[idx], &n_bytes_read); in dump() 1026 write_block(current_offset, n_bytes_read, block[idx ^ 1], block[idx]); in dump() 1028 idx ^= 1; in dump() 1042 memset(block[idx] + n_bytes_read, 0, bytes_to_write - n_bytes_read); in dump() 1044 block[idx ^ 1], block[idx]); in dump()
|
/busybox-1.35.0/archival/ |
D | rpm.c | 97 unsigned pass, idx; in rpm_gettags() local 110 idx = 0; in rpm_gettags() 125 xread(fd, &tags[idx], sizeof(tags[0]) * cnt); in rpm_gettags() 127 rpm_index *tag = &tags[idx]; in rpm_gettags() 134 idx++; in rpm_gettags()
|