/busybox-1.35.0/scripts/ |
D | checkhelp.awk | 14 pos++; 15 conf[pos] = $2; 16 file[pos] = FILENAME; 18 help[pos] = 1; # do not warn about 'choice' config entries. 20 help[pos] = 0; 24 help[pos] = 1; 27 help[pos] = 1; # ignore options which are not selectable 30 pos = -1; 34 for (i = 0; i <= pos; i++) {
|
/busybox-1.35.0/coreutils/ |
D | tr.c | 105 unsigned pos = 0; in expand() local 111 if (pos + ASCII > size) { in expand() 131 buffer[pos++] = *arg++; /* copy '0' */ in expand() 143 buffer[pos++] = i++; in expand() 189 buffer[pos++] = i; in expand() 193 buffer[pos++] = i; in expand() 197 buffer[pos++] = i; in expand() 200 buffer[pos++] = '\t'; in expand() 202 buffer[pos++] = '\n'; in expand() 203 buffer[pos++] = '\v'; in expand() [all …]
|
D | od_bloaty.c | 569 int pos; in decode_one_format() local 637 pos = strchr(doux, c) - doux; in decode_one_format() 638 fmt = doux_fmt[pos]; in decode_one_format() 639 field_width = doux_bytes_to_XXX[pos][size]; in decode_one_format() 640 p = doux_fmt_letter[pos] + 2; in decode_one_format() 643 fmt_string = xasprintf(doux_fmtstring[pos], field_width, p); in decode_one_format() 1229 int pos; in od_main() local 1234 pos = p - doxn; in od_main() 1235 if (pos == 3) G.format_address = format_address_none; in od_main() 1236 address_base_char = doxn_address_base_char[pos]; in od_main() [all …]
|
/busybox-1.35.0/archival/libarchive/unxz/ |
D | xz_dec_stream.c | 36 uint32_t pos; member 126 size_t pos; member 160 b->in_size - b->in_pos, s->temp.size - s->temp.pos); in fill_temp() 162 memcpy(s->temp.buf + s->temp.pos, b->in + b->in_pos, copy_size); in fill_temp() 164 s->temp.pos += copy_size; in fill_temp() 166 if (s->temp.pos == s->temp.size) { in fill_temp() 167 s->temp.pos = 0; in fill_temp() 180 if (s->pos == 0) in dec_vli() 187 s->vli |= (vli_type)(byte & 0x7F) << s->pos; in dec_vli() 191 if (byte == 0 && s->pos != 0) in dec_vli() [all …]
|
D | xz_dec_lzma2.c | 52 size_t pos; member 294 dict->pos = 0; in dict_reset() 302 if (dict->end - dict->pos <= out_max) in dict_limit() 305 dict->limit = dict->pos + out_max; in dict_limit() 311 return dict->pos < dict->limit; in dict_has_space() 323 size_t offset = dict->pos - dist - 1; in dict_get() 325 if (dist >= dict->pos) in dict_get() 336 dict->buf[dict->pos++] = byte; in dict_put() 338 if (dict->full < dict->pos) in dict_put() 339 dict->full = dict->pos; in dict_put() [all …]
|
D | xz_dec_bcj.c | 45 uint32_t pos; member 133 dest = src - (s->pos + (uint32_t)i + 5); in bcj_x86() 171 instr -= s->pos + (uint32_t)i; in bcj_powerpc() 245 addr -= s->pos + (uint32_t)i; in bcj_ia64() 279 addr -= s->pos + (uint32_t)i + 8; in bcj_arm() 306 addr -= s->pos + (uint32_t)i + 4; in bcj_armthumb() 331 instr -= s->pos + (uint32_t)i; in bcj_sparc() 352 uint8_t *buf, size_t *pos, size_t size) in bcj_apply() argument 356 buf += *pos; in bcj_apply() 357 size -= *pos; in bcj_apply() [all …]
|
/busybox-1.35.0/util-linux/ |
D | rev.c | 69 size_t pos; in rev_main() local 78 pos = 0; in rev_main() 82 if (!fgets(buf + pos, bufsize - pos, fp)) in rev_main() 89 pos = bufsize - 1; in rev_main() 112 pos = 0; in rev_main()
|
D | last.c | 75 off_t pos; in last_main() local 99 pos = xlseek(file, 0, SEEK_END); in last_main() 100 pos = lseek(file, pos - sizeof(ut), SEEK_SET); in last_main() 159 pos -= sizeof(ut); in last_main() 160 if (pos <= 0) in last_main() 162 xlseek(file, pos, SEEK_SET); in last_main()
|
D | taskset.c | 172 unsigned pos; in print_cpulist() local 177 pos = 0; in print_cpulist() 181 unsigned onebit = pos + 1; in print_cpulist() 182 printf("%s%u", delim, pos); in print_cpulist() 184 pos++; in print_cpulist() 193 if (onebit != pos) in print_cpulist() 194 printf("-%u", pos - 1); in print_cpulist() 197 pos++; in print_cpulist()
|
D | mkfs_ext2.c | 223 unsigned i, pos, n; in mkfs_ext2_main() local 450 pos = first_block; in mkfs_ext2_main() 452 pos += blocks_per_group; in mkfs_ext2_main() 454 printf(fmt, (unsigned)pos); in mkfs_ext2_main() 544 for (i = 0, pos = first_block, n = nblocks - first_block; in mkfs_ext2_main() 546 i++, pos += blocks_per_group, n -= blocks_per_group in mkfs_ext2_main() 548 uint32_t overhead = pos + (has_super(i) ? (1/*sb*/ + group_desc_blocks) : 0); in mkfs_ext2_main() 554 overhead = overhead - pos + 1/*bbmp*/ + 1/*ibmp*/ + inode_table_blocks; in mkfs_ext2_main() 603 for (i = 0, pos = first_block; i < ngroups; i++, pos += blocks_per_group) { in mkfs_ext2_main() 607 PUT(((uint64_t)pos * blocksize) + ((0 == i && 1024 != blocksize) ? 1024 : 0), in mkfs_ext2_main() [all …]
|
D | last_fancy.c | 164 off_t pos; in last_main() local 198 pos = xlseek(file, 0, SEEK_END) / sizeof(ut) * sizeof(ut); in last_main() 200 pos -= (off_t)sizeof(ut); in last_main() 201 if (pos < 0) { in last_main() 206 xlseek(file, pos, SEEK_SET); in last_main()
|
/busybox-1.35.0/archival/libarchive/ |
D | decompress_unlzma.c | 156 uint8_t pos; member 235 || header.pos >= (9 * 5 * 5) in IF_DESKTOP() 241 i = header.pos / 9; in IF_DESKTOP() 242 lc = header.pos % 9; in IF_DESKTOP() 290 uint32_t pos; in IF_DESKTOP() local 292 pos = buffer_pos - rep0; in IF_DESKTOP() 293 if ((int32_t)pos < 0) { in IF_DESKTOP() 294 pos += header.dict_size; in IF_DESKTOP() 295 if ((int32_t)pos < 0) in IF_DESKTOP() 298 match_byte = buffer[pos]; in IF_DESKTOP() [all …]
|
D | decompress_bunzip2.c | 581 int pos, current, previous; in read_bunzip() local 591 pos = bd->writePos; in read_bunzip() 634 pos = dbuf[pos]; in read_bunzip() 635 current = (uint8_t)pos; in read_bunzip() 636 pos >>= 8; in read_bunzip() 680 pos = bd->writePos; in read_bunzip() 686 bd->writePos = pos; in read_bunzip()
|
/busybox-1.35.0/miscutils/ |
D | hexedit.c | 123 unsigned i, pos; in redraw() local 135 pos = i = 0; in redraw() 138 pos = format_line(buf, data, offset); in redraw() 149 printf(ESC"[%u;%uH", 1 + G.row, 1 + pos + (cursor & 0xf) * 3); in redraw() 203 unsigned pos; in move_mapping_further() local 210 pos = G.current_byte - G.baseaddr; in move_mapping_further() 211 if (pos >= pagesize) { in move_mapping_further() 219 pos -= pagesize; in move_mapping_further() 220 } while (pos >= pagesize); in move_mapping_further() 221 return remap(pos); in move_mapping_further() [all …]
|
D | less.c | 428 static void fill_match_lines(unsigned pos); 430 #define fill_match_lines(pos) ((void)0) argument 1158 static int64_t less_getch(int pos) in less_getch() argument 1164 less_gets_pos = pos; in less_getch() 1337 static void fill_match_lines(unsigned pos) in fill_match_lines() argument 1342 while (pos <= max_fline) { in fill_match_lines() 1344 if (regexec(&pattern, flines[pos], 0, NULL, 0) == 0 in fill_match_lines() 1346 && !(num_matches && match_lines[num_matches-1] == pos) in fill_match_lines() 1349 match_lines[num_matches++] = pos; in fill_match_lines() 1351 pos++; in fill_match_lines()
|
/busybox-1.35.0/networking/ |
D | isrv_identd.c | 39 int pos; member 67 cur = buf->buf + buf->pos; in do_rd() 69 sz = safe_read(fd, cur, sizeof(buf->buf) - 1 - buf->pos); in do_rd() 77 buf->pos += sz; in do_rd() 78 buf->buf[buf->pos] = '\0'; in do_rd()
|
D | tftp.c | 198 off_t pos; member 216 bb_progress_update(&G.pmt, 0, G.pos, G.size); in tftp_progress_update() 534 IF_FEATURE_TFTP_PROGRESS_BAR(G.pos += len;) 705 IF_FEATURE_TFTP_PROGRESS_BAR(G.pos += sz;)
|
/busybox-1.35.0/libbb/ |
D | strrstr.c | 36 int pos; in BBUNIT_DEFINE_TEST() member 58 BBUNIT_ASSERT_EQ(r, test_array[i].h + test_array[i].pos); in BBUNIT_DEFINE_TEST()
|
D | xfuncs.c | 183 off_t bottom = 0, top = 0, pos; in fdlength() local 198 pos = bottom + (top - bottom) / 2; in fdlength() 202 if (lseek(fd, pos, SEEK_SET)>=0 && safe_read(fd, &temp, 1)==1) { in fdlength() 204 else bottom = pos; in fdlength() 212 else top = pos; in fdlength() 216 return pos + 1; in fdlength()
|
/busybox-1.35.0/sysklogd/ |
D | logger.c | 131 int pos = 0; in logger_main() local 135 sprintf(message + pos, " %s", *argv), in logger_main() 136 pos = len; in logger_main()
|
/busybox-1.35.0/modutils/ |
D | modprobe-small.c | 301 size_t pos; in parse_module() local 313 pos = 0; in parse_module() 316 ptr = find_keyword(module_image + pos, len - pos, "alias="); in parse_module() 318 ptr = find_keyword(module_image + pos, len - pos, "__ksymtab_"); in parse_module() 358 pos = (ptr - module_image); in parse_module()
|
/busybox-1.35.0/editors/ |
D | diff.c | 201 static void seek_ft(FILE_and_pos_t *ft, off_t pos) in seek_ft() argument 203 if (ft->ft_pos != pos) { in seek_ft() 204 ft->ft_pos = pos; in seek_ft() 205 fseeko(ft->ft_fp, pos, SEEK_SET); in seek_ft() 890 int pos; in diffdir() local 897 pos = !dp[0] ? 1 : (!dp[1] ? -1 : strcmp(dp[0], dp[1])); in diffdir() 898 k = pos > 0; in diffdir() 899 if (pos && !(option_mask32 & FLAG(N))) { in diffdir() 906 if (pos == 0 || i == k) { in diffdir() 914 if (pos) in diffdir() [all …]
|
D | sed.c | 338 const char *pos = my_str; in get_address() local 341 *linenum = strtol(my_str, (char**)&pos, 10); in get_address() 345 pos++; in get_address() 353 delimiter = *++pos; in get_address() 354 next = index_of_next_unescaped_regexp_delim(delimiter, ++pos); in get_address() 356 temp = copy_parsing_escapes(pos, next); in get_address() 366 pos += (next+1); in get_address() 368 return pos - my_str; in get_address() 424 const char *pos = substr + idx; in parse_subst_cmd() local 426 sed_cmd->which_match = (unsigned)strtol(substr+idx, (char**) &pos, 10); in parse_subst_cmd() [all …]
|
/busybox-1.35.0/archival/libarchive/bz/ |
D | compress.c | 528 uint8_t pos[BZ_N_GROUPS], ll_i, tmp2, tmp; in sendMTFValues() local 531 pos[i] = i; in sendMTFValues() 536 tmp = pos[j]; in sendMTFValues() 540 tmp = pos[j]; in sendMTFValues() 541 pos[j] = tmp2; in sendMTFValues() 543 pos[0] = tmp; in sendMTFValues()
|
/busybox-1.35.0/procps/ |
D | powertop.c | 580 int pos; in print_intel_cstates() local 582 pos = (bb_strtoull(p, NULL, 16) >> 4) + 1; in print_intel_cstates() 583 if (pos >= ARRAY_SIZE(bios_table)) in print_intel_cstates() 585 bios_table[pos]++; in print_intel_cstates()
|