Home
last modified time | relevance | path

Searched refs:argc (Results 1 – 25 of 221) sorted by relevance

123456789

/system/vold/
DCommandListener.cpp50 void CommandListener::dumpArgs(int argc, char **argv, int argObscure) { in dumpArgs() argument
56 for (i = 0; i < argc; i++) { in dumpArgs()
70 if (i != (argc -1)) { in dumpArgs()
83 int argc, char **argv) { in runCommand() argument
113 int argc, char **argv) { in runCommand() argument
114 dumpArgs(argc, argv, -1); in runCommand()
116 if (argc < 2) { in runCommand()
127 if (argc != 3 || (argc == 3 && (strcmp(argv[2], "off") && strcmp(argv[2], "on")))) { in runCommand()
133 if (argc != 3) { in runCommand()
139 if (argc < 3 || argc > 4 || (argc == 4 && strcmp(argv[3], "force"))) { in runCommand()
[all …]
DCommandListener.h29 static void dumpArgs(int argc, char **argv, int argObscure);
35 int runCommand(SocketClient *c, int argc, char ** argv);
42 int runCommand(SocketClient *c, int argc, char ** argv);
49 int runCommand(SocketClient *c, int argc, char ** argv);
56 int runCommand(SocketClient *c, int argc, char ** argv);
63 int runCommand(SocketClient *c, int argc, char ** argv);
70 int runCommand(SocketClient *c, int argc, char ** argv);
77 int runCommand(SocketClient *c, int argc, char ** argv);
Dvdc.c36 static int do_cmd(int sock, int argc, char **argv);
38 int main(int argc, char **argv) { in main() argument
41 if (argc < 2) in main()
53 exit(do_cmd(sock, argc, argv)); in main()
56 static int do_cmd(int sock, int argc, char **argv) { in do_cmd() argument
60 for (i = 1; i < argc; i++) { in do_cmd()
64 asprintf(&cmp, "%s%s", argv[i], (i == (argc -1)) ? "" : " "); in do_cmd()
66 asprintf(&cmp, "\"%s\"%s", argv[i], (i == (argc -1)) ? "" : " "); in do_cmd()
/system/core/adb/
Dcommandline.c51 int install_app(transport_type transport, char* serial, int argc, char** argv);
52 int uninstall_app(transport_type transport, char* serial, int argc, char** argv);
419 int ppp(int argc, char **argv) in ppp() argument
429 if (argc < 2) { in ppp()
457 ppp_args = (const char **) alloca(sizeof(char *) * argc + 1); in ppp()
459 for (i = 2 ; i < argc ; i++) { in ppp()
508 static int logcat(transport_type transport, char* serial, int argc, char **argv) in logcat() argument
524 argc -= 1; in logcat()
526 while(argc-- > 0) { in logcat()
681 int adb_commandline(int argc, char **argv) in adb_commandline() argument
[all …]
/system/core/toolbox/
Drenice.c77 int renice_main(int argc, char *argv[]) in renice_main() argument
84 argc--; in renice_main()
87 if (argc < 1) in renice_main()
93 argc--; in renice_main()
98 if (argc < 2) in renice_main()
104 if (argc < 1) in renice_main()
108 argc--; in renice_main()
111 if (argc < 1) in renice_main()
114 while(argc) { in renice_main()
118 argc--; in renice_main()
Dsmd.c7 int smd_main(int argc, char **argv) in smd_main() argument
11 argc--; in smd_main()
14 if((argc > 0) && (argv[0][0] == '-')) { in smd_main()
16 argc--; in smd_main()
27 while(argc > 0) { in smd_main()
35 argc--; in smd_main()
37 write(fd, argc ? " " : "\r", 1); in smd_main()
Dtoolbox.c7 static int toolbox_main(int argc, char **argv) in toolbox_main() argument
10 if (argc > 1) { in toolbox_main()
11 return main(argc - 1, argv + 1); in toolbox_main()
34 int main(int argc, char **argv) in main() argument
39 if((argc > 1) && (argv[1][0] == '@')) { in main()
41 argc--; in main()
51 return tools[i].func(argc, argv); in main()
Dkill.c8 int kill_main(int argc, char **argv) in kill_main() argument
13 argc--; in kill_main()
16 if(argc >= 2 && argv[0][0] == '-'){ in kill_main()
18 argc--; in kill_main()
22 while(argc > 0){ in kill_main()
30 argc--; in kill_main()
Difconfig.c60 int ifconfig_main(int argc, char *argv[]) in ifconfig_main() argument
69 argc--; in ifconfig_main()
72 if(argc == 0) return 0; in ifconfig_main()
77 argc--, argv++; in ifconfig_main()
83 if (argc == 0) { in ifconfig_main()
127 while(argc > 0) { in ifconfig_main()
131 argc--, argv++; in ifconfig_main()
132 if (!argc) { in ifconfig_main()
140 argc--, argv++; in ifconfig_main()
141 if (!argc) { in ifconfig_main()
[all …]
Dr.c13 int r_main(int argc, char *argv[]) in r_main() argument
19 if(argc < 2) return usage(); in r_main()
23 argc--; in r_main()
27 argc--; in r_main()
31 if(argc < 2) return usage(); in r_main()
34 if(argc > 2) { in r_main()
Drmdir.c12 int rmdir_main(int argc, char *argv[]) in rmdir_main() argument
16 if(argc < 2) return usage(); in rmdir_main()
18 while(argc > 1) { in rmdir_main()
19 argc--; in rmdir_main()
Dmkdir.c12 int mkdir_main(int argc, char *argv[]) in mkdir_main() argument
16 if(argc < 2) return usage(); in mkdir_main()
18 while(argc > 1) { in mkdir_main()
19 argc--; in mkdir_main()
Dln.c12 int ln_main(int argc, char *argv[]) in ln_main() argument
16 if(argc < 2) return usage(); in ln_main()
20 argc--; in ln_main()
24 if(argc < 3) return usage(); in ln_main()
Droute.c51 int route_main(int argc, char *argv[]) in route_main() argument
60 if (argc > 2 && !strcmp(argv[1], "add")) { in route_main()
63 if (argc > 4 && !strcmp(argv[3], "dev")) { in route_main()
71 if (argc > 6 && !strcmp(argv[3], "gw") && !strcmp(argv[5], "dev")) { in route_main()
82 if (argc > 7 && !strcmp(argv[2], "-net") && in route_main()
/system/core/nexus/
DCommandListener.h34 int runCommand(SocketClient *c, int argc, char ** argv);
41 int runCommand(SocketClient *c, int argc, char ** argv);
48 int runCommand(SocketClient *c, int argc, char ** argv);
55 int runCommand(SocketClient *c, int argc, char ** argv);
62 int runCommand(SocketClient *c, int argc, char ** argv);
69 int runCommand(SocketClient *c, int argc, char ** argv);
76 int runCommand(SocketClient *c, int argc, char ** argv);
83 int runCommand(SocketClient *c, int argc, char ** argv);
Dnexctl.c36 static int do_cmd(int sock, int argc, char **argv);
38 int main(int argc, char **argv) { in main() argument
41 if (argc < 2) in main()
53 exit(do_cmd(sock, argc, argv)); in main()
56 static int do_cmd(int sock, int argc, char **argv) { in do_cmd() argument
60 for (i = 1; i < argc; i++) { in do_cmd()
64 asprintf(&cmp, "%s%s", argv[i], (i == (argc -1)) ? "" : " "); in do_cmd()
66 asprintf(&cmp, "\"%s\"%s", argv[i], (i == (argc -1)) ? "" : " "); in do_cmd()
/system/netd/
DCommandListener.h50 int runCommand(SocketClient *c, int argc, char ** argv);
57 int runCommand(SocketClient *c, int argc, char ** argv);
64 int runCommand(SocketClient *c, int argc, char ** argv);
71 int runCommand(SocketClient *c, int argc, char ** argv);
78 int runCommand(SocketClient *c, int argc, char ** argv);
85 int runCommand(SocketClient *c, int argc, char ** argv);
92 int runCommand(SocketClient *c, int argc, char ** argv);
99 int runCommand(SocketClient *c, int argc, char ** argv);
106 int runCommand(SocketClient *c, int argc, char ** argv);
DCommandListener.cpp83 int argc, char **argv) { in runCommand() argument
84 if (argc < 2) { in runCommand()
107 if (argc != 3) { in runCommand()
125 if (argc != 3) { in runCommand()
142 if (argc != 4 || (argc == 4 && (strcmp(argv[3], "rx") && (strcmp(argv[3], "tx"))))) { in runCommand()
168 if (argc != 5) { in runCommand()
183 if (argc < 3) { in runCommand()
233 if (argc < 5) { in runCommand()
266 for (int i = 5; i < argc; i++) { in runCommand()
278 i = argc; // stop after this loop in runCommand()
[all …]
Dndc.c36 static int do_cmd(int sock, int argc, char **argv);
38 int main(int argc, char **argv) { in main() argument
41 if (argc < 2) in main()
53 exit(do_cmd(sock, argc, argv)); in main()
56 static int do_cmd(int sock, int argc, char **argv) { in do_cmd() argument
60 for (i = 1; i < argc; i++) { in do_cmd()
64 asprintf(&cmp, "%s%s", argv[i], (i == (argc -1)) ? "" : " "); in do_cmd()
66 asprintf(&cmp, "\"%s\"%s", argv[i], (i == (argc -1)) ? "" : " "); in do_cmd()
/system/extras/tests/memtest/
Dmemtest.cpp88 int cpufreq_test(int argc, char** argv);
89 int memcpy_test(int argc, char** argv);
90 int memset_test(int argc, char** argv);
91 int memcmp_test(int argc, char** argv);
92 int strlen_test(int argc, char** argv);
93 int malloc_test(int argc, char** argv);
94 int madvise_test(int argc, char** argv);
95 int crash_test(int argc, char** argv);
96 int stack_smasher_test(int argc, char** argv);
97 int crawl_test(int argc, char** argv);
[all …]
/system/core/logwrapper/
Dlogwrapper.c107 void child(int argc, char* argv[]) { in child() argument
109 char* argv_child[argc + 1]; in child()
110 memcpy(argv_child, argv, argc * sizeof(char *)); in child()
111 argv_child[argc] = NULL; in child()
120 int main(int argc, char* argv[]) { in main() argument
128 if (argc < 2) { in main()
134 argc--; in main()
138 if (argc < 2) { in main()
168 child(argc - 1, &argv[1]); in main()
/system/extras/su/
Dsu.c42 int main(int argc, char **argv) in main() argument
47 if(argc < 2) { in main()
73 if (argc == 3 ) { in main()
79 } else if (argc > 3) { in main()
81 char *exec_args[argc - 1]; in main()
/system/core/netcfg/
Dnetcfg.c123 int main(int argc, char **argv) in main() argument
132 if(argc == 1) { in main()
138 if(argc < 3) usage(); in main()
143 argc -= 2; in main()
145 while(argc > 0) { in main()
152 if(argc < nargs) { in main()
162 argc -= nargs; in main()
/system/core/libcutils/
Dzygote.c45 static int send_request(int fd, int sendStdio, int argc, const char **argv) in send_request() argument
67 snprintf(argc_buffer, sizeof(argc_buffer), "%d\n", argc); in send_request()
105 for (i = 0; i < argc; i++) { in send_request()
162 int zygote_run_wait(int argc, const char **argv, void (*post_run_func)(int)) in zygote_run_wait() argument
167 const char *newargv[argc + 1]; in zygote_run_wait()
179 memcpy(newargv + 1, argv, argc * sizeof(*argv)); in zygote_run_wait()
181 pid = send_request(fd, 1, argc + 1, newargv); in zygote_run_wait()
216 int zygote_run_oneshot(int sendStdio, int argc, const char **argv) in zygote_run_oneshot() argument
224 const int newargc = argc; in zygote_run_oneshot()
/system/core/libsysutils/src/
DFrameworkListener.cpp60 int argc = 0; in dispatchCommand() local
106 argv[argc++] = strdup(tmp); in dispatchCommand()
114 argv[argc++] = strdup(tmp); in dispatchCommand()
116 for (k = 0; k < argc; k++) { in dispatchCommand()
130 if (c->runCommand(cli, argc, argv)) { in dispatchCommand()
140 for (j = 0; j < argc; j++) in dispatchCommand()

123456789