Searched defs:argv (Results 51 - 75 of 199) sorted by relevance

12345678

/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
H A Dtest_cstring.cpp73 int main(int argc, char **argv) argument
/system/extras/tests/cpueater/
H A Ddaemonize.c31 int main(int argc, char **argv) argument
40 printf("Usage: %s [-f logfile] [-a] [-d delay] <program>\n", argv[0]);
48 while(**++argv == '-') {
49 while(*++*argv) {
50 switch(**argv) {
52 if(*++*argv)
53 file = *argv;
55 file = *++argv;
58 if(*++*argv)
59 delay = atoi(*argv);
[all...]
/system/extras/tests/ext4/
H A Dset_ext4_err_bit.c12 int main(int argc, char *argv[]) argument
23 fd = open(argv[1], O_RDWR);
26 fprintf(stderr, "%s: Cannot open block device %s\n", me, argv[1]);
/system/extras/tests/schedtest/
H A Dschedtest.c23 int main(int argc, char **argv) { argument
/system/security/keystore/
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/bluetooth/tools/
H A Dbttest.c67 int main(int argc, char **argv) { argument
75 if (!strcmp(argv[1], function_table[i].name)) {
/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();
/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/libsparse/
H A Dimg2simg.c46 int main(int argc, char *argv[]) argument
62 block_size = atoi(argv[3]);
70 if (strcmp(argv[1], "-") == 0) {
73 in = open(argv[1], O_RDONLY | O_BINARY);
75 fprintf(stderr, "Cannot open input file %s\n", argv[1]);
80 if (strcmp(argv[2], "-") == 0) {
83 out = open(argv[2], O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664);
85 fprintf(stderr, "Cannot open output file %s\n", argv[2]);
/system/core/libzipfile/
H A Dtest_zipfile.c9 main(int argc, char** argv) argument
20 if (strcmp(argv[2], "-l") == 0 && argc == 3) {
23 else if (strcmp(argv[2], "-u") == 0 && argc == 5) {
34 f = fopen(argv[1], "r");
36 fprintf(stderr, "couldn't open %s\n", argv[1]);
64 entry = lookup_zipentry(zip, argv[3]);
67 argv[1], argv[1]);
70 f = fopen(argv[4], "w");
72 fprintf(stderr, "can't open file for writing '%s'\n", argv[
[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/core/toolbox/
H A Dchmod.c57 int chmod_main(int argc, char **argv) argument
61 if (argc < 3 || strcmp(argv[1], "--help") == 0) {
65 int recursive = (strcmp(argv[1], "-R") == 0 ||
66 strcmp(argv[1], "--recursive") == 0) ? 1 : 0;
74 argv++;
78 const char* s = argv[1];
91 if (chmod(argv[i], mode) < 0) {
92 fprintf(stderr, "Unable to chmod %s: %s\n", argv[i], strerror(errno));
96 recurse_chmod(argv[i], mode);
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 Ddf.c43 int df_main(int argc, char *argv[]) { argument
74 df(argv[i], 1);
H A Dgetprop.c36 int getprop_main(int argc, char *argv[]) argument
46 default_value = argv[2];
51 property_get(argv[1], value, default_value);
H A Dgetsebool.c15 int getsebool_main(int argc, char **argv) argument
20 while ((opt = getopt(argc, argv, "a")) > 0) {
24 usage(argv[0]);
27 argv[0]);
35 argv[0], strerror(errno));
45 usage(argv[0]);
50 fprintf(stderr, "%s: SELinux is disabled\n", argv[0]);
55 usage(argv[0]);
59 fprintf(stderr, "%s: out of memory\n", argv[0]);
63 names[i] = strdup(argv[
[all...]
H A Dhd.c10 int hd_main(int argc, char *argv[]) argument
28 c = getopt(argc, argv, "b:c:r:");
43 argv[0], optopt);
49 fprintf(stderr, "Usage: %s [-b base] [-c count] [-r delay] file\n", argv[0]);
53 fd = open(argv[optind], O_RDONLY);
55 fprintf(stderr, "could not open %s, %s\n", argv[optind], strerror(errno));
86 printf("Read error on %s, offset %d len %d, %s\n", argv[optind], filepos, read_len, strerror(errno));
H A Did.c33 int id_main(int argc, char **argv) argument
H A Dioctl.c13 int ioctl_main(int argc, char *argv[]) argument
30 c = getopt(argc, argv, "rdl:a:h");
52 " -h Print help\n", argv[0]);
56 argv[0], optopt);
62 fprintf(stderr, "%s: too few arguments\n", argv[0]);
66 fd = open(argv[optind], O_RDWR | O_SYNC);
68 fprintf(stderr, "cannot open %s\n", argv[optind]);
73 ioctl_nr = strtol(argv[optind], NULL, 0);
90 uint64_t tmp = strtoull(argv[optind], NULL, 0);
92 fprintf(stderr, "%s: too many arguments\n", argv[
[all...]
H A Dlog.c90 int log_main(int argc, char *argv[]) argument
102 ret = getopt(argc, argv, "t:p:h");
116 usage(argv[0]);
121 usage(argv[0]);
127 usage(argv[0]);
133 strncat(buffer, argv[i], sizeof(buffer)-1);
138 usage(argv[0]);
H A Dmd5.c63 int md5_main(int argc, char *argv[]) argument
72 if (do_md5(argv[i]))
H A Dr.c13 int r_main(int argc, char *argv[]) argument
23 if(!strcmp(argv[1], "-b")) {
26 argv++;
27 } else if(!strcmp(argv[1], "-s")) {
30 argv++;
34 addr = strtoul(argv[1], 0, 16);
36 end = strchr(argv[1], '-');
50 value = strtoul(argv[2], 0, 16);
H A Drenice.c77 int renice_main(int argc, char *argv[]) argument
81 char *cmd = argv[0];
85 argv++;
90 if(strcmp("-r", argv[0]) == 0) {
94 argv++;
97 if(strcmp("-g", argv[0]) == 0) {
100 print_prio(atoi(argv[1]));
107 prio = atoi(argv[0]);
109 argv++;
117 pid = atoi(argv[
[all...]

Completed in 98 milliseconds

12345678