Home
last modified time | relevance | path

Searched refs:optc (Results 1 – 25 of 79) sorted by relevance

1234

/external/toybox/toys/other/
Di2ctools.c182 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 …]
Dionice.c62 if (!TT.pid && !toys.optc) error_exit("Need -p or COMMAND"); in ionice_main()
79 if (toys.optc == 1) { in iorenice_main()
91 if (!strcmp(toys.optargs[toys.optc-1], classes[TT.class])) break; in iorenice_main()
92 if (toys.optc == 3 || TT.class == 4) TT.level = atolx(toys.optargs[1]); in iorenice_main()
Dlosetup.c168 if (toys.optc > 1) perror_exit("max 1 arg"); in losetup_main()
171 if (toys.optc) error_exit("bad args"); in losetup_main()
177 if (!toys.optc || (file && toys.optc != 2)) in losetup_main()
Dtaskset.c73 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()
Ddevmem.c23 int writing = toys.optc == 3, page_size = getpagesize(), bytes = 4, fd; in devmem_main()
28 if (toys.optc>1) { in devmem_main()
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_hotplug_test/
Dcpuset_list_compute.c32 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/
Dln.c29 char *dest = toys.optargs[--toys.optc], *new; in ln_main()
34 if (!toys.optc) { in ln_main()
35 toys.optc++; in ln_main()
43 if (toys.optc>1) error_exit("'%s' not a directory", dest); in ln_main()
47 for (i=0; i<toys.optc; i++) { in ln_main()
Dcal.c75 if (toys.optc) { in cal_main()
81 tm->tm_year = atolx_range(toys.optargs[--toys.optc], 1, 9999); in cal_main()
85 if (toys.optc) { in cal_main()
86 tm->tm_mon = atolx_range(toys.optargs[--toys.optc], 1, 12); in cal_main()
Dtest.c97 if (!toys.optc || strcmp("]", toys.optargs[--toys.optc])) in test_main()
101 if (toys.optc) for (pos = paren = pstack = 0; ; pos++) { in test_main()
102 int len = toys.optc-pos; in test_main()
Dcksum.c84 if (toys.optc) printf(" %s", name); in do_cksum()
97 if (toys.optc) toys.optc--; in crc32_main()
Dulimit.c71 if ((FLAG(a)||FLAG(p)) && toys.optc) error_exit("can't set -ap"); in ulimit_main()
82 if (!toys.optc) { in ulimit_main()
108 if (toys.optc) { in ulimit_main()
Dwc.c45 if (!(!toys.optc && !(toys.optflags & (toys.optflags-1))) && toys.optc!=1)
119 if (toys.optc>1) show_lengths(TT.totals, "total"); in wc_main()
Duuencode.c25 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()
Dhead.c39 if ((toys.optc > 1 && !(toys.optflags & FLAG_q)) || toys.optflags & FLAG_v) {
69 toys.optc--; in head_main()
Dxargs.c126 if (!toys.optc) { in xargs_main()
129 toys.optc = 1; in xargs_main()
132 for (entries = 0, bytes = -1; entries < toys.optc; entries++, bytes++) in xargs_main()
/external/toybox/toys/lsb/
Dkillall.c82 toys.optc--; in killall_main()
86 if (!(toys.optflags & FLAG_l) && !toys.optc) help_exit("no name"); in killall_main()
90 TT.err = xmalloc(2*toys.optc); in killall_main()
91 for (i=0; i<toys.optc; i++) TT.err[i] = ESRCH; in killall_main()
93 for (i=0; i<toys.optc; i++) { in killall_main()
/external/python/cpython3/Tools/scripts/
Dobjgraph.py167 optu = optc = optd = 0
172 optc = 1
175 if optu == optc == optd == 0:
176 optu = optc = optd = 1
187 more = (optu + optc + optd > 1)
196 if optc:
/external/python/cpython2/Tools/scripts/
Dobjgraph.py172 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/
Dfuncs.c249 int optc; in c_pwd() local
253 while ((optc = ksh_getopt(wp, &builtin_opt, "LP")) != -1) in c_pwd()
254 switch (optc) { in c_pwd()
609 int optc; in c_whence() local
612 while ((optc = ksh_getopt(wp, &builtin_opt, Tpv)) != -1) in c_whence()
613 switch (optc) { in c_whence()
633 int optc, fcflags = FC_BI | FC_FUNC | FC_PATH | FC_WHENCE; in c_command() local
636 while ((optc = ksh_getopt(wp, &builtin_opt, TpVv)) != -1) in c_command()
637 switch (optc) { in c_command()
773 int optc; in c_alias() local
[all …]
/external/toybox/toys/net/
Dnetcat.c87 if ((toys.optflags&FLAG_f) ? toys.optc : in netcat_main()
88 (!(toys.optflags&(FLAG_l|FLAG_L)) && toys.optc!=2)) in netcat_main()
134 if (CFG_TOYBOX_FORK && toys.optc && xfork()) goto cleanup; in netcat_main()
145 if (toys.optc) { in netcat_main()
/external/toybox/
Dmain.c106 for (toys.optc = 0; toys.optargs[toys.optc]; toys.optc++); in toy_singleinit()
140 if (argv<toys.optargs || argv>toys.optargs+toys.optc) free(toys.optargs); in toy_init()
/external/toybox/toys/pending/
Dlsof.c54 if (toys.optc) { in print_info()
57 for (i = 0; i<toys.optc; i++) in print_info()
61 if (i==toys.optc) return; in print_info()
430 if (toys.optc) { in lsof_main()
431 TT.sought_files = xmalloc(toys.optc*sizeof(struct stat)); in lsof_main()
432 for (i = 0; i<toys.optc; ++i) xstat(toys.optargs[i], TT.sought_files+i); in lsof_main()
Dgroupdel.c25 struct group *grp = xgetgrnam(toys.optargs[toys.optc-1]); in groupdel_main()
29 if (toys.optc == 2) { in groupdel_main()
/external/ltp/testcases/network/stress/ns-tools/
Dns-udpclient.c142 int optc; /* option */ in main() local
168 while ((optc = getopt(argc, argv, "S:f:p:bdh")) != EOF) { in main()
169 switch (optc) { in main()
Dns-tcpclient.c134 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()

1234