Searched defs:argv (Results 1 - 25 of 199) sorted by path

12345678

/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...]
/system/core/gpttool/
H A Dgpttool.c252 int main(int argc, char **argv) argument
267 if (!strcmp(argv[1], "write")) {
270 device = argv[2];
272 argv += 2;
274 } else if (!strcmp(argv[1], "test")) {
276 argv += 1;
321 if (argv[1][0] == '@') {
324 f = fopen(argv[1] + 1, "r");
326 fprintf(stderr,"cannot read partitions from '%s\n", argv[1]);
349 if (parse_ptn(&ptbl, argv[
[all...]
/system/core/init/
H A Dinit.c836 int main(int argc, char **argv) argument
848 if (!strcmp(basename(argv[0]), "ueventd"))
849 return ueventd_main(argc, argv);
851 if (!strcmp(basename(argv[0]), "watchdogd"))
852 return watchdogd_main(argc, argv);
H A Dueventd.c50 int ueventd_main(int argc, char **argv) argument
H A Dwatchdogd.c29 int watchdogd_main(int argc, char **argv) argument
43 interval = atoi(argv[1]);
46 margin = atoi(argv[2]);
/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;

Completed in 90 milliseconds

12345678