Searched defs:argc (Results 51 - 75 of 202) sorted by last modified time

123456789

/system/core/sh/
H A Dexec.c331 hashcmd(int argc, char **argv) argument
948 typecmd(int argc, char **argv) argument
H A Dexpand.c1543 wordexpcmd(int argc, char **argv) argument
1548 out1fmt("%d", argc - 1);
1550 for (i = 1, len = 0; i < argc; i++)
1554 for (i = 1; i < argc; i++) {
H A Dhistedit.c194 inputrc(argc, argv)
195 int argc;
198 if (argc != 2) {
219 histcmd(int argc, char **argv) argument
246 (void) &argc;
253 if (argc == 1)
258 (ch = getopt(argc, argv, ":e:lnrs")) != -1)
283 argc -= optind, argv += optind;
327 if (lflg == 0 && argc > 0 &&
331 argc
529 histcmd(int argc, char **argv) argument
535 inputrc(int argc, char **argv) argument
[all...]
H A Djobs.c256 fgcmd(int argc, char **argv) argument
335 bgcmd(int argc, char **argv) argument
501 jobscmd(int argc, char **argv) argument
602 waitcmd(int argc, char **argv) argument
661 jobidcmd(int argc, char **argv) argument
H A Dmain.c101 main(int argc, char **argv) argument
174 procargs(argc, argv);
365 dotcmd(int argc, char **argv) argument
369 if (argc >= 2) { /* That's what SVR2 does */
386 exitcmd(int argc, char **argv) argument
390 if (argc > 1)
H A Dmiscbltin.c89 readcmd(int argc, char **argv) argument
214 umaskcmd(int argc, char **argv) argument
339 ulimitcmd(int argc, char **argv) argument
H A Doptions.c87 procargs(int argc, char **argv) argument
92 if (argc > 0)
315 shiftcmd(int argc, char **argv) argument
321 if (argc > 1)
345 setcmd(int argc, char **argv) argument
347 if (argc == 1)
378 getoptscmd(int argc, char **argv) argument
382 if (argc < 3)
384 else if (argc == 3)
H A Dtrap.c132 trapcmd(int argc, char **argv) argument
138 if (argc <= 1) {
H A Dvar.c561 exportcmd(int argc, char **argv) argument
570 if (argc <= 1 || pflag) {
596 localcmd(int argc, char **argv) argument
688 setvarcmd(int argc, char **argv) argument
690 if (argc <= 2)
691 return unsetcmd(argc, argv);
692 else if (argc == 3)
707 unsetcmd(int argc, char **argv) argument
/system/core/toolbox/
H A Dalarm.c11 int alarm_main(int argc, char *argv[]) argument
34 //c = getopt(argc, argv, "uw:");
35 c = getopt(argc, argv, "uwat:");
59 if(optind + 2 < argc) {
70 if(optind == argc) {
93 else if(optind + 1 == argc) {
H A Dcat.c230 cat_main(int argc, char *argv[]) argument
235 while ((ch = getopt(argc, argv, "beflnstv")) != -1)
H A Dchcon.c7 int chcon_main(int argc, char **argv) argument
11 if (argc < 3) {
16 for (i = 2; i < argc; i++) {
H A Dchmod.c57 int chmod_main(int argc, char **argv) argument
61 if (argc < 3 || strcmp(argv[1], "--help") == 0) {
68 if (recursive && argc < 4) {
73 argc--;
90 for (i = 2; i < argc; i++) {
H A Dchown.c13 int chown_main(int argc, char **argv) argument
17 if (argc < 3) {
65 for (i = 2; i < argc; i++) {
H A Dcmp.c10 int cmp_main(int argc, char *argv[]) argument
25 c = getopt(argc, argv, "bln:");
45 if (optind + 2 != argc) {
H A Ddate.c43 int date_main(int argc, char *argv[]) argument
59 c = getopt(argc, argv, "us:");
75 if(optind + 2 < argc) {
80 int hasfmt = argc == optind + 1 && argv[optind][0] == '+';
81 if(optind == argc || hasfmt) {
97 else if(optind + 1 == argc) {
H A Ddd.c120 dd_main(int argc, char *argv[]) argument
124 while ((ch = getopt(argc, argv, "")) != -1) {
132 argc -= (optind - 1);
H A Ddf.c43 int df_main(int argc, char *argv[]) { argument
45 if (argc == 1) {
73 for (i = 1; i < argc; i++) {
H A Ddmesg.c11 int dmesg_main(int argc, char **argv) argument
18 if((argc == 2) && (!strcmp(argv[1],"-c"))) {
H A Ddu.c72 du_main(int argc, char *argv[]) argument
86 while ((ch = getopt(argc, argv, "HLPacd:ghkmnrsx")) != -1)
138 argc -= optind;
H A Dexists.c5 int exists_main(int argc, char *argv[]) argument
9 if(argc < 2) return 1;
H A Dgetenforce.c7 int getenforce_main(int argc, char **argv) argument
H A Dgetevent.c473 static void usage(int argc, char *argv[]) argument
490 int getevent_main(int argc, char *argv[]) argument
513 c = getopt(argc, argv, "tns:Sv::dpilqc:rh");
573 usage(argc, argv);
580 if (optind + 1 == argc) {
584 if (optind != argc) {
585 usage(argc, argv);
H A Dgetprop.c36 int getprop_main(int argc, char *argv[]) argument
40 if (argc == 1) {
45 if(argc > 2) {
/system/core/toolbox/cp/
H A Dcp.c106 cp_main(int argc, char *argv[]) argument
119 while ((ch = getopt(argc, argv, "HLNPRfailprv")) != -1)
170 argc -= optind;
173 if (argc < 2)
211 target = argv[--argc];
221 argv[argc] = NULL;
253 if (argc > 1)

Completed in 106 milliseconds

123456789