Home
last modified time | relevance | path

Searched refs:ARRAY_LEN (Results 1 – 25 of 38) sorted by relevance

12

/external/toybox/toys/pending/
Dstty.c66 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 …]
Dbrctl.c251 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()
Ddd.c140 for (i = 0; i<ARRAY_LEN(convs); i++) in dd_main()
142 if (i == ARRAY_LEN(convs)) error_exit("bad conv=%.*s", len, ss); in dd_main()
Dopenvt.c48 for (i = 0; i < ARRAY_LEN(console_name); i++) {
Ddhcp.c250 .len = ARRAY_LEN(filter_instr),
393 int count, size = ARRAY_LEN(options_list); in strtoopt()
507 int size = ARRAY_LEN(options_list), count, ret = -1; in fill_envp()
934 int size = ARRAY_LEN(options_list); in set_xopt()
1063 int count, optlen, size = ARRAY_LEN(options_list); in dhcpc_parseoptions()
1257 int count, size = ARRAY_LEN(options_list); in free_option_stores()
/external/toybox/toys/posix/
Dgetconf.c199 int i, j, lens[] = {ARRAY_LEN(sysconfs), ARRAY_LEN(pathconfs), in getconf_main()
200 ARRAY_LEN(confstrs), ARRAY_LEN(limits), ARRAY_LEN(others)}; in getconf_main()
Dlogger.c66 facility = arrayfind(TT.p, facilities, ARRAY_LEN(facilities)); in logger_main()
76 priority = arrayfind(s1, priorities, ARRAY_LEN(priorities)); in logger_main()
Dfile.c86 for (i = 0; i<ARRAY_LEN(type); i++) if (j==type[i].val) break;
87 if (i<ARRAY_LEN(type)) printf("%s", type[i].name);
230 if (s[9]<ARRAY_LEN(colors)) c = colors[s[9]]; in do_regular_file()
366 char *name = (type>0 && type<ARRAY_LEN(types))?types[type]:0; in do_regular_file()
Dcp.c382 for (i=0; i<ARRAY_LEN(cp_preserve); i++) in cp_main()
388 for (i=0; i<ARRAY_LEN(cp_preserve); i++) in cp_main()
390 if (i == ARRAY_LEN(cp_preserve)) { in cp_main()
Dps.c452 for (i = 0; i<ARRAY_LEN(typos)-jump; i++) toybuf[i] = i+(i>=PS_COMM)*jump; in help_help()
453 help_fields(ARRAY_LEN(typos)-jump, 1); in help_help()
454 help_fields(ARRAY_LEN(typos)-jump, 0); in help_help()
471 for (i = 0; i < ARRAY_LEN(match); i++) { in shared_match_process()
855 for (j = 0; j<ARRAY_LEN(fetch); j++) { in get_ps()
868 len = sizeof(toybuf)-256*(ARRAY_LEN(fetch)-j)-(buf-toybuf)-260; in get_ps()
1090 for (i = 0; i<ARRAY_LEN(typos); i++) { in parse_ko()
1104 if (i==ARRAY_LEN(typos)) return type; in parse_ko()
1425 for (i = 0; i<ARRAY_LEN(deltas); i++) in merge_deltas()
/external/toybox/lib/
Dtty.c122 for (i = 0; i < ARRAY_LEN(speeds); i++) if (speeds[i] == speed) break; in set_terminal()
123 if (i == ARRAY_LEN(speeds)) error_exit("unknown speed: %d", speed); in set_terminal()
194 for (i = 0; i<ARRAY_LEN(scan_key_list); i++) { in scan_key()
/external/toybox/
Dmain.c47 top = ARRAY_LEN(toy_list)-1; in toy_find()
111 toys.toycount = ARRAY_LEN(toy_list); in toy_singleinit()
201 for (i=1; i<ARRAY_LEN(toy_list); i++) { in toybox_main()
Dtoys.h126 #define ARRAY_LEN(array) (sizeof(array)/sizeof(*array)) macro
/external/toybox/toys/other/
Dchrt.c62 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()
Dnsenter.c133 for (i = 0; i<ARRAY_LEN(flags); i++) in unshare_main()
148 for (i = 0; i<ARRAY_LEN(flags); i++) { in unshare_main()
Dblkid.c83 for (i=0; i<ARRAY_LEN(fstypes); i++) { in do_blkid()
100 if (i == ARRAY_LEN(fstypes)) { in do_blkid()
Doneit.c69 for (i = 0; i<ARRAY_LEN(pipes); i++) xsignal(pipes[i], oneit_signaled); in oneit_main()
Dvconfig.c41 int i, j = ARRAY_LEN(types); in vconfig_main()
Dmodinfo.c61 for (i=0; i<ARRAY_LEN(modinfo_tags); i++) { in modinfo_file()
Dvmstat.c59 for (i = 0; i<ARRAY_LEN(vmstuff); i++) { in get_vmstat_proc()
/external/toybox/toys/net/
Drfkill.c53 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()
Dnetstat.c158 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()
Difconfig.c142 for (i=0; i < ARRAY_LEN(types)-1; i++) in display_ifconfig()
179 for (i=0; i<ARRAY_LEN(addr); i++) { in display_ifconfig()
221 for (i=0; i<ARRAY_LEN(scopes); i++) in display_ifconfig()
491 } else for (i = 0; i<ARRAY_LEN(try); i++) { in ifconfig_main()
546 if (i == ARRAY_LEN(try)) help_exit("bad argument '%s'", *argv); in ifconfig_main()
/external/toybox/toys/android/
Dstart.c43 if (!start) ss = services+ARRAY_LEN(services)-2, direction = -1; in start_stop()
/external/toybox/toys/lsb/
Dmount.c123 for (i = 0; i < ARRAY_LEN(opts); i++) if (!strcasecmp(opts[i].name, new)) {
133 if (more && i == ARRAY_LEN(opts)) {

12