Searched defs:argv (Results 1 - 25 of 199) sorted by last modified time

12345678

/system/security/keystore/
H A Dkeystore.cpp1411 int main(int argc, char* argv[]) { argument
1417 if (chdir(argv[1]) == -1) {
1418 ALOGE("chdir: %s: %s", argv[1], strerror(errno));
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/vold/
H A DCommandListener.cpp53 void CommandListener::dumpArgs(int argc, char **argv, int argObscure) { argument
60 unsigned int len = strlen(argv[i]) + 1; // Account for space
71 strcpy(p, argv[i]);
72 p+= strlen(argv[i]);
86 int argc, char **argv) {
116 int argc, char **argv) {
117 dumpArgs(argc, argv, -1);
127 if (!strcmp(argv[1], "list")) {
129 } else if (!strcmp(argv[1], "debug")) {
130 if (argc != 3 || (argc == 3 && (strcmp(argv[
85 runCommand(SocketClient *cli, int argc, char **argv) argument
115 runCommand(SocketClient *cli, int argc, char **argv) argument
213 runCommand(SocketClient *cli, int argc, char **argv) argument
302 runCommand(SocketClient *cli, int argc, char **argv) argument
432 runCommand(SocketClient *cli, int argc, char **argv) argument
496 runCommand(SocketClient *cli, int argc, char **argv) argument
539 runCommand(SocketClient *cli, int argc, char **argv) argument
[all...]
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);
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/bluetooth/brcm_patchram_plus/
H A Dbrcm_patchram_plus.c441 parse_cmd_line(int argc, char **argv) argument
471 c = getopt_long_only (argc, argv, "d", long_options,
498 usage(argv[0]);
503 usage(argv[0]);
514 printf ("%s \n", argv[optind]);
515 if ((uart_fd = open(argv[optind], O_RDWR | O_NOCTTY)) == -1) {
517 argv[2], errno);
785 main (int argc, char **argv) argument
791 if (parse_cmd_line(argc, argv)) {
/system/bluetooth/brfpatch/
H A Dbrfpatch.c166 int main(int argc, char **argv) { argument
171 FILE *file_in = fopen(argv[1], "r");
172 FAILIF(!file_in, "Could not open %s: %s\n", argv[1], strerror(errno));
174 FILE *file_out = fopen(argv[2], "w+");
175 FAILIF(!file_out, "Could not open %s: %s\n", argv[2], strerror(errno));
/system/bluetooth/tools/
H A Dasocket_test.c715 int main(int argc, char **argv) { argument
724 if (!strcmp(argv[1], type_table[i].name)) {
734 if (!strcmp(argv[2], action_table[i].name)) {
H A Dbttest.c67 int main(int argc, char **argv) { argument
75 if (!strcmp(argv[1], function_table[i].name)) {
H A Dpipetest.c414 int main(int argc, char **argv) { argument
422 if (!strcmp(argv[1], function_table[i].name)) {
H A Dsock_shutdown_bug_l2cap.c26 int main(int argc, char **argv) { argument
H A Dsock_shutdown_bug_rfcomm.c27 int main(int argc, char **argv) { argument
H A Dsock_shutdown_bug_tcp.c25 int main(int argc, char **argv) { argument
H A Dsock_shutdown_test.c287 int main(int argc, char **argv) { argument
296 if (!strcmp(argv[1], type_table[i].name)) {
306 if (!strcmp(argv[2], action_table[i].name)) {
H A Dsocktest.c789 int main(int argc, char **argv) { argument
798 if (!strcmp(argv[1], type_table[i].name)) {
808 if (!strcmp(argv[2], action_table[i].name)) {
/system/core/adb/
H A Dadb.c1536 int main(int argc, char **argv) argument
1542 return adb_commandline(argc - 1, argv + 1);
1547 if((argc > 1) && (!strcmp(argv[1],"recovery"))) {
H A Dcommandline.c45 int install_app(transport_type transport, char* serial, int argc, char** argv);
46 int uninstall_app(transport_type transport, char* serial, int argc, char** argv);
540 int ppp(int argc, char **argv) argument
543 fprintf(stderr, "error: adb %s not implemented on Win32\n", argv[0]);
552 argv[0]);
557 adb_service_name = argv[1];
581 //argv[2] and beyond become ppp_args[1] and beyond
582 ppp_args[i - 1] = argv[i];
629 static int logcat(transport_type transport, char* serial, int argc, char **argv) argument
645 if (!strcmp(argv[
684 backup(int argc, char** argv) argument
740 restore(int argc, char** argv) argument
909 adb_commandline(int argc, char **argv) argument
1383 char *argv[16]; local
1452 pm_command(transport_type transport, char* serial, int argc, char** argv) argument
1473 uninstall_app(transport_type transport, char* serial, int argc, char** argv) argument
1537 install_app(transport_type transport, char* serial, int argc, char** argv) argument
[all...]
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/charger/
H A Dcharger.c927 int main(int argc, char **argv) argument
/system/core/cpio/
H A Dmkbootfs.c322 int main(int argc, char *argv[]) argument
325 argv++;
327 if (argc > 1 && strcmp(argv[0], "-f") == 0) {
328 read_canned_config(argv[1]);
330 argv += 2;
336 char *x = strchr(*argv, '=');
343 archive(*argv, x);
345 argv++;
/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();
H A Ddebuggerd.c503 int main(int argc, char** argv) { argument
512 if (!strcmp(argv[i], "-b")) {
515 tid = atoi(argv[i]);
/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...]
H A Dusbtest.c151 int process_args(int argc, char **argv) argument
154 char *arg = *argv++;
178 int main(int argc, char **argv) argument
187 if(process_args(argc - 2, argv + 2))
192 if(!strcmp(argv[1], tests[i].cmd)) {
/system/core/fs_mgr/
H A Dfs_mgr_main.c33 * Return the number of argv[] entries consumed.
35 static void parse_options(int argc, char *argv[], int *a_flag, int *u_flag, int *n_flag, argument
38 me = basename(strdup(argv[0]));
44 if (!strcmp(argv[1], "-a")) {
50 if (!strcmp(argv[1], "-n")) {
55 *n_name = argv[2];
56 *n_blk_dev = argv[3];
58 if (!strcmp(argv[1], "-u")) {
78 int main(int argc, char *argv[]) argument
90 parse_options(argc, argv,
[all...]

Completed in 69 milliseconds

12345678