Searched defs:argv (Results 26 - 50 of 199) sorted by relevance

12345678

/system/core/toolbox/
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 Drmmod.c11 int rmmod_main(int argc, char **argv) argument
25 modname = strrchr(argv[1], '/');
27 modname = argv[1];
30 dot = strchr(argv[1], '.');
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 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 Ddmesg.c11 int dmesg_main(int argc, char **argv) argument
18 if((argc == 2) && (!strcmp(argv[1],"-c"))) {
H A Dload_policy.c11 int load_policy_main(int argc, char **argv) argument
19 fprintf(stderr, "usage: %s policy-file\n", argv[0]);
23 path = argv[1];
H A Dmkdir.c16 int mkdir_main(int argc, char *argv[]) argument
20 if(argc < 2 || strcmp(argv[1], "--help") == 0) {
24 int recursive = (strcmp(argv[1], "-p") == 0 ||
25 strcmp(argv[1], "--parents") == 0) ? 1 : 0;
34 argv++;
42 argv++;
47 pathpiece = strtok(argv[0], "/");
48 if(argv[0][0] == '/') {
69 ret = mkdir(argv[0], 0777);
71 fprintf(stderr, "mkdir failed for %s, %s\n", argv[
[all...]
H A Dmv.c9 int mv_main(int argc, char *argv[]) argument
16 fprintf(stderr,"USAGE: %s <source...> <destination>\n", argv[0]);
21 dest = argv[argc - 1];
32 const char *source = argv[i];
H A Dreboot.c7 int reboot_main(int argc, char *argv[]) argument
18 c = getopt(argc, argv, "np");
32 fprintf(stderr, "usage: %s [-n] [-p] [rebootcommand]\n", argv[0]);
38 fprintf(stderr, "%s: too many arguments\n", argv[0]);
49 ret = android_reboot(ANDROID_RB_RESTART2, flags, argv[optind]);
H A Drotatefb.c13 int rotatefb_main(int argc, char *argv[]) argument
23 c = getopt(argc, argv, "d:");
32 argv[0], optopt);
38 fprintf(stderr, "%s: specify rotation\n", argv[0]);
41 rotation = atoi(argv[optind]);
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 Dsetkey.c9 static void setkey_usage(char *argv[]) argument
16 " -h Print help\n", argv[0]);
21 int setkey_main(int argc, char *argv[]) argument
40 c = getopt(argc, argv, "t:k:v:hr");
74 setkey_usage(argv);
78 argv[0], optopt);
84 setkey_usage(argv);
H A Dsetsebool.c47 int setsebool_main(int argc, char **argv) argument
50 fprintf(stderr, "Usage: %s name=value...\n", argv[0]);
54 return do_setsebool(argc, argv);
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 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...]
/system/extras/tests/bionic/libstdc++/
H A Dtest_cmath.cpp72 int main(int argc, char **argv) argument
H A Dtest_cstdlib.cpp116 int main(int argc, char **argv) argument
/system/extras/tests/cpueater/
H A Dcpueater.c28 int main(int argc, char *argv[]) argument
36 perror(argv[0]);
/system/extras/timeinfo/
H A Dtimeinfo.cpp27 int main(int argc, char *argv[]) argument
/system/core/adb/
H A Dconsole.c27 int adb_send_emulator_command(int argc, char** argv) argument
38 adb_write( fd, argv[nn], strlen(argv[nn]) );
/system/core/init/
H A Dwatchdogd.c29 int watchdogd_main(int argc, char **argv) argument
43 interval = atoi(argv[1]);
46 margin = atoi(argv[2]);
/system/core/libsparse/
H A Dsimg2img.c38 int main(int argc, char *argv[]) argument
51 out = open(argv[argc - 1], O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664);
53 fprintf(stderr, "Cannot open output file %s\n", argv[argc - 1]);
58 if (strcmp(argv[i], "-") == 0) {
61 in = open(argv[i], O_RDONLY | O_BINARY);
63 fprintf(stderr, "Cannot open input file %s\n", argv[i]);
/system/core/sh/bltin/
H A Decho.c59 echocmd(int argc, char **argv) argument
68 ap = argv;
/system/extras/su/
H A Dsu.c42 int main(int argc, char **argv) argument
57 pw = getpwnam(argv[1]);
60 uid = gid = atoi(argv[1]);
74 if (execlp(argv[2], argv[2], NULL) < 0) {
75 fprintf(stderr, "su: exec failed for %s Error:%s\n", argv[2],
83 memcpy(exec_args, &argv[2], sizeof(exec_args));
84 if (execvp(argv[2], exec_args) < 0) {
85 fprintf(stderr, "su: exec failed for %s Error:%s\n", argv[2],
/system/extras/tests/bionic/libc/common/
H A Dtest_clock.c34 int main(int argc, char **argv) argument

Completed in 70 milliseconds

12345678