/system/core/init/ |
H A D | ueventd.h | 20 int ueventd_main(int argc, char **argv);
|
H A D | watchdogd.h | 20 int watchdogd_main(int argc, char **argv);
|
/system/core/toolbox/ |
H A D | chcon.c | 7 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 D | ln.c | 12 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 D | sleep.c | 43 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 D | setprop.c | 5 int setprop_main(int argc, char *argv[]) argument 12 if(property_set(argv[1], argv[2])){
|
H A D | lsmod.c | 3 extern int cat_main(int argc, char **argv); 5 int lsmod_main(int argc, char **argv) argument
|
H A D | runcon.c | 8 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 D | setenforce.c | 17 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 D | rmdir.c | 12 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 D | sync.c | 3 int sync_main(int argc, char **argv) argument
|
H A D | toolbox.c | 7 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 D | route.c | 51 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 D | exists.c | 5 int exists_main(int argc, char *argv[]) argument 11 if(stat(argv[1], &s)) {
|
H A D | ionice.c | 10 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 D | smd.c | 7 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 D | start.c | 8 int start_main(int argc, char *argv[]) argument 13 property_set("ctl.start", argv[1]);
|
H A D | stop.c | 6 int stop_main(int argc, char *argv[]) argument 11 property_set("ctl.stop", argv[1]);
|
H A D | renice.c | 77 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 D | zygote.h | 24 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 D | dump_diskconfig.c | 26 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 D | daemonize.c | 31 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 D | test_cstdint.cpp | 42 int main(int argc, char **argv) argument
|
/system/vold/ |
H A D | CommandListener.cpp | 55 void CommandListener::dumpArgs(int argc, char **argv, int argObscure) { argument 63 unsigned int len = strlen(argv[i]) + 1; // Account for space 74 strcpy(p, argv[i]); 75 p+= strlen(argv[i]); 90 int argc, char **argv) { 120 int argc, char **argv) { 121 dumpArgs(argc, argv, -1); 131 if (!strcmp(argv[1], "list")) { 133 } else if (!strcmp(argv[1], "debug")) { 134 if (argc != 3 || (argc == 3 && (strcmp(argv[ 89 runCommand(SocketClient *cli, int argc, char **argv) argument 119 runCommand(SocketClient *cli, int argc, char **argv) argument 217 runCommand(SocketClient *cli, int argc, char **argv) argument 306 runCommand(SocketClient *cli, int argc, char **argv) argument 436 runCommand(SocketClient *cli, int argc, char **argv) argument 500 runCommand(SocketClient *cli, int argc, char **argv) argument 543 runCommand(SocketClient *cli, int argc, char **argv) argument [all...] |
/system/netd/ |
H A D | CommandListener.cpp | 223 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...] |