/external/toybox/toys/posix/ |
ln.c | 29 char *dest = toys.optargs[--toys.optc], *new; 34 if (!toys.optc) { 35 toys.optc++; 43 if (toys.optc>1) error_exit("'%s' not a directory", dest); 47 for (i=0; i<toys.optc; i++) {
|
head.c | 33 if (toys.optc > 1) { 58 toys.optc--;
|
uuencode.c | 25 char *name = toys.optargs[toys.optc-1], buf[(76/4)*3]; 29 if (toys.optc > 1) fd = xopenro(toys.optargs[0]);
|
cal.c | 75 if (toys.optc) { 81 tm->tm_year = atolx_range(toys.optargs[--toys.optc], 1, 9999); 85 if (toys.optc) { 86 tm->tm_mon = atolx_range(toys.optargs[--toys.optc], 1, 12);
|
ulimit.c | 70 if ((toys.optflags&(FLAG_a|FLAG_p)) && toys.optc) error_exit("can't set -ap"); 81 if (!toys.optc) { 107 if (toys.optc) {
|
xargs.c | 119 if (!toys.optc) { 122 toys.optc = 1; 125 for (entries = 0, bytes = -1; entries < toys.optc; entries++, bytes++)
|
uniq.c | 67 if (toys.optc >= 1) infile = xfopen(toys.optargs[0], "r"); 68 if (toys.optc >= 2) outfile = xfopen(toys.optargs[1], "w");
|
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_hotplug_test/ |
cpuset_list_compute.c | 33 int optc = 0; local 39 optc++; 46 optc++; 54 if (optc == 2) 57 if (argc == optc + 1) { 60 } else if (argc == optc + 2)
|
/external/toybox/toys/other/ |
ionice.c | 62 if (!TT.pid && !toys.optc) error_exit("Need -p or COMMAND"); 79 if (toys.optc == 1) { 91 if (!strcmp(toys.optargs[toys.optc-1], classes[TT.class])) break; 92 if (toys.optc == 3 || TT.class == 4) TT.level = atolx(toys.optargs[1]);
|
taskset.c | 73 if (i || toys.optc < 2) return; 102 if (toys.optc < 2) error_exit("Needs 2 args"); 107 pid_t pid = strtol(toys.optargs[toys.optc-1], &c, 10);
|
factor.c | 75 if (toys.optc) {
|
losetup.c | 174 if (toys.optc > 1) perror_exit("max 1 arg"); 177 if (toys.optc) error_exit("bad args"); 183 if (!toys.optc || (file && toys.optc != 2))
|
inotifyd.c | 50 toys.optc--; 111 if (--toys.optc <= 0) {
|
/external/toybox/toys/lsb/ |
killall.c | 82 toys.optc--; 86 if (!(toys.optflags & FLAG_l) && !toys.optc) help_exit("no name"); 90 TT.err = xmalloc(2*toys.optc); 91 for (i=0; i<toys.optc; i++) TT.err[i] = ESRCH; 93 for (i=0; i<toys.optc; i++) {
|
mknod.c | 47 if (toys.optc != 4) perror_exit("need major/minor");
|
seq.c | 54 switch (toys.optc) { 57 default: last = atof(toys.optargs[toys.optc-1]);
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/ |
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/toybox/toys/pending/ |
groupdel.c | 25 struct group *grp = xgetgrnam(toys.optargs[toys.optc-1]); 29 if (toys.optc == 2) {
|
test.c | 49 if (!strcmp("]", toys.optargs[--toys.optc])) error_exit("Missing ']'"); 53 toys.optc--; 55 if (!toys.optc) toys.exitval = 0; 89 else if (toys.optc == 1) toys.exitval = *toys.optargs[0] == 0; 90 else if (toys.optc == 3) {
|
groupadd.c | 65 if (toys.optflags && toys.optc == 2) 68 if (toys.optc == 2) { //add user to group
|
ipcrm.c | 72 if (toys.optc && (!strcmp(*toys.argv, "shm") || 86 if (toys.optc) help_exit("unknown argument: %s", *toys.optargs);
|
more.c | 70 if (toys.optc > 1) show_file_header(name); 110 if (toys.optc > 1) {
|
/external/toybox/toys/net/ |
netcat.c | 101 if ((toys.optflags&FLAG_f) ? toys.optc : 102 (!(toys.optflags&(FLAG_l|FLAG_L)) && toys.optc!=2)) 143 if (CFG_TOYBOX_FORK && toys.optc && xfork()) goto cleanup; 162 if (toys.optc) { 165 // TODO nommu, and -t only affects server mode...? Only do -t with optc
|
/external/ltp/testcases/network/stress/ns-tools/ |
ns-udpclient.c | 142 int optc; /* option */ local 168 while ((optc = getopt(argc, argv, "S:f:p:bdh")) != EOF) { 169 switch (optc) {
|
/external/toybox/ |
main.c | 103 for (toys.optc = 0; toys.optargs[toys.optc]; toys.optc++); 137 if (argv<toys.optargs || argv>toys.optargs+toys.optc) free(toys.optargs);
|