/external/toybox/toys/posix/ |
D | ln.c | 29 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()
|
D | cal.c | 75 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()
|
D | ulimit.c | 69 if ((toys.optflags&(FLAG_a|FLAG_p)) && toys.optc) error_exit("can't set -ap"); in ulimit_main() 80 if (!toys.optc) { in ulimit_main() 106 if (toys.optc) { in ulimit_main()
|
D | head.c | 33 if (toys.optc > 1) { 58 toys.optc--; in head_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 = xopen(toys.optargs[0], O_RDONLY); in uuencode_main()
|
D | xargs.c | 119 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()
|
D | cp.c | 371 char *destname = toys.optargs[--toys.optc]; in cp_main() 374 if (toys.optc>1 && !destdir) error_exit("'%s' not directory", destname); in cp_main() 406 for (i=0; i<toys.optc; i++) { in cp_main() 494 TT.destname = toys.optargs[toys.optc-1]; in install_main() 497 if (toys.optc == 1) return; in install_main() 499 if (toys.optc < 2) error_exit("needs 2 args"); in install_main()
|
D | paste.c | 79 for (i = 0; i < toys.optc; i++) { 95 if (anyopen) putchar((i + 1 == toys.optc) ? toybuf[i % ndelim] : '\n');
|
D | tail.c | 148 if (toys.optc > 1) { in do_tail() 233 toys.optc--; in tail_main() 243 TT.files = xmalloc(toys.optc*8); in tail_main()
|
D | uniq.c | 67 if (toys.optc >= 1) infile = xfopen(toys.optargs[0], "r"); in uniq_main() 68 if (toys.optc >= 2) outfile = xfopen(toys.optargs[1], "w"); in uniq_main()
|
/external/toybox/toys/lsb/ |
D | killall.c | 82 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()
|
D | seq.c | 54 switch (toys.optc) { in seq_main() 57 default: last = atof(toys.optargs[toys.optc-1]); in seq_main()
|
/external/toybox/toys/other/ |
D | ionice.c | 62 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()
|
D | netcat.c | 104 if ((toys.optflags&FLAG_f) ? toys.optc : in netcat_main() 105 (!(toys.optflags&(FLAG_l|FLAG_L)) && toys.optc!=2)) in netcat_main() 151 if ((toys.optflags & FLAG_l) && toys.optc) { in netcat_main() 178 if (!child && toys.optc) { in netcat_main() 199 if (CFG_NETCAT_LISTEN && ((toys.optflags&(FLAG_L|FLAG_l)) && toys.optc)) in netcat_main()
|
D | losetup.c | 174 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()
|
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 | inotifyd.c | 50 toys.optc--; in inotifyd_main() 111 if (--toys.optc <= 0) { in inotifyd_main()
|
/external/toybox/toys/pending/ |
D | test.c | 49 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()
|
D | groupdel.c | 25 struct group *grp = xgetgrnam(toys.optargs[toys.optc-1]); in groupdel_main() 29 if (toys.optc == 2) { in groupdel_main()
|
D | groupadd.c | 65 if (toys.optflags && toys.optc == 2) in groupadd_main() 68 if (toys.optc == 2) { //add user to group in groupadd_main()
|
D | ipcrm.c | 72 if (toys.optc && (!strcmp(*toys.argv, "shm") || in ipcrm_main() 86 if (toys.optc) help_exit("unknown argument: %s", *toys.optargs); in ipcrm_main()
|
D | more.c | 67 if (toys.optc > 1) show_file_header(name); in do_cat_operation() 107 if (toys.optc > 1) { in more_main()
|
/external/mksh/src/ |
D | funcs.c | 238 int optc; in c_pwd() local 242 while ((optc = ksh_getopt(wp, &builtin_opt, "LP")) != -1) in c_pwd() 243 switch (optc) { in c_pwd() 520 int rv = 0, optc, fcflags; in c_whence() local 524 while ((optc = ksh_getopt(wp, &builtin_opt, opts)) != -1) in c_whence() 525 switch (optc) { in c_whence() 1048 int optc; in c_alias() local 1051 while ((optc = ksh_getopt(wp, &builtin_opt, "dprtUx")) != -1) { in c_alias() 1053 switch (optc) { in c_alias() 1192 int optc, rv = 0; in c_unalias() local [all …]
|
/external/toybox/ |
D | main.c | 88 for (toys.optc = 0; toys.optargs[toys.optc]; toys.optc++); in toy_singleinit() 122 if (argv<toys.optargs || argv>toys.optargs+toys.optc) free(toys.optargs); in toy_init()
|
/external/liblzf/ |
D | lzf.c | 452 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()
|