Searched defs:argv (Results 76 - 100 of 199) sorted by relevance

12345678

/system/core/toolbox/
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 Dwatchprops.c40 int watchprops_main(int argc, char *argv[]) argument
H A Dalarm.c11 int alarm_main(int argc, char *argv[]) argument
34 //c = getopt(argc, argv, "uw:");
35 c = getopt(argc, argv, "uwat:");
55 argv[0], optopt);
60 fprintf(stderr,"%s [-uwa] [-t type] [seconds]\n", argv[0]);
108 //strptime(argv[optind], NULL, &tm);
119 ts.tv_sec += strtol(argv[optind], NULL, 0);
120 //strtotimeval(argv[optind], &tv);
122 printf("time %s -> %ld.%09ld\n", argv[optind], ts.tv_sec, ts.tv_nsec);
146 fprintf(stderr,"%s [-u] [date]\n", argv[
[all...]
H A Dcmp.c10 int cmp_main(int argc, char *argv[]) argument
25 c = getopt(argc, argv, "bln:");
40 argv[0], optopt);
46 fprintf(stderr, "Usage: %s [-b] [-l] [-n count] file1 file2\n", argv[0]);
50 fd1 = open(argv[optind], O_RDONLY);
52 fprintf(stderr, "could not open %s, %s\n", argv[optind], strerror(errno));
56 fd2 = open(argv[optind+1], O_RDONLY);
58 fprintf(stderr, "could not open %s, %s\n", argv[optind+1], strerror(errno));
71 printf("%s %s differ byte %d", argv[optind], argv[optin
[all...]
H A Ddate.c43 int date_main(int argc, char *argv[]) argument
59 c = getopt(argc, argv, "us:");
71 argv[0], optopt);
76 fprintf(stderr,"%s [-u] [date]\n", argv[0]);
80 int hasfmt = argc == optind + 1 && argv[optind][0] == '+';
87 (hasfmt ? argv[optind] + 1 : "%a %b %e %H:%M:%S GMT %Y"),
92 (hasfmt ? argv[optind] + 1 : "%a %b %e %H:%M:%S %Z %Y"),
100 tmptr = getdate(argv[optind]);
107 if(getdate_r(argv[optind], &tm) < 0) {
113 //strptime(argv[optin
[all...]
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 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 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));
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 Dwipe.c39 int wipe_main (int argc, char *argv[]) argument
45 whatToWipe = argv[1];
/system/extras/ext4_utils/
H A Dext4fixup_main.c28 int main(int argc, char **argv) argument
37 me = basename(argv[0]);
39 while ((opt = getopt(argc, argv, "vnd:")) != -1) {
59 fsdev = argv[optind++];
62 fprintf(stderr, "Unexpected argument: %s\n", argv[optind]);
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++;
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/extras/tests/bionic/libc/bionic/
H A Dtest_pthread_cond.c67 int main(int argc, const char *argv[]) argument
/system/extras/tests/bionic/libstdc++/
H A Dtest_cstdio.cpp162 int main(int argc, char **argv) argument
H A Dtest_ctime.cpp105 int main(int argc, char **argv) argument
H A Dtest_cstddef.cpp97 int main(int argc, char **argv) argument
/system/extras/tests/ext4/
H A Dcorrupt_gdt_free_blocks.c12 int main(int argc, char *argv[]) argument
27 fd = open(argv[1], O_RDWR);
30 fprintf(stderr, "%s: Cannot open block device %s\n", me, argv[1]);
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/netd/
H A DInterfaceController.cpp90 * argv[2] - wlan interface
91 * argv[3] - command
92 * argv[4] - argument
95 int InterfaceController::interfaceCommand(int argc, char *argv[], char **rbuf) { argument
98 ret = sendCommand_(argc, argv, rbuf);
/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/core/libpixelflinger/tests/codegen/
H A Dcodegen.cpp66 int main(int argc, char** argv) argument
69 printf("usage: %s 00000117:03454504_00001501_00000000\n", argv[0]);
76 sscanf(argv[1], "%08x:%08x_%08x_%08x", &p, &n, &t0, &t1);
/system/core/libsparse/
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/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/fastboot/
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)) {

Completed in 1345 milliseconds

12345678