/busybox-1.35.0/libbb/ |
D | bb_getgroups.c | 15 int n = ngroups ? *ngroups : 0; in bb_getgroups() local 18 if (n < 32) in bb_getgroups() 19 n = 32; in bb_getgroups() 24 group_array = xrealloc(group_array, (n+1) * sizeof(group_array[0])); in bb_getgroups() 25 n = getgroups(n, group_array); in bb_getgroups() 30 if (n >= 0) { in bb_getgroups() 32 group_array[n] = (gid_t) -1; in bb_getgroups() 37 n = getgroups(0, group_array); in bb_getgroups() 45 *ngroups = n; in bb_getgroups()
|
D | read_key.c | 16 int n; in read_key() local 122 n = (unsigned char)buffer[-1]; in read_key() 123 if (n == 0) { in read_key() 141 n = safe_read(fd, buffer, 1); in read_key() 142 if (n <= 0) in read_key() 148 n--; in read_key() 149 if (n) in read_key() 150 memmove(buffer, buffer + 1, n); in read_key() 153 buffer[-1] = n; in read_key() 167 if (n <= i) { in read_key() [all …]
|
D | isqrt.c | 40 unsigned long long n = argv[1] ? strtoull(argv[1], NULL, 0) : time(NULL); in main() local 43 n--; in main() 44 h = isqrt(n); in main() 45 if (!(n & 0xffff)) in main() 46 printf("isqrt(%llx)=%lx\n", n, h); in main() 47 if ((unsigned long long)h * h > n) { in main() 48 printf("BAD1: isqrt(%llx)=%lx\n", n, h); in main() 53 && (unsigned long long)h * h <= n) in main() 55 printf("BAD2: isqrt(%llx)=%lx\n", n, h); in main()
|
D | executable.c | 41 char *p, *n; in find_executable() local 47 n = strchr(p, ':'); in find_executable() 48 if (n) *n = '\0'; in find_executable() 54 if (n) *n++ = ':'; in find_executable() 56 *PATHp = n; in find_executable() 60 p = n; in find_executable()
|
D | safe_write.c | 13 ssize_t n; in safe_write() local 16 n = write(fd, buf, count); in safe_write() 17 if (n >= 0 || errno != EINTR) in safe_write() 27 return n; in safe_write()
|
D | safe_poll.c | 17 int n = poll(ufds, nfds, timeout); in safe_poll() local 18 if (n >= 0) in safe_poll() 19 return n; in safe_poll() 31 return n; in safe_poll()
|
D | process_escape_sequence.c | 22 unsigned n; in bb_process_escape_sequence() local 25 num_digits = n = 0; in bb_process_escape_sequence() 65 r = n * base + d; in bb_process_escape_sequence() 70 n = r; in bb_process_escape_sequence() 97 n = p[sizeof(charmap) / 2]; in bb_process_escape_sequence() 102 return (char) n; in bb_process_escape_sequence()
|
/busybox-1.35.0/shell/hush_test/hush-misc/ |
D | export-n.tests | 6 export -n aaa1 7 unset aaa2; export -n aaa2="ghi" 8 export -n aaa3="klm" 12 export -n aaa4=4n 13 export -n aaa5 17 export -n aaa5 aaa6=6n aaa7 21 export -n aaa9 25 export -n aaa10 32 export -n EXPORTED=123; echo "Nothing:"; env | grep ^EXPORTED 35 export -n EXPORTED; EXPORTED=123; echo "Nothing:"; env | grep ^EXPORTED
|
/busybox-1.35.0/util-linux/ |
D | losetup.c | 99 int n; in losetup_main() local 100 for (n = 0; n < MAX_LOOP_NUM; n++) { in losetup_main() 103 sprintf(dev, LOOP_FORMAT, n); in losetup_main() 116 int n; in losetup_main() local 118 n = get_free_loop(); in losetup_main() 119 if (n == -1) in losetup_main() 121 if (n < 0) /* n == -2: no /dev/loop-control, use legacy method */ in losetup_main() 122 n = 0; in losetup_main() 125 if (n > MAX_LOOP_NUM) in losetup_main() 127 sprintf(dev, LOOP_FORMAT, n++); in losetup_main()
|
D | fdformat.c | 63 int fd, n, cyl, read_bytes, verify; in fdformat_main() local 93 for (n = 0; n < param.track; n++) { in fdformat_main() 95 descr.track = n; in fdformat_main() 97 printf("%3d\b\b\b", n); in fdformat_main() 110 n = param.sect*param.head*512; in fdformat_main() 112 data = xmalloc(n); in fdformat_main() 116 read_bytes = safe_read(fd, data, n); in fdformat_main() 117 if (read_bytes != n) { in fdformat_main() 122 "expected %d, read %d", cyl, n, read_bytes); in fdformat_main()
|
D | last.c | 73 int n, file = STDIN_FILENO; in last_main() local 101 while ((n = full_read(file, &ut, sizeof(ut))) > 0) { in last_main() 102 if (n != sizeof(ut)) { in last_main() 105 n = index_in_strings(_ut_lin, ut.ut_line); in last_main() 106 if (n == _TILDE) { /* '~' */ in last_main() 109 n = index_in_strings(_ut_usr, ut.ut_user); in last_main() 110 if (++n > 0) in last_main() 111 ut.ut_type = n != 3 ? n : SHUTDOWN_TIME; in last_main() 133 if (n == TYPE_OLD_TIME) { /* '|' */ in last_main() 136 if (n == TYPE_NEW_TIME) { /* '{' */ in last_main()
|
/busybox-1.35.0/modutils/ |
D | rmmod.c | 40 int n, err; in rmmod_main() local 44 n = getopt32(argv, "wfas"); // -s ignored in rmmod_main() 46 if (n & 1) // --wait in rmmod_main() 48 if (n & 2) // --force in rmmod_main() 50 if (n & 4) { in rmmod_main() 61 n = ENABLE_FEATURE_2_4_MODULES && get_linux_version_code() < KERNEL_VERSION(2,6,0); in rmmod_main() 67 if (n) in rmmod_main()
|
/busybox-1.35.0/miscutils/ |
D | ubirename.c | 65 unsigned n; in ubirename_main() local 79 n = 0; in ubirename_main() 82 rnvol->ents[n].vol_id = ubi_get_volid_by_name(ubi_devnum, argv[0]); in ubirename_main() 85 rnvol->ents[n].name_len = strnlen(argv[1], sizeof(rnvol->ents[n].name)); in ubirename_main() 86 if (rnvol->ents[n].name_len >= sizeof(rnvol->ents[n].name)) in ubirename_main() 89 strcpy(rnvol->ents[n].name, argv[1]); in ubirename_main() 90 n++; in ubirename_main()
|
D | strings.c | 43 int n, c, status = EXIT_SUCCESS; in strings_main() local 59 n = xatou_range(n_arg, 1, INT_MAX); in strings_main() 60 string = xzalloc(n + 1); in strings_main() 61 n--; in strings_main() 84 if (count > n) { in strings_main() 88 if (count == n) { in strings_main() 93 printf(radix_fmt, offset - n); in strings_main() 100 if (count > n) { in strings_main()
|
/busybox-1.35.0/coreutils/ |
D | dd.c | 218 ssize_t n; in dd_read() local 223 n = full_read(ifd, ibuf, ibs); in dd_read() 226 n = safe_read(ifd, ibuf, ibs); in dd_read() 228 if (n < 0 && (G.flags & FLAG_IDIRECT) && clear_O_DIRECT(ifd)) in dd_read() 231 return n; in dd_read() 237 ssize_t n; in write_and_stats() local 240 n = full_write(ofd, buf, len); in write_and_stats() 242 if (n < 0 && (G.flags & FLAG_ODIRECT) && clear_O_DIRECT(ofd)) in write_and_stats() 247 if (n > 0) in write_and_stats() 248 G.total_bytes += n; in write_and_stats() [all …]
|
D | id.c | 120 static int get_groups(const char *username, gid_t rgid, gid_t *groups, int *n) in get_groups() argument 128 m = getgrouplist(username, rgid, groups, n); in get_groups() 131 if (*n < 0) in get_groups() 136 *n = getgroups(*n, groups); in get_groups() 137 if (*n >= 0) in get_groups() 138 return *n; in get_groups() 141 *n = getgroups(0, groups); /* get needed *n */ in get_groups() 143 return -(*n >= 0); in get_groups() 197 int n; in id_main() local 217 n = 64; in id_main() [all …]
|
D | sum.c | 95 unsigned n; in sum_main() local 98 n = getopt32(argv, "sr"); in sum_main() 100 if (n & 1) type = SUM_SYSV; in sum_main() 102 if (n & 2) type = SUM_BSD; in sum_main() 106 n = sum_file("-", type); in sum_main() 112 n = 1; in sum_main() 114 n &= sum_file(*argv, type); in sum_main() 117 return !n; in sum_main()
|
D | expand.c | 142 unsigned n; in unexpand() local 156 n = column / tab_size; in unexpand() 157 if (n) { in unexpand() 159 while (n--) in unexpand() 167 n = strcspn(ptr, "\t "); in unexpand() 168 printf("%*s%.*s", len, "", n, ptr); in unexpand() 171 char c = ptr[n]; in unexpand() 172 ptr[n] = '\0'; in unexpand() 174 ptr[n] = c; in unexpand() 177 len = n; in unexpand() [all …]
|
/busybox-1.35.0/e2fsprogs/ |
D | tune2fs.c | 72 int n = xatoi_range(str_C, 1, 0xfffe); in tune2fs_main() local 73 STORE_LE(sb->s_mnt_count, (unsigned)n); in tune2fs_main() 81 int n = xatoi_range(str_c, -1, 0xfffe); in tune2fs_main() local 82 if (n == 0) in tune2fs_main() 83 n = -1; in tune2fs_main() 84 STORE_LE(sb->s_max_mnt_count, (unsigned)n); in tune2fs_main() 88 unsigned n = xatou_range(str_i, 0, (unsigned)0xffffffff / (24*60*60)) * 24*60*60; in tune2fs_main() local 89 STORE_LE(sb->s_checkinterval, n); in tune2fs_main()
|
/busybox-1.35.0/archival/ |
D | gzip.c | 484 static void put_32bit(ulg n) in put_32bit() argument 491 *dst32 = n; /* unaligned LSB 32-bit store */ in put_32bit() 497 put_16bit(n); in put_32bit() 498 put_16bit(n >> 16); in put_32bit() 512 static void updcrc(uch *s, unsigned n) in updcrc() argument 514 G1.crc = crc32_block_endian0(G1.crc, s, n, global_crc32_table /*G1.crc_32_tab*/); in updcrc() 643 unsigned n, m; in fill_window() local 667 for (n = 0; n < HASH_SIZE; n++) { in fill_window() 668 m = head[n]; in fill_window() 669 head[n] = (Pos) (m >= WSIZE ? m - WSIZE : 0); in fill_window() [all …]
|
/busybox-1.35.0/scripts/kconfig/ |
D | zconf.l | 75 ws [ \n\t] 76 n [A-Za-z0-9_] 82 [ \t]*#.*\n | 83 [ \t]*\n { 101 {n}+ { 115 \n { 135 \n BEGIN(INITIAL); current_file->lineno++; return T_EOL; 137 ({n}|[-/.])+ { 148 \\\n current_file->lineno++; 181 printf("%s:%d:warning: multi-line strings not supported\n", zconf_curname(), zconf_lineno()); [all …]
|
/busybox-1.35.0/shell/hush_test/hush-quoting/ |
D | squote_in_varexp2.tests | 2 printf Nothing:'%s\n' ${x#'\\\\'} 3 printf Nothing:'%s\n' "${x#'\\\\'}" 4 printf Nothing:'%s\n' ${x#"\\\\\\\\"} 5 printf Nothing:'%s\n' "${x#"\\\\\\\\"}"
|
/busybox-1.35.0/shell/ash_test/ash-quoting/ |
D | squote_in_varexp2.tests | 2 printf Nothing:'%s\n' ${x#'\\\\'} 3 printf Nothing:'%s\n' "${x#'\\\\'}" 4 printf Nothing:'%s\n' ${x#"\\\\\\\\"} 5 printf Nothing:'%s\n' "${x#"\\\\\\\\"}"
|
/busybox-1.35.0/testsuite/ |
D | md5sum.tests | 32 n=0 33 while test $n -le 999; do 34 echo "$text" | head -c $n | "$sum" 35 n=$(($n+1))
|
/busybox-1.35.0/editors/ |
D | awk.c | 179 struct node_s *n; member 186 struct node_s *n; member 191 struct node_s *n; member 196 node n; member 240 static void debug_parse_print_tc(uint32_t n) in debug_parse_print_tc() argument 242 if (n & TC_LPAREN ) debug_printf_parse(" LPAREN" ); in debug_parse_print_tc() 243 if (n & TC_RPAREN ) debug_printf_parse(" RPAREN" ); in debug_parse_print_tc() 244 if (n & TC_REGEXP ) debug_printf_parse(" REGEXP" ); in debug_parse_print_tc() 245 if (n & TC_OUTRDR ) debug_printf_parse(" OUTRDR" ); in debug_parse_print_tc() 246 if (n & TC_UOPPOST ) debug_printf_parse(" UOPPOST" ); in debug_parse_print_tc() [all …]
|