Home
last modified time | relevance | path

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

1234

/third_party/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.c179 if (toys.optc > 1) perror_exit("max 1 arg"); in losetup_main()
182 if (toys.optc) error_exit("bad args"); in losetup_main()
188 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.c22 int writing = toys.optc == 3, page_size = getpagesize(), bytes = 4, fd; in devmem_main()
27 if (toys.optc>1) { in devmem_main()
/third_party/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()
/third_party/toybox/toys/posix/
Dln.c35 char *dest = TT.t ? TT.t : toys.optargs[--toys.optc], *new;
40 if (!toys.optc) {
41 toys.optc++;
45 if (FLAG(T) && toys.optc>1) help_exit("Max 2 arguments");
50 if ((FLAG(T) && i) || (!i && (toys.optc>1 || TT.t)))
54 for (i=0; i<toys.optc; i++) {
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.c98 if (!toys.optc || strcmp("]", toys.optargs[--toys.optc])) in test_main()
102 if (toys.optc) for (pos = paren = pstack = 0; ; pos++) { in test_main()
103 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)
118 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 && !FLAG(q)) || FLAG(v)) {
68 toys.optc--; in head_main()
/third_party/toybox/toys/lsb/
Dkillall.c90 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()
/third_party/python/Tools/scripts/
Dobjgraph.py167 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:
/third_party/mksh/
Dfuncs.c251 int optc; in c_pwd() local
255 while ((optc = ksh_getopt(wp, &builtin_opt, "LP")) != -1) in c_pwd()
256 switch (optc) { in c_pwd()
611 int optc; in c_whence() local
614 while ((optc = ksh_getopt(wp, &builtin_opt, Tpv)) != -1) in c_whence()
615 switch (optc) { in c_whence()
635 int optc, fcflags = FC_BI | FC_FUNC | FC_PATH | FC_WHENCE; in c_command() local
638 while ((optc = ksh_getopt(wp, &builtin_opt, TpVv)) != -1) in c_command()
639 switch (optc) { in c_command()
800 int optc; in c_alias() local
[all …]
Dulimit.c203 int how = SOFT | HARD, optc; in c_ulimit() local
207 while ((optc = ksh_getopt(wp, &builtin_opt, rlimits_opts)) != -1) in c_ulimit()
208 switch (optc) { in c_ulimit()
222 what = optc; in c_ulimit()
/third_party/toybox/toys/net/
Dnetcat.c108 if (FLAG(f) ? toys.optc : (!ll && toys.optc!=(FLAG(U)?1:2))) in netcat_main()
153 if (CFG_TOYBOX_FORK && toys.optc && xfork()) goto cleanup; in netcat_main()
164 if (toys.optc) { in netcat_main()
/third_party/toybox/
Dmain.c107 for (toys.optc = 0; toys.optargs[toys.optc]; toys.optc++); in toy_singleinit()
141 if (argv<toys.optargs || argv>toys.optargs+toys.optc) free(toys.optargs); in toy_init()
/third_party/toybox/porting/liteos_a/
Dmain.c107 for (toys.optc = 0; toys.optargs[toys.optc]; toys.optc++); in toy_singleinit()
141 if (argv<toys.optargs || argv>toys.optargs+toys.optc) free(toys.optargs); in toy_init()
/third_party/boost/tools/build/src/engine/
Doption.cpp23 int optc = N_OPTS; in getoptions() local
35 if ( !optc-- ) in getoptions()
/third_party/toybox/toys/pending/
Dgroupdel.c25 struct group *grp = xgetgrnam(toys.optargs[toys.optc-1]); in groupdel_main()
29 if (toys.optc == 2) { in groupdel_main()
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()
/third_party/toybox/toys/example/
Dlogwrapper.c32 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()

1234