Searched refs:argv (Results 1 - 25 of 223) sorted by relevance

123456789

/system/core/init/
H A Dueventd.h20 int ueventd_main(int argc, char **argv);
H A Dwatchdogd.h20 int watchdogd_main(int argc, char **argv);
/system/core/toolbox/
H A Dchcon.c7 int chcon_main(int argc, char **argv) argument
12 fprintf(stderr, "usage: %s context path...\n", argv[0]);
17 rc = setfilecon(argv[i], argv[1]);
20 argv[0], argv[i], argv[1], strerror(errno));
H A Dln.c12 int ln_main(int argc, char *argv[]) argument
18 if(!strcmp(argv[1],"-s")) {
21 argv++;
27 ret = symlink(argv[1], argv[2]);
29 ret = link(argv[1], argv[2]);
H A Dsleep.c43 int sleep_main(int argc, char *argv[]) argument
49 usage(argv[0]);
52 seconds = strtoul(argv[1], &endptr, 10);
54 if (endptr == argv[1]) {
55 usage(argv[0]);
H A Dsetprop.c5 int setprop_main(int argc, char *argv[]) argument
12 if(property_set(argv[1], argv[2])){
H A Dlsmod.c3 extern int cat_main(int argc, char **argv);
5 int lsmod_main(int argc, char **argv) argument
H A Druncon.c8 int runcon_main(int argc, char **argv) argument
13 fprintf(stderr, "usage: %s context program args...\n", argv[0]);
17 rc = setexeccon(argv[1]);
19 fprintf(stderr, "Could not set context to %s: %s\n", argv[1], strerror(errno));
23 argv += 2;
25 execvp(argv[0], argv);
26 fprintf(stderr, "Could not exec %s: %s\n", argv[0], strerror(errno));
H A Dsetenforce.c17 int setenforce_main(int argc, char **argv) argument
21 usage(argv[0]);
25 fprintf(stderr, "%s: SELinux is disabled\n", argv[0]);
28 if (strlen(argv[1]) == 1 && (argv[1][0] == '0' || argv[1][0] == '1')) {
29 rc = security_setenforce(atoi(argv[1]));
31 if (strcasecmp(argv[1], "enforcing") == 0) {
33 } else if (strcasecmp(argv[1], "permissive") == 0) {
36 usage(argv[
[all...]
H A Drmdir.c12 int rmdir_main(int argc, char *argv[]) argument
20 argv++;
21 ret = rmdir(argv[0]);
23 fprintf(stderr, "rmdir failed for %s, %s\n", argv[0], strerror(errno));
H A Dsync.c3 int sync_main(int argc, char **argv) argument
H A Dtoolbox.c7 static int toolbox_main(int argc, char **argv) argument
11 return main(argc - 1, argv + 1);
34 int main(int argc, char **argv) argument
37 char *name = argv[0];
39 if((argc > 1) && (argv[1][0] == '@')) {
40 name = argv[1] + 1;
42 argv++;
44 char *cmd = strrchr(argv[0], '/');
51 return tools[i].func(argc, argv);
55 printf("%s: no such tool\n", argv[
[all...]
H A Droute.c51 int route_main(int argc, char *argv[]) argument
60 if (argc > 2 && !strcmp(argv[1], "add")) {
61 if (!strcmp(argv[2], "default")) {
63 if (argc > 4 && !strcmp(argv[3], "dev")) {
65 rt.rt_dev = argv[4];
71 if (argc > 6 && !strcmp(argv[3], "gw") && !strcmp(argv[5], "dev")) {
73 rt.rt_dev = argv[6];
74 if (set_address(argv[4], &rt.rt_gateway)) {
82 if (argc > 7 && !strcmp(argv[
[all...]
H A Dexists.c5 int exists_main(int argc, char *argv[]) argument
11 if(stat(argv[1], &s)) {
H A Dionice.c10 int ionice_main(int argc, char *argv[]) argument
21 if (!(pid = atoi(argv[1]))) {
35 if (!strcmp(argv[2], "none")) {
37 } else if (!strcmp(argv[2], "rt")) {
39 } else if (!strcmp(argv[2], "be")) {
41 } else if (!strcmp(argv[2], "idle")) {
44 fprintf(stderr, "Unsupported class '%s'\n", argv[2]);
48 ioprio = atoi(argv[3]);
H A Dsmd.c7 int smd_main(int argc, char **argv) argument
12 argv++;
14 if((argc > 0) && (argv[0][0] == '-')) {
15 port = atoi(argv[0] + 1);
17 argv++;
28 len = strlen(argv[0]);
29 r = write(fd, argv[0], len);
36 argv++;
H A Dstart.c8 int start_main(int argc, char *argv[]) argument
13 property_set("ctl.start", argv[1]);
H A Dstop.c6 int stop_main(int argc, char *argv[]) argument
11 property_set("ctl.stop", argv[1]);
H A Drenice.c77 int renice_main(int argc, char *argv[]) argument
81 char *cmd = argv[0];
85 argv++;
90 if(strcmp("-r", argv[0]) == 0) {
94 argv++;
97 if(strcmp("-g", argv[0]) == 0) {
100 print_prio(atoi(argv[1]));
107 prio = atoi(argv[0]);
109 argv++;
117 pid = atoi(argv[
[all...]
/system/core/include/cutils/
H A Dzygote.h24 int zygote_run_oneshot(int sendStdio, int argc, const char **argv);
25 int zygote_run(int argc, const char **argv);
26 int zygote_run_wait(int argc, const char **argv, void (*post_run_func)(int));
/system/core/libdiskconfig/
H A Ddump_diskconfig.c26 main(int argc, char *argv[]) argument
31 ALOGE("usage: %s <conf file>", argv[0]);
35 if (!(dinfo = load_diskconfig(argv[1], NULL)))
/system/extras/tests/cpueater/
H A Ddaemonize.c31 int main(int argc, char **argv) argument
40 printf("Usage: %s [-f logfile] [-a] [-d delay] <program>\n", argv[0]);
48 while(**++argv == '-') {
49 while(*++*argv) {
50 switch(**argv) {
52 if(*++*argv)
53 file = *argv;
55 file = *++argv;
58 if(*++*argv)
59 delay = atoi(*argv);
[all...]
/system/extras/tests/bionic/libstdc++/
H A Dtest_cstdint.cpp42 int main(int argc, char **argv) argument
/system/vold/
H A DCommandListener.cpp53 void CommandListener::dumpArgs(int argc, char **argv, int argObscure) { argument
60 unsigned int len = strlen(argv[i]) + 1; // Account for space
71 strcpy(p, argv[i]);
72 p+= strlen(argv[i]);
86 int argc, char **argv) {
116 int argc, char **argv) {
117 dumpArgs(argc, argv, -1);
127 if (!strcmp(argv[1], "list")) {
129 } else if (!strcmp(argv[1], "debug")) {
130 if (argc != 3 || (argc == 3 && (strcmp(argv[
85 runCommand(SocketClient *cli, int argc, char **argv) argument
115 runCommand(SocketClient *cli, int argc, char **argv) argument
213 runCommand(SocketClient *cli, int argc, char **argv) argument
302 runCommand(SocketClient *cli, int argc, char **argv) argument
432 runCommand(SocketClient *cli, int argc, char **argv) argument
496 runCommand(SocketClient *cli, int argc, char **argv) argument
539 runCommand(SocketClient *cli, int argc, char **argv) argument
[all...]
/system/netd/
H A DCommandListener.cpp223 int argc, char **argv) {
229 if (!strcmp(argv[1], "list")) {
246 } else if (!strcmp(argv[1], "readrxcounter")) {
253 if (readInterfaceCounters(argv[2], &rx, &tx)) {
264 } else if (!strcmp(argv[1], "readtxcounter")) {
271 if (readInterfaceCounters(argv[2], &rx, &tx)) {
281 } else if (!strcmp(argv[1], "getthrottle")) {
282 if (argc != 4 || (argc == 4 && (strcmp(argv[3], "rx") && (strcmp(argv[3], "tx"))))) {
291 if (!strcmp(argv[
222 runCommand(SocketClient *cli, int argc, char **argv) argument
576 runCommand(SocketClient *cli, int argc, char **argv) argument
593 runCommand(SocketClient *cli, int argc, char **argv) argument
631 runCommand(SocketClient *cli, int argc, char **argv) argument
735 runCommand(SocketClient *cli, int argc, char **argv) argument
772 runCommand(SocketClient *cli, int argc, char **argv) argument
824 runCommand(SocketClient *cli, int argc, char **argv) argument
873 runCommand(SocketClient *cli, int argc, char **argv) argument
1002 runCommand(SocketClient *cli, int argc, char **argv) argument
1278 runCommand(SocketClient *cli, int argc, char **argv) argument
1357 runCommand(SocketClient *cli, int argc, char **argv) argument
[all...]

Completed in 643 milliseconds

123456789