Searched refs:argv (Results 101 - 125 of 223) sorted by relevance

123456789

/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/toolbox/
H A Ddmesg.c11 int dmesg_main(int argc, char **argv) argument
18 if((argc == 2) && (!strcmp(argv[1],"-c"))) {
H A Dload_policy.c11 int load_policy_main(int argc, char **argv) argument
19 fprintf(stderr, "usage: %s policy-file\n", argv[0]);
23 path = argv[1];
H A Dsetsebool.c47 int setsebool_main(int argc, char **argv) argument
50 fprintf(stderr, "Usage: %s name=value...\n", argv[0]);
54 return do_setsebool(argc, argv);
H A Dumount.c59 int umount_main(int argc, char *argv[]) argument
69 loop = is_loop_mount(argv[1], loopdev);
70 if (umount(argv[1])) {
H A Dps.c203 int ps_main(int argc, char **argv) argument
215 if(!strcmp(argv[1],"-t")) {
217 } else if(!strcmp(argv[1],"-x")) {
219 } else if(!strcmp(argv[1], "-Z")) {
221 } else if(!strcmp(argv[1],"-P")) {
223 } else if(!strcmp(argv[1],"-p")) {
225 } else if(!strcmp(argv[1],"-c")) {
227 } else if(isdigit(argv[1][0])){
228 pidfilter = atoi(argv[1]);
230 namefilter = argv[
[all...]
H A Dvmstat.c72 int vmstat_main(int argc, char *argv[]) { argument
83 if (!strcmp(argv[i], "-n")) {
88 iterations = atoi(argv[++i]);
91 if (!strcmp(argv[i], "-d")) {
96 delay = atoi(argv[++i]);
99 if (!strcmp(argv[i], "-r")) {
104 header_interval = atoi(argv[++i]);
107 if (!strcmp(argv[i], "-h")) {
108 usage(argv[0]);
111 fprintf(stderr, "Invalid argument \"%s\".\n", argv[
[all...]
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...]
/system/extras/tests/bionic/libc/common/
H A Dtest_clock.c34 int main(int argc, char **argv) argument
/system/extras/tests/bionic/libstdc++/
H A Dtest_cmath.cpp72 int main(int argc, char **argv) argument
/system/extras/timeinfo/
H A Dtimeinfo.cpp27 int main(int argc, char *argv[]) argument
/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/sh/bltin/
H A Dbltin.h63 #define INITARGS(argv)
83 #define INITARGS(argv) if ((commandname = argv[0]) == NULL) {fputs("Argc is zero\n", stderr); exit(2);} else
/system/extras/procrank/
H A Dprocrank.c117 int main(int argc, char *argv[]) { argument
142 if (!strcmp(argv[arg], "-v")) { compfn = &sort_by_vss; continue; }
143 if (!strcmp(argv[arg], "-r")) { compfn = &sort_by_rss; continue; }
144 if (!strcmp(argv[arg], "-p")) { compfn = &sort_by_pss; continue; }
145 if (!strcmp(argv[arg], "-u")) { compfn = &sort_by_uss; continue; }
146 if (!strcmp(argv[arg], "-w")) { ws = WS_ONLY; continue; }
147 if (!strcmp(argv[arg], "-W")) { ws = WS_RESET; continue; }
148 if (!strcmp(argv[arg], "-R")) { order *= -1; continue; }
149 if (!strcmp(argv[arg], "-h")) { usage(argv[
[all...]
/system/extras/tests/bionic/libc/other/
H A Dtest_jpeg.c239 int main( int argc, char** argv )
250 for ( ; argc > 1 && argv[1][0] == '-'; argc--, argv++) {
251 const char* arg = &argv[1][1];
257 arg = argv[2];
259 argv++;
277 arg = argv[2];
279 argv++;
307 for ( ; argc > 1; argc--, argv++ )
311 FILE* f = fopen( argv[
[all...]
H A Dtest_zlib.c175 int main( int argc, char** argv )
186 for ( ; argc > 1 && argv[1][0] == '-'; argc--, argv++) {
187 const char* arg = &argv[1][1];
193 arg = argv[2];
195 argv++;
217 for ( ; argc > 1; argc--, argv++ )
220 FILE* f = fopen(argv[1], "rb");
226 fprintf(stderr, "could not open '%s': %s\n", argv[1], strerror(errno) );
230 printf( "testing %s\n", 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/core/sh/
H A Doptions.c87 procargs(int argc, char **argv) argument
91 argptr = argv;
109 arg0 = argv[0];
111 commandname = argv[0];
272 setparam(char **argv) argument
278 for (nparam = 0 ; argv[nparam] ; nparam++);
280 while (*argv) {
281 *ap++ = savestr(*argv++);
315 shiftcmd(int argc, char **argv) argument
322 n = number(argv[
345 setcmd(int argc, char **argv) argument
378 getoptscmd(int argc, char **argv) argument
[all...]
/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/vold/
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);
/system/extras/procmem/
H A Dprocmem.c41 int main(int argc, char *argv[]) { argument
78 usage(argv[0]);
86 if (!strcmp(argv[i], "-w")) { ws = WS_ONLY; continue; }
87 if (!strcmp(argv[i], "-W")) { ws = WS_RESET; continue; }
88 if (!strcmp(argv[i], "-m")) { compfn = NULL; continue; }
89 if (!strcmp(argv[i], "-p")) { compfn = &comp_pss; continue; }
90 if (!strcmp(argv[i], "-h")) { hide_zeros = 1; continue; }
91 fprintf(stderr, "Invalid argument \"%s\".\n", argv[i]);
92 usage(argv[0]);
96 pid = (pid_t)strtol(argv[arg
[all...]
/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;
/system/netd/
H A Dlogwrapper.c92 void child(int argc, const char**argv) {
95 memcpy(argv_child, argv, argc * sizeof(char *));
106 int logwrap(int argc, const char* argv[]) argument
150 child(argc, argv);
155 int rc = parent(argv[0], parent_ptty);
204 int fork_and_execve(const char* filename, char* argv[]) { argument
219 execve(filename, argv, environ);
/system/core/toolbox/cp/
H A Dcp.c106 cp_main(int argc, char *argv[]) argument
114 setprogname(argv[0]);
119 while ((ch = getopt(argc, argv, "HLNPRfailprv")) != -1)
171 argv += optind;
211 target = argv[--argc];
221 argv[argc] = NULL;
264 r = stat(*argv, &tmp_stat);
266 r = lstat(*argv, &tmp_stat);
268 err(EXIT_FAILURE, "%s", *argv);
297 for (src = argv; *sr
328 copy(char *argv[], enum op type, int fts_options) argument
[all...]
/system/extras/latencytop/
H A Dlatencytop.c68 int main(int argc, char *argv[]) { argument
80 if (!strcmp(argv[i], "-d")) {
85 delay = atoi(argv[++i]);
88 if (!strcmp(argv[i], "-n")) {
93 iterations = atoi(argv[++i]);
96 if (!strcmp(argv[i], "-h")) {
97 usage(argv[0]);
100 if (!strcmp(argv[i], "-p")) {
105 pid = atoi(argv[++i]);
108 if (!strcmp(argv[
[all...]

Completed in 126 milliseconds

123456789