/external/toybox/toys/other/ |
D | i2ctools.c | 182 if (toys.optc) error_exit("-l doesn't take arguments"); in i2cdetect_main() 185 if (toys.optc != 1) error_exit("-F BUS"); in i2cdetect_main() 195 if (toys.optc != 1 && toys.optc != 3) error_exit("bad args"); in i2cdetect_main() 197 if (toys.optc == 3) { in i2cdetect_main() 283 char *mode = toys.optargs[toys.optc-1]; in i2cset_main() 290 if (*mode == 'b' && toys.optc == 5) { in i2cset_main() 293 } else if (*mode == 'w' && toys.optc == 5) { in i2cset_main() 296 } else if (*mode == 'i' && toys.optc >= 5) { in i2cset_main() 297 if (toys.optc - 4 > I2C_SMBUS_BLOCK_MAX) error_exit("too much data"); in i2cset_main() 299 for (i = 0; i < toys.optc - 4; ++i) in i2cset_main() [all …]
|
D | ionice.c | 60 if (!TT.p && !toys.optc) error_exit("Need -p or COMMAND"); in ionice_main() 77 if (toys.optc == 1) { in iorenice_main() 88 if (!strcmp(toys.optargs[toys.optc-1], classes[TT.c])) break; in iorenice_main() 89 if (toys.optc == 3 || TT.c == 4) TT.n = atolx(toys.optargs[1]); in iorenice_main()
|
D | losetup.c | 180 if (toys.optc > 1) perror_exit("max 1 arg"); in losetup_main() 183 if (toys.optc) error_exit("bad args"); in losetup_main() 189 if (!toys.optc || (file && toys.optc != 2)) in losetup_main()
|
D | taskset.c | 73 if (i || toys.optc < 2) return; in do_taskset() 102 if (toys.optc < 2) error_exit("Needs 2 args"); in taskset_main() 107 pid_t pid = strtol(toys.optargs[toys.optc-1], &c, 10); in taskset_main()
|
D | devmem.c | 22 int writing = toys.optc == 3, page_size = sysconf(_SC_PAGESIZE), bytes = 4,fd; in devmem_main() 28 if (toys.optc>1) { in devmem_main()
|
D | pwgen.c | 46 if (toys.optc && (length = atolx(*toys.optargs))>sizeof(toybuf)) 48 if (toys.optc>1) count = atolx(toys.optargs[1]);
|
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_hotplug_test/ |
D | cpuset_list_compute.c | 32 int c, optc = 0; in checkopt() local 38 optc++; in checkopt() 45 optc++; in checkopt() 53 if (optc == 2) in checkopt() 56 if (argc == optc + 1) { in checkopt() 59 } else if (argc == optc + 2) in checkopt()
|
/external/toybox/toys/posix/ |
D | ln.c | 36 char *dest = TT.t ? TT.t : toys.optargs[--toys.optc], *new; 40 if (FLAG(T) && toys.optc>1) help_exit("Max 2 arguments"); 43 if (!toys.optc) { 44 toys.optc++; 50 if ((i = S_ISDIR(buf.st_mode)) ? FLAG(T) : (toys.optc>1 || TT.t)) 54 for (i=0; i<toys.optc; i++) {
|
D | test.c | 106 if (!toys.optc || strcmp("]", toys.optargs[--toys.optc])) in test_main() 110 if (toys.optc) for (pos = paren = pstack = 0; ; pos++) { in test_main() 111 int len = toys.optc-pos; in test_main() 143 if (!paren || pos==toys.optc || strcmp(")", s)) break; in test_main() 150 if (pos==toys.optc) { in test_main()
|
D | cal.c | 91 if (toys.optc) { in cal_main() 97 tm->tm_year = atolx_range(toys.optargs[--toys.optc], 1, 9999); in cal_main() 101 if (toys.optc) { in cal_main() 102 tm->tm_mon = atolx_range(toys.optargs[--toys.optc], 1, 12); in cal_main()
|
D | cksum.c | 84 if (toys.optc) printf(" %s", name); in do_cksum() 97 if (toys.optc) toys.optc--; in crc32_main()
|
D | wc.c | 45 if (!(!toys.optc && !(toys.optflags & (toys.optflags-1))) && toys.optc!=1) 119 if (toys.optc>1) show_lengths(TT.totals, "total"); in wc_main()
|
D | ulimit.c | 80 if ((FLAG(a)||FLAG(p)) && toys.optc) error_exit("can't set -ap"); in ulimit_main() 89 if (!toys.optc) { in ulimit_main() 115 if (toys.optc) { in ulimit_main()
|
D | uuencode.c | 25 char *name = toys.optargs[toys.optc-1], buf[(76/4)*3]; in uuencode_main() 29 if (toys.optc > 1) fd = xopenro(toys.optargs[0]); in uuencode_main()
|
D | head.c | 39 if ((toys.optc > 1 && !FLAG(q)) || FLAG(v)) { 68 toys.optc--; in head_main()
|
D | cp.c | 369 *destname = tt ? : toys.optargs[--toys.optc]; in cp_main() 372 if (!toys.optc) error_exit("Needs 2 arguments"); in cp_main() 379 if (!destdir && (toys.optc>1 || FLAG(D) || tt)) in cp_main() 384 if (toys.optc>1) help_exit("Max 2 arguments"); in cp_main() 417 for (i=0; i<toys.optc; i++) { in cp_main() 527 char *destname = FLAG(t) ? TT.i.t : (TT.destname = toys.optargs[toys.optc-1]); in install_main() 530 if (toys.optc == !FLAG(t)) return; in install_main()
|
/external/toybox/toys/lsb/ |
D | killall.c | 90 toys.optc--; in killall_main() 94 if (!toys.optc) help_exit("no name"); in killall_main() 98 TT.err = xmalloc(2*toys.optc); in killall_main() 99 for (i=0; i<toys.optc; i++) TT.err[i] = ESRCH; in killall_main() 101 for (i=0; i<toys.optc; i++) { in killall_main()
|
/external/python/cpython3/Tools/scripts/ |
D | objgraph.py | 167 optu = optc = optd = 0 172 optc = 1 175 if optu == optc == optd == 0: 176 optu = optc = optd = 1 188 more = (optu + optc + optd > 1) 197 if optc:
|
/external/python/cpython2/Tools/scripts/ |
D | objgraph.py | 172 optu = optc = optd = 0 177 optc = 1 180 if optu == optc == optd == 0: 181 optu = optc = optd = 1 192 more = (optu + optc + optd > 1) 201 if optc:
|
/external/mksh/src/ |
D | funcs.c | 246 int optc; in c_pwd() local 250 while ((optc = ksh_getopt(wp, &builtin_opt, "LP")) != -1) in c_pwd() 251 switch (optc) { in c_pwd() 606 int optc; in c_whence() local 609 while ((optc = ksh_getopt(wp, &builtin_opt, Tpv)) != -1) in c_whence() 610 switch (optc) { in c_whence() 630 int optc, fcflags = FC_BI | FC_FUNC | FC_PATH | FC_WHENCE; in c_command() local 633 while ((optc = ksh_getopt(wp, &builtin_opt, TpVv)) != -1) in c_command() 634 switch (optc) { in c_command() 779 int optc; in c_alias() local [all …]
|
/external/toybox/toys/net/ |
D | netcat.c | 110 if (FLAG(f) ? toys.optc : (!ll && toys.optc!=(FLAG(U)?1:2))) in netcat_main() 155 if (CFG_TOYBOX_FORK && toys.optc && xfork()) goto cleanup; in netcat_main() 166 if (toys.optc) { in netcat_main()
|
/external/toybox/ |
D | main.c | 95 for (toys.optc = 0; toys.optargs[toys.optc]; toys.optc++); in toy_singleinit() 139 if (argv<toys.optargs || argv>toys.optargs+toys.optc) free(toys.optargs); in toy_init()
|
/external/toybox/toys/pending/ |
D | groupdel.c | 25 struct group *grp = xgetgrnam(toys.optargs[toys.optc-1]); in groupdel_main() 29 if (toys.optc == 2) { in groupdel_main()
|
/external/toybox/toys/example/ |
D | logwrapper.c | 32 for (i = 0; i<toys.optc; i++) len += 2*strlen(toys.optargs[i])+3; in logwrapper_main() 36 for (i = 0; i<toys.optc; i++) { in logwrapper_main()
|
/external/ltp/testcases/network/stress/ns-tools/ |
D | ns-tcpclient.c | 134 int optc; /* option */ in main() local 160 while ((optc = getopt(argc, argv, "S:f:p:t:bwdh")) != EOF) { in main() 161 switch (optc) { in main()
|