Home
last modified time | relevance | path

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

123

/external/ltp/testcases/kernel/controllers/cpuset/cpuset_hotplug_test/
Dcpuset_list_compute.c33 int optc = 0; in checkopt() local
39 optc++; in checkopt()
46 optc++; in checkopt()
54 if (optc == 2) in checkopt()
57 if (argc == optc + 1) { in checkopt()
60 } 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()
Dulimit.c70 if ((toys.optflags&(FLAG_a|FLAG_p)) && toys.optc) error_exit("can't set -ap"); in ulimit_main()
81 if (!toys.optc) { in ulimit_main()
107 if (toys.optc) { in ulimit_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()
Dxargs.c119 if (!toys.optc) { in xargs_main()
122 toys.optc = 1; in xargs_main()
125 for (entries = 0, bytes = -1; entries < toys.optc; entries++, bytes++) in xargs_main()
Dhead.c39 if ((toys.optc > 1 && !(toys.optflags & FLAG_q)) || toys.optflags & FLAG_v) {
69 toys.optc--; in head_main()
Dcp.c366 char *destname = toys.optargs[--toys.optc]; in cp_main()
369 if (toys.optc>1 && !destdir) error_exit("'%s' not directory", destname); in cp_main()
401 for (i=0; i<toys.optc; i++) { in cp_main()
490 TT.destname = toys.optargs[toys.optc-1]; in install_main()
493 if (toys.optc == 1) return; in install_main()
495 if (toys.optc < 2) error_exit("needs 2 args"); in install_main()
Dtail.c151 if (toys.optc > 1) xprintf("==> %s <==\n", name); in do_tail()
233 toys.optc--; in tail_main()
243 TT.files = xmalloc(toys.optc*8); in tail_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()
Dseq.c54 switch (toys.optc) { in seq_main()
57 default: last = atof(toys.optargs[toys.optc-1]); in seq_main()
/external/toybox/toys/other/
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.c174 if (toys.optc > 1) perror_exit("max 1 arg"); in losetup_main()
177 if (toys.optc) error_exit("bad args"); in losetup_main()
183 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()
Dinotifyd.c50 toys.optc--; in inotifyd_main()
111 if (--toys.optc <= 0) { in inotifyd_main()
/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/toybox/toys/pending/
Dtest.c49 if (!strcmp("]", toys.optargs[--toys.optc])) error_exit("Missing ']'"); in test_main()
53 toys.optc--; in test_main()
55 if (!toys.optc) toys.exitval = 0; in test_main()
89 else if (toys.optc == 1) toys.exitval = *toys.optargs[0] == 0; in test_main()
90 else if (toys.optc == 3) { in test_main()
Dgroupdel.c25 struct group *grp = xgetgrnam(toys.optargs[toys.optc-1]); in groupdel_main()
29 if (toys.optc == 2) { in groupdel_main()
/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()
769 int optc; in c_alias() local
[all …]
/external/toybox/toys/net/
Dnetcat.c101 if ((toys.optflags&FLAG_f) ? toys.optc : in netcat_main()
102 (!(toys.optflags&(FLAG_l|FLAG_L)) && toys.optc!=2)) in netcat_main()
143 if (CFG_TOYBOX_FORK && toys.optc && xfork()) goto cleanup; in netcat_main()
162 if (toys.optc) { in netcat_main()
/external/toybox/
Dmain.c103 for (toys.optc = 0; toys.optargs[toys.optc]; toys.optc++); in toy_singleinit()
137 if (argv<toys.optargs || argv>toys.optargs+toys.optc) free(toys.optargs); in toy_init()
/external/ltp/testcases/network/stress/ns-tools/
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()
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-udpserver.c193 int optc; /* option */ in main() local
210 while ((optc = getopt(argc, argv, "f:p:bo:dh")) != EOF) { in main()
211 switch (optc) { in main()
/external/liblzf/
Dlzf.c452 int optc; in main() local
474 while ((optc = getopt_long (argc, argv, "cdfhvb:", longopts, 0)) != -1) in main()
476 while ((optc = getopt (argc, argv, "cdfhvb:")) != -1) in main()
479 switch (optc) in main()

123