Searched refs:argv (Results 76 - 100 of 223) sorted by relevance

123456789

/system/core/toolbox/
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 Dchown.c13 int chown_main(int argc, char **argv) argument
22 // Copy argv[1] to 'user' so we can truncate it at the period
26 strncpy(user, argv[1], sizeof(user));
66 if (chown(argv[i], uid, gid) < 0) {
67 fprintf(stderr, "Unable to chown %s: %s\n", argv[i], strerror(errno));
H A Dgetenforce.c7 int getenforce_main(int argc, char **argv) argument
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 Dsetconsole.c31 int setconsole_main(int argc, char *argv[]) argument
45 c = getopt(argc, argv, "d:gtncv:poh");
54 fprintf(stderr, "%s: cannot specify both -g and -t\n", argv[0]);
61 fprintf(stderr, "%s: cannot specify both -g and -t\n", argv[0]);
91 " -h Print help\n", argv[0]);
95 argv[0], optopt);
100 fprintf(stderr,"%s [-d <dev>] [-v <vc>] [-gtncpoh]\n", argv[0]);
H A Drm.c69 int rm_main(int argc, char *argv[]) argument
80 c = getopt(argc, argv, "frR");
103 ret = unlink_recursive(argv[i], flags);
105 ret = unlink(argv[i]);
112 fprintf(stderr, "rm failed for %s, %s\n", argv[i], strerror(errno));
/system/extras/tests/cpueater/
H A Dcpueater.c28 int main(int argc, char *argv[]) argument
36 perror(argv[0]);
/system/netd/
H A DSoftapController.h42 int setSoftap(int argc, char *argv[]);
44 int fwReloadSoftap(int argc, char *argv[]);
H A DNatController.cpp97 int NatController::enableNat(const int argc, char **argv) { argument
100 int addrCount = atoi(argv[4]);
102 const char *intIface = argv[2];
103 const char *extIface = argv[3];
121 ret |= secondaryTableCtrl->modifyFromRule(tableNumber, ADD, argv[5+i]);
123 ret |= secondaryTableCtrl->modifyLocalRoute(tableNumber, ADD, intIface, argv[5+i]);
131 secondaryTableCtrl->modifyLocalRoute(tableNumber, DEL, intIface, argv[5+i]);
133 secondaryTableCtrl->modifyFromRule(tableNumber, DEL, argv[5+i]);
157 secondaryTableCtrl->modifyLocalRoute(tableNumber, DEL, intIface, argv[5+i]);
159 secondaryTableCtrl->modifyFromRule(tableNumber, DEL, argv[
218 disableNat(const int argc, char **argv) argument
[all...]
H A DDnsProxyListener.cpp109 int argc, char **argv) {
112 ALOGD("argv[%i]=%s", i, argv[i]);
124 char* name = argv[1];
131 char* service = argv[2];
139 int ai_flags = atoi(argv[3]);
140 int ai_family = atoi(argv[4]);
141 int ai_socktype = atoi(argv[5]);
142 int ai_protocol = atoi(argv[6]);
174 int argc, char **argv) {
108 runCommand(SocketClient *cli, int argc, char **argv) argument
173 runCommand(SocketClient *cli, int argc, char **argv) argument
[all...]
/system/core/adb/
H A Dadb_client.h42 int adb_send_emulator_command(int argc, char** argv);
/system/core/include/sysutils/
H A DFrameworkCommand.h32 virtual int runCommand(SocketClient *c, int argc, char **argv) = 0;
/system/core/libsysutils/src/
H A DFrameworkCommand.cpp28 int FrameworkCommand::runCommand(SocketClient *c, int argc, char **argv) { argument
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/extras/ext4_utils/
H A Dsetup_fs.c68 int main(int argc, char **argv) argument
73 if (strlen(argv[1]) < 128)
74 need_reboot |= setup_fs(argv[1]);
75 argv++;
/system/extras/tests/bionic/libc/bionic/
H A Dtest_static_init.cpp7 int main(int argc, char** argv) argument
/system/extras/tests/bionic/libstdc++/
H A Dtest_csetjmp.cpp61 int main(int argc, char **argv) argument
H A Dtest_csignal.cpp64 int main(int argc, char **argv) argument
/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 Darith.y137 expcmd(argc, argv)
139 char **argv;
147 p = argv[1];
153 ap = argv + 2;
176 main(argc, argv)
177 char *argv[];
179 printf("%d\n", exp(argv[1]));
H A Dmain.c101 main(int argc, char **argv) argument
168 trputs("Shell args: "); trargs(argv);
174 procargs(argc, argv);
175 if (argv[0] && argv[0][0] == '-') {
365 dotcmd(int argc, char **argv) argument
374 fullname = find_dot_file(argv[1]);
386 exitcmd(int argc, char **argv) argument
391 exitstatus = number(argv[1]);
H A Dhistedit.c194 inputrc(argc, argv)
196 char **argv;
203 if (el_source(el, argv[1])) {
219 histcmd(int argc, char **argv) argument
247 (void) &argv;
257 while (not_fcnumber(argv[optind]) &&
258 (ch = getopt(argc, argv, ":e:lnrs")) != -1)
283 argc -= optind, argv += optind;
328 ((repl = strchr(argv[0], '=')) != NULL)) {
329 pat = argv[
529 histcmd(int argc, char **argv) argument
535 inputrc(int argc, char **argv) argument
[all...]
/system/core/run-as/
H A Drun-as.c102 int main(int argc, char **argv) argument
119 pkgname = argv[1];
167 if (execvp(argv[2], argv+2) < 0) {
168 panic("exec failed for %s Error:%s\n", argv[2], strerror(errno));
/system/extras/tests/ext4/
H A Drand_emmc_perf.c42 int main(int argc, char *argv[]) argument
52 while ((c = getopt(argc, argv, "+rwo")) != -1) {
84 max_blocks = atol(argv[optind]) * ((1024*1024) / TST_BLK_SIZE);
86 if ((fd = open(argv[optind + 1], O_RDWR | o_sync)) < 0) {
87 fprintf(stderr, "Cannot open block device %s\n", argv[optind + 1]);
/system/core/fastboot/
H A Dfastboot.c739 #define skip(n) do { argc -= (n); argv += (n); } while (0)
742 int do_oem_command(int argc, char **argv) argument
750 strcat(command,*argv);
801 int main(int argc, char **argv) argument
819 c = getopt_long(argc, argv, "wub:n:s:S:lp:c:i:m:h", &longopts, NULL);
877 argv += optind;
884 if (argc > 0 && !strcmp(*argv, "devices")) {
890 if (argc > 0 && !strcmp(*argv, "help")) {
898 if(!strcmp(*argv, "getvar")) {
900 fb_queue_display(argv[
[all...]

Completed in 130 milliseconds

123456789