Searched refs:argc (Results 76 - 100 of 219) sorted by path

123456789

/system/core/toolbox/
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) {
H A Dgetsebool.c15 int getsebool_main(int argc, char **argv) argument
20 while ((opt = getopt(argc, argv, "a")) > 0) {
23 if (argc > 2)
54 if (argc < 2)
56 len = argc - 1;
H A Dhd.c10 int hd_main(int argc, char *argv[]) argument
28 c = getopt(argc, argv, "b:c:r:");
48 if (optind + 1 != argc) {
H A Did.c33 int id_main(int argc, char **argv) argument
H A Difconfig.c60 int ifconfig_main(int argc, char *argv[]) argument
69 argc--;
72 if(argc == 0) return 0;
77 argc--, argv++;
83 if (argc == 0) {
127 while(argc > 0) {
131 argc--, argv++;
132 if (!argc) {
140 argc--, argv++;
141 if (!argc) {
[all...]
H A Diftop.c226 int iftop_main(int argc, char *argv[]) argument
232 for (i = 1; i < argc; i++) {
234 if (i >= argc - 1) {
244 if (i >= argc - 1) {
H A Dinsmod.c49 int insmod_main(int argc, char **argv) argument
57 if (argc < 2) {
70 if (argc > 2) {
75 for (i = 2; (i < argc) && (ptr < end); i++) {
H A Dioctl.c13 int ioctl_main(int argc, char *argv[]) argument
30 c = getopt(argc, argv, "rdl:a:h");
61 if(optind + 2 > argc) {
82 length = (argc - optind) * arg_size;
89 while(optind < argc) {
H A Dionice.c10 int ionice_main(int argc, char *argv[]) argument
16 if(argc != 2 && argc != 4) {
26 if (argc == 2) {
H A Dkill.c100 int kill_main(int argc, char **argv) argument
105 argc--;
108 if (argc >= 1 && argv[0][0] == '-') {
131 argc--;
135 while(argc > 0){
143 argc--;
H A Dln.c12 int ln_main(int argc, char *argv[]) argument
16 if(argc < 2) return usage();
20 argc--;
24 if(argc < 3) return usage();
H A Dload_policy.c11 int load_policy_main(int argc, char **argv) argument
18 if (argc != 2) {
H A Dlog.c90 int log_main(int argc, char *argv[]) argument
102 ret = getopt(argc, argv, "t:p:h");
126 if (optind == argc) {
132 for (i = optind ; i < argc ; i++) {
H A Dls.c441 int ls_main(int argc, char **argv) argument
446 if(argc > 1) {
451 for (i = 1; i < argc; i++) {
H A Dlsmod.c3 extern int cat_main(int argc, char **argv);
5 int lsmod_main(int argc, char **argv) argument
H A Dlsof.c220 int lsof_main(int argc, char *argv[]) argument
224 if (argc == 2) {
H A Dlsusb.c204 int lsusb_main(int argc, char **argv) argument
208 if (argc == 2 && !strcmp(argv[1], "-v"))
H A Dmd5.c63 int md5_main(int argc, char *argv[]) argument
67 if (argc < 2)
71 for (i = 1; i < argc; i++) {
H A Dmkdir.c16 int mkdir_main(int argc, char *argv[]) argument
20 if(argc < 2 || strcmp(argv[1], "--help") == 0) {
27 if(recursive && argc < 3) {
33 argc--;
40 while(argc > 1) {
41 argc--;
H A Dmount.c276 int mount_main(int argc, char *argv[]) argument
289 if (argc == 1) return print_mounts();
292 c = getopt(argc, argv, "o:rt:w");
322 if (optind + 2 == argc) {
325 } else if (optind + 1 == argc && rwflag & MS_REMOUNT) {
H A Dmv.c9 int mv_main(int argc, char *argv[]) argument
15 if (argc < 3) {
21 dest = argv[argc - 1];
31 for (i = 1; i < argc - 1; i++) {
H A Dnandread.c21 int nandread_main(int argc, char **argv) argument
50 c = getopt(argc, argv, "d:f:s:S:L:Rhv");
93 if (optind < argc) {
/system/core/toolbox/grep/
H A Dgrep.c317 grep_main(int argc, char *argv[]) argument
384 aargv = (char **)grep_calloc(eargc + argc + 1,
390 for (j = 1; j < (unsigned int)argc; j++, i++)
393 aargc = eargc + argc;
396 aargc = argc;

Completed in 155 milliseconds

123456789