Searched refs:argv (Results 51 - 75 of 223) sorted by relevance

123456789

/system/extras/tests/bionic/libc/other/
H A Dtest_atomics.c6 int main(int argc, const char *argv[]) argument
/system/extras/ext4_utils/
H A Dmake_ext4fs_main.c50 int main(int argc, char **argv) argument
69 while ((opt = getopt(argc, argv, "l:j:b:g:i:I:L:a:fwzJsctS:")) != -1) {
101 usage(argv[0]);
134 usage(argv[0]);
141 usage(argv[0]);
147 usage(argv[0]);
153 usage(argv[0]);
157 filename = argv[optind++];
160 directory = argv[optind++];
163 fprintf(stderr, "Unexpected argument: %s\n", argv[optin
[all...]
/system/netd/
H A DCommandListener.h60 int runCommand(SocketClient *c, int argc, char ** argv);
67 int runCommand(SocketClient *c, int argc, char ** argv);
74 int runCommand(SocketClient *c, int argc, char ** argv);
81 int runCommand(SocketClient *c, int argc, char ** argv);
88 int runCommand(SocketClient *c, int argc, char ** argv);
95 int runCommand(SocketClient *c, int argc, char ** argv);
102 int runCommand(SocketClient *c, int argc, char ** argv);
109 int runCommand(SocketClient *c, int argc, char ** argv);
120 int runCommand(SocketClient *c, int argc, char ** argv);
127 int runCommand(SocketClient *c, int argc, char ** argv);
[all...]
H A DNatController.h30 int enableNat(const int argc, char **argv);
31 int disableNat(const int argc, char **argv);
H A DSoftapController.cpp121 * argv[2] - wlan interface
122 * argv[3] - SSID
123 * argv[4] - Security
124 * argv[5] - Key
125 * argv[6] - Channel
126 * argv[7] - Preamble
127 * argv[8] - Max SCB
129 int SoftapController::setSoftap(int argc, char *argv[]) { argument
143 iface = argv[2];
149 ssid = argv[
224 fwReloadSoftap(int argc, char *argv[]) argument
[all...]
H A Dndc.c36 static int do_cmd(int sock, int argc, char **argv);
38 int main(int argc, char **argv) { argument
43 usage(argv[0]);
47 if ((sock = socket_local_client(argv[1],
57 if (argc < 3) usage(argv[0]);
58 printf("Using alt socket %s\n", argv[1]);
62 if (!strcmp(argv[1+cmdOffset], "monitor"))
64 exit(do_cmd(sock, argc-cmdOffset, &(argv[cmdOffset])));
67 static int do_cmd(int sock, int argc, char **argv) { argument
77 if (index(argv[
[all...]
/system/core/libsparse/
H A Dimg2simg.c46 int main(int argc, char *argv[]) argument
62 block_size = atoi(argv[3]);
70 if (strcmp(argv[1], "-") == 0) {
73 in = open(argv[1], O_RDONLY | O_BINARY);
75 fprintf(stderr, "Cannot open input file %s\n", argv[1]);
80 if (strcmp(argv[2], "-") == 0) {
83 out = open(argv[2], O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664);
85 fprintf(stderr, "Cannot open output file %s\n", argv[2]);
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]);
H A Dsimg2simg.c42 int main(int argc, char *argv[]) argument
59 max_size = atoll(argv[3]);
61 in = open(argv[1], O_RDONLY | O_BINARY);
63 fprintf(stderr, "Cannot open input file %s\n", argv[1]);
92 ret = snprintf(filename, sizeof(filename), "%s.%d", argv[2], i);
100 fprintf(stderr, "Cannot open output file %s\n", argv[2]);
/system/core/toolbox/
H A Dioctl.c13 int ioctl_main(int argc, char *argv[]) argument
30 c = getopt(argc, argv, "rdl:a:h");
52 " -h Print help\n", argv[0]);
56 argv[0], optopt);
62 fprintf(stderr, "%s: too few arguments\n", argv[0]);
66 fd = open(argv[optind], O_RDWR | O_SYNC);
68 fprintf(stderr, "cannot open %s\n", argv[optind]);
73 ioctl_nr = strtol(argv[optind], NULL, 0);
90 uint64_t tmp = strtoull(argv[optind], NULL, 0);
92 fprintf(stderr, "%s: too many arguments\n", argv[
[all...]
H A Dhd.c10 int hd_main(int argc, char *argv[]) argument
28 c = getopt(argc, argv, "b:c:r:");
43 argv[0], optopt);
49 fprintf(stderr, "Usage: %s [-b base] [-c count] [-r delay] file\n", argv[0]);
53 fd = open(argv[optind], O_RDONLY);
55 fprintf(stderr, "could not open %s, %s\n", argv[optind], strerror(errno));
86 printf("Read error on %s, offset %d len %d, %s\n", argv[optind], filepos, read_len, strerror(errno));
H A Drestorecon.c54 int restorecon_main(int argc, char **argv) argument
59 progname = argv[0];
62 ch = getopt(argc, argv, "nrRv");
82 argv += optind;
97 fts = fts_open(argv, ftsflags, NULL);
100 argv[0], strerror(errno));
125 rc = lstat(argv[i], &sb);
127 fprintf(stderr, "Could not stat %s: %s\n", argv[i],
131 restore(argv[i], &sb);
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 Dtouch.c15 int touch_main(int argc, char *argv[]) argument
24 if (argv[i][0] == '-') {
26 const char *arg = argv[i]+1;
34 specified_time.tv_sec = atol(argv[++i]);
52 file = argv[i];
H A Dgetprop.c36 int getprop_main(int argc, char *argv[]) argument
46 default_value = argv[2];
51 property_get(argv[1], value, default_value);
H A Dinsmod.c49 int insmod_main(int argc, char **argv) argument
63 file = read_file(argv[1], &size);
65 fprintf(stderr, "insmod: can't open '%s'\n", argv[1]);
76 len = min(strlen(argv[i]), end - ptr);
77 memcpy(ptr, argv[i], len);
89 argv[1], strerror(errno));
H A Dkill.c100 int kill_main(int argc, char **argv) argument
106 argv++;
108 if (argc >= 1 && argv[0][0] == '-') {
110 size_t arg_len = strlen(argv[0]);
116 char* arg = argv[0] + 1;
132 argv++;
136 int pid = atoi(argv[0]);
144 argv++;
H A Dsendevent.c48 int sendevent_main(int argc, char *argv[]) argument
57 fprintf(stderr, "use: %s device type code value\n", argv[0]);
61 fd = open(argv[1], O_RDWR);
63 fprintf(stderr, "could not open %s, %s\n", argv[optind], strerror(errno));
67 fprintf(stderr, "could not get driver version for %s, %s\n", argv[optind], strerror(errno));
71 event.type = atoi(argv[2]);
72 event.code = atoi(argv[3]);
73 event.value = atoi(argv[4]);
/system/extras/tests/memtest/
H A 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);
105 main(int argc, char** argv) argument
137 memcpy_test(int argc, char** argv) argument
266 memset_test(int argc, char** argv) argument
403 memcmp_test(int argc, char** argv) argument
516 strlen_test(int argc, char** argv) argument
593 malloc_test(int argc, char** argv) argument
624 madvise_test(int argc, char** argv) argument
673 cpufreq_test(int argc, char** argv) argument
718 crash_test(int argc, char** argv) argument
732 stack_smasher_test(int argc, char** argv) argument
763 crawl_test(int argc, char** argv) argument
[all...]
/system/core/netcfg/
H A Dnetcfg.c136 int main(int argc, char **argv) argument
153 iname = argv[1];
157 argv += 2;
160 if(!strcmp(argv[0], CMDS[n].name)) {
161 char *cmdname = argv[0];
164 argv[0] = iname;
170 if(call_func(CMDS[n].func, nargs, argv)) {
176 argv += nargs;
180 fprintf(stderr,"no such action '%s'\n", argv[0]);
/system/vold/
H A Dvdc.c37 static int do_cmd(int sock, int argc, char **argv);
39 int main(int argc, char **argv) { argument
43 usage(argv[0]);
52 if (!strcmp(argv[1], "monitor"))
54 exit(do_cmd(sock, argc, argv));
57 static int do_cmd(int sock, int argc, char **argv) { argument
65 if (!index(argv[i], ' '))
66 asprintf(&cmp, "%s%s", argv[i], (i == (argc -1)) ? "" : " ");
68 asprintf(&cmp, "\"%s\"%s", argv[i], (i == (argc -1)) ? "" : " ");
/system/core/debuggerd/
H A Dcrasher.c77 int main(int argc, char **argv) argument
86 if(!strcmp(argv[1],"nostack")) crashnostack();
87 if(!strcmp(argv[1],"ctest")) return ctest();
88 if(!strcmp(argv[1],"exit")) exit(1);
89 if(!strcmp(argv[1],"abort")) maybeabort();
/system/security/keystore/
H A Dkeystore_cli.cpp44 int main(int argc, char* argv[]) argument
47 printf("Usage: %s action [parameter ...]\n", argv[0]);
58 send(sock, argv[1], 1, 0);
61 uint16_t length = strlen(argv[i]);
65 send(sock, argv[i], length, 0);
/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/sh/bltin/
H A Decho.c59 echocmd(int argc, char **argv) argument
68 ap = argv;

Completed in 67 milliseconds

123456789