/external/toybox/toys/pending/ |
D | stty.c | 66 for (i=0;i<ARRAY_LEN(bauds);i++) if (bauds[i] == baud) break; in speed() 67 if (i == ARRAY_LEN(bauds)) error_exit("unknown speed: %d", baud); in speed() 231 if (!set_flag(&new->c_cflag, cflags, ARRAY_LEN(cflags), option, on) && in set_option() 232 !set_flag(&new->c_iflag, iflags, ARRAY_LEN(iflags), option, on) && in set_option() 233 !set_flag(&new->c_oflag, oflags, ARRAY_LEN(oflags), option, on) && in set_option() 234 !set_flag(&new->c_lflag, lflags, ARRAY_LEN(lflags), option, on)) in set_option() 263 for (j=0;j<ARRAY_LEN(chars)-2;j++) { in set_special_character() 387 for (j=0;j<ARRAY_LEN(synonyms);j++) { in do_stty() 417 for (i=j=0;i<ARRAY_LEN(chars);i++) { in do_stty() 442 show_flags(old.c_cflag, sane.c_cflag, cflags, ARRAY_LEN(cflags)); in do_stty() [all …]
|
D | brctl.c | 251 for (i = 0; i < ARRAY_LEN(ss); i++) { in br_set_stp() 254 if (i >= ARRAY_LEN(ss)) error_exit("invalid stp state"); in br_set_stp() 317 for (i = 0; i < ARRAY_LEN(cc); i++) { in brctl_main() 330 if (i == ARRAY_LEN(cc)) help_exit("invalid option '%s'", *toys.optargs); in brctl_main()
|
D | dd.c | 167 parse_flags("conv", arg, dd_conv, ARRAY_LEN(dd_conv), &TT.conv); in dd_main() 170 parse_flags("iflag", arg, dd_iflag, ARRAY_LEN(dd_iflag), &TT.iflag); in dd_main() 172 parse_flags("oflag", arg, dd_oflag, ARRAY_LEN(dd_oflag), &TT.oflag); in dd_main()
|
D | host.c | 109 for (i=0; i<ARRAY_LEN(rrt); i++) { in host_main() 165 switch (type<ARRAY_LEN(rrt) ? rrt[type].pl : 0) { in host_main()
|
D | vi.c | 492 bytes = text_getline(toybuf, pos, ARRAY_LEN(toybuf)); in text_strstr() 1004 for (i = 0; i < ARRAY_LEN(vi_special); i++) { in run_vi_cmd() 1010 for (i = 0; i < ARRAY_LEN(vi_cmds); i++) { in run_vi_cmd() 1023 for (i = 0; i < ARRAY_LEN(vi_movs); i++) { in run_vi_cmd() 1366 bytes = text_getline(toybuf, SOL, ARRAY_LEN(toybuf)); in draw_page() 1429 bytes = text_getline(toybuf, SSOL, ARRAY_LEN(toybuf)); in draw_page() 1439 bytes = text_getline(line, SSOL, ARRAY_LEN(toybuf)); in draw_page() 1463 bytes = text_getline(line, SSOL, ARRAY_LEN(toybuf)); in draw_page()
|
D | openvt.c | 48 for (i = 0; i < ARRAY_LEN(console_name); i++) {
|
/external/toybox/toys/posix/ |
D | getconf.c | 194 int i, j, lens[] = {ARRAY_LEN(sysconfs), ARRAY_LEN(pathconfs), in getconf_main() 195 ARRAY_LEN(confstrs), ARRAY_LEN(limits), ARRAY_LEN(others)}; in getconf_main()
|
D | logger.c | 66 facility = arrayfind(TT.p, facilities, ARRAY_LEN(facilities)); in logger_main() 76 priority = arrayfind(s1, priorities, ARRAY_LEN(priorities)); in logger_main()
|
D | cp.c | 388 for (i=0; i<ARRAY_LEN(cp_preserve); i++) in cp_main() 394 for (i=0; i<ARRAY_LEN(cp_preserve); i++) in cp_main() 396 if (i == ARRAY_LEN(cp_preserve)) { in cp_main()
|
D | ps.c | 453 for (i = 0; i<ARRAY_LEN(typos)-jump; i++) toybuf[i] = i+(i>=PS_COMM)*jump; in help_help() 454 help_fields(ARRAY_LEN(typos)-jump, 1); in help_help() 455 help_fields(ARRAY_LEN(typos)-jump, 0); in help_help() 472 for (i = 0; i < ARRAY_LEN(match); i++) { in shared_match_process() 864 for (j = 0; j<ARRAY_LEN(fetch); j++) { in get_ps() 877 len = sizeof(toybuf)-256*(ARRAY_LEN(fetch)-j)-(buf-toybuf)-260; in get_ps() 1099 for (i = 0; i<ARRAY_LEN(typos); i++) { in parse_ko() 1113 if (i==ARRAY_LEN(typos)) return type; in parse_ko() 1434 for (i = 0; i<ARRAY_LEN(deltas); i++) in merge_deltas()
|
/external/toybox/toys/other/ |
D | chrt.c | 62 for (pol = 0; pol<ARRAY_LEN(polnames); pol++) if (polnames[pol]) in chrt_main() 75 if ((pol &= ~SCHED_RESET_ON_FORK)<ARRAY_LEN(polnames)) s = polnames[pol]; in chrt_main()
|
D | nsenter.c | 133 for (i = 0; i<ARRAY_LEN(flags); i++) in unshare_main() 148 for (i = 0; i<ARRAY_LEN(flags); i++) { in unshare_main()
|
D | blkid.c | 101 for (i=0; i<ARRAY_LEN(fstypes); i++) { in do_blkid() 118 if (i == ARRAY_LEN(fstypes)) { in do_blkid()
|
D | oneit.c | 69 for (i = 0; i<ARRAY_LEN(pipes); i++) xsignal(pipes[i], oneit_signaled); in oneit_main()
|
D | vconfig.c | 41 int i, j = ARRAY_LEN(types); in vconfig_main()
|
D | modinfo.c | 67 for (i=0; i<ARRAY_LEN(modinfo_tags); i++) { in modinfo_file()
|
/external/toybox/ |
D | main.c | 37 top = ARRAY_LEN(toy_list)-1; in toy_find() 75 toys.toycount = ARRAY_LEN(toy_list); in toy_singleinit() 201 for (i = 1; i<ARRAY_LEN(toy_list); i++) { in toybox_main()
|
D | toys.h | 127 #define ARRAY_LEN(array) (sizeof(array)/sizeof(*array)) macro
|
/external/toybox/toys/net/ |
D | rfkill.c | 53 for (i = 0; i < ARRAY_LEN(rftypes); i++) in rfkill_main() 55 if (i == ARRAY_LEN(rftypes)) idx = atolx_range(*optargs, 0, INT_MAX); in rfkill_main()
|
D | netstat.c | 158 int sz = ARRAY_LEN(state_label); in show_ip() 210 if (type>ARRAY_LEN(types)) type = 0; in show_unix_sockets() 211 if (state>ARRAY_LEN(states) || (state==1 && !flags)) state = 0; in show_unix_sockets() 321 for (dest = 0; dest < ARRAY_LEN(flagarray); dest++) in display_routes()
|
D | ifconfig.c | 143 for (i=0; i < ARRAY_LEN(types)-1; i++) in display_ifconfig() 180 for (i=0; i<ARRAY_LEN(addr); i++) { in display_ifconfig() 222 for (i=0; i<ARRAY_LEN(scopes); i++) in display_ifconfig() 492 } else for (i = 0; i<ARRAY_LEN(try); i++) { in ifconfig_main() 547 if (i == ARRAY_LEN(try)) help_exit("bad argument '%s'", *argv); in ifconfig_main()
|
/external/toybox/lib/ |
D | tty.c | 104 for (i = 0; i < ARRAY_LEN(speeds); i++) if (speeds[i] == speed) break; in set_terminal() 105 if (i == ARRAY_LEN(speeds)) error_exit("unknown speed: %d", speed); in set_terminal() 192 for (i = 0; i<ARRAY_LEN(scan_key_list); i++) { in scan_key_getsize()
|
D | env.c | 107 for (i=0; i<ARRAY_LEN(stuff); i++) in reset_env() 110 for (i=0; i < ARRAY_LEN(stuff); i++) if (stuff[i]) xsetenv(stuff[i], 0); in reset_env()
|
D | portability.c | 447 int signames_len = ARRAY_LEN(signames); 474 for (i=0; i<ARRAY_LEN(signames); i++) in sig_to_num() 572 for (i=0; i<ARRAY_LEN(nn); i++) in fs_type_name()
|
/external/toybox/toys/lsb/ |
D | mount.c | 123 for (i = 0; i < ARRAY_LEN(opts); i++) if (!strcasecmp(opts[i].name, new)) { 133 if (more && i == ARRAY_LEN(opts)) {
|