Searched defs:argv (Results 101 - 125 of 199) sorted by relevance

12345678

/system/core/init/
H A Dueventd.c50 int ueventd_main(int argc, char **argv) argument
/system/core/libcutils/
H A Dzygote.c45 static int send_request(int fd, int sendStdio, int argc, const char **argv) argument
109 toprint = argv[i];
162 int zygote_run_wait(int argc, const char **argv, void (*post_run_func)(int)) argument
179 memcpy(newargv + 1, argv, argc * sizeof(*argv));
216 int zygote_run_oneshot(int sendStdio, int argc, const char **argv) argument
223 const char **newargv = argv;
/system/core/logwrapper/
H A Dlogwrapper.c112 void child(int argc, char* argv[]) { argument
115 memcpy(argv_child, argv, argc * sizeof(char *));
125 int main(int argc, char* argv[]) { argument
137 if (strncmp(argv[1], "-d", 2) == 0) {
140 argv++;
173 child(argc - 1, &argv[1]);
182 parent(argv[1], seg_fault_on_exit, parent_ptty);
/system/core/sh/
H A Dalias.c209 aliascmd(int argc, char **argv) argument
228 while ((n = *++argv) != NULL) {
248 unaliascmd(int argc, char **argv) argument
/system/core/toolbox/
H A Difconfig.c60 int ifconfig_main(int argc, char *argv[]) argument
70 argv++;
75 strncpy(ifr.ifr_name, argv[0], IFNAMSIZ);
77 argc--, argv++;
128 if (!strcmp(argv[0], "up")) {
130 } else if (!strcmp(argv[0], "mtu")) {
131 argc--, argv++;
136 setmtu(s, &ifr, argv[0]);
137 } else if (!strcmp(argv[0], "-pointopoint")) {
139 } else if (!strcmp(argv[
[all...]
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 Dnotify.c11 int notify_main(int argc, char *argv[]) argument
30 c = getopt(argc, argv, "m:c:pv:w:");
51 argv[0], optopt);
57 fprintf(stderr, "Usage: %s [-m eventmask] [-c count] [-p] [-v verbosity] path [path ...]\n", argv[0]);
66 file_names = argv + optind;
H A Dreadtty.c56 int readtty_main(int argc, char *argv[]) argument
76 c = getopt(argc, argv, "nt:fa:r:pe:");
103 argv[0], optopt);
H A Dsyren.c62 syren_main(int argc, char **argv) argument
74 switch(argv[1][0]) {
94 sio.value = strtoul(argv[3], 0, 0);
103 if (strcasecmp(argv[2], "all") == 0) {
124 r = find_reg(argv[2]);
126 strcpy(name, argv[2]);
127 char *addr_str = strchr(argv[2], ':');
131 sio.page = strtoul(argv[2], 0, 0);
H A Dumount.c59 int umount_main(int argc, char *argv[]) argument
69 loop = is_loop_mount(argv[1], loopdev);
70 if (umount(argv[1])) {
H A Duptime.c74 int uptime_main(int argc, char *argv[]) argument
/system/extras/sane_schedstat/
H A Dsane_schedstat.c141 int main(int argc, char **argv) { argument
/system/extras/tests/bionic/libc/common/
H A Dtest_udp.c36 int main(int argc, char** argv) argument
47 while (argc > 1 && argv[1][0] == '-') {
48 const char* optName = argv[1]+1;
50 argv++;
/system/extras/tests/bionic/libstdc++/
H A Dtest_climits.cpp84 int main(int argc, char **argv) argument
/system/extras/tests/framebuffer/
H A Drefresh.c27 int main(int argc, char** argv) argument
/system/extras/tests/memtest/
H A Dfptest.cpp126 int fp_test(int argc, char** argv) { argument
/system/extras/tests/timetest/
H A Dtimetest.c58 int main(int argc, char **argv) argument
74 clock_id = atoi(argv[1]);
/system/netd/
H A DNetdConstants.cpp33 static void logExecError(const char* argv[], int res) { argument
34 const char** argp = argv;
55 const char* argv[argsList.size()]; local
58 argv[i] = *it;
63 argv[0] = IPTABLES_PATH;
64 int localRes = fork_and_execve(argv[0], argv);
67 logExecError(argv, localRes);
73 argv[0] = IP6TABLES_PATH;
74 int localRes = fork_and_execve(argv[
[all...]
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/vold/
H A Dlogwrapper.c93 void child(int argc, const char**argv) {
96 memcpy(argv_child, argv, argc * sizeof(char *));
107 int logwrap(int argc, const char* argv[], int background) argument
159 child(argc, argv);
164 int rc = parent(argv[0], parent_ptty);
/system/core/libion/
H A Dion_test.c196 int main(int argc, char* argv[]) { argument
215 c = getopt_long(argc, argv, "af:h:l:mr:st", opts, &i);
/system/core/libsysutils/src/
H A DFrameworkListener.cpp76 char *argv[FrameworkListener::CMD_ARGS_MAX]; local
86 memset(argv, 0, sizeof(argv));
143 argv[argc++] = strdup(tmp);
155 argv[argc++] = strdup(tmp);
158 SLOGD("arg[%d] = '%s'", k, argv[k]);
176 if (!strcmp(argv[0], c->getCommand())) {
177 if (c->runCommand(cli, argc, argv)) {
188 free(argv[j]);
/system/core/mkbootimg/
H A Dmkbootimg.c95 int main(int argc, char **argv) argument
119 argv++;
124 char *arg = argv[0];
125 char *val = argv[1];
130 argv += 2;
/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]);

Completed in 129 milliseconds

12345678