Searched refs:argv (Results 126 - 150 of 223) sorted by relevance

123456789

/system/extras/librank/
H A Dlibrank.c165 int main(int argc, char *argv[]) { argument
194 if (!strcmp(argv[i], "-P")) {
197 usage(argv[0]);
200 prefix = argv[++i];
204 if (!strcmp(argv[i], "-v")) { compfn = &sort_by_vss; continue; }
205 if (!strcmp(argv[i], "-r")) { compfn = &sort_by_rss; continue; }
206 if (!strcmp(argv[i], "-p")) { compfn = &sort_by_pss; continue; }
207 if (!strcmp(argv[i], "-u")) { compfn = &sort_by_uss; continue; }
208 if (!strcmp(argv[i], "-R")) { order *= -1; continue; }
209 if (!strcmp(argv[
[all...]
/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]);
/system/core/sh/
H A Deval.c164 evalcmd(int argc, char **argv) argument
171 p = argv[1];
174 ap = argv + 2;
634 parse_command_args(int argc, char **argv, int *use_syspath) argument
642 argv++;
645 cp = *argv;
649 argv++;
680 char **argv; local
700 (void) &argv;
749 argv
1124 bltincmd(int argc, char **argv) argument
1146 breakcmd(int argc, char **argv) argument
1165 returncmd(int argc, char **argv) argument
1184 falsecmd(int argc, char **argv) argument
1191 truecmd(int argc, char **argv) argument
1198 execcmd(int argc, char **argv) argument
1238 timescmd(int argc, char **argv) argument
[all...]
H A Dexec.c119 shellexec(char **argv, char **envp, const char *path, int idx, int vforked) argument
124 if (strchr(argv[0], '/') != NULL) {
125 tryexec(argv[0], argv, envp, vforked);
129 while ((cmdname = padvance(&path, argv[0])) != NULL) {
131 tryexec(cmdname, argv, envp, vforked);
152 argv[0], e, vforked, suppressint ));
153 exerror(EXEXEC, "%s: %s", argv[0], errmsg(e, E_EXEC));
159 tryexec(char *cmd, char **argv, char **envp, int vforked) argument
168 execve(cmd, argv, env
214 execinterp(char **argv, char **envp) argument
331 hashcmd(int argc, char **argv) argument
948 typecmd(int argc, char **argv) argument
[all...]
/system/extras/tests/bionic/libc/common/
H A Dtest_strptime.c24 int main(int argc, char **argv) argument
H A Dtest_udp.c36 int main(int argc, char** argv) argument
47 while (argc > 1 && argv[1][0] == '-') {
48 const char* optName = argv[1]+1;
50 argv++;
H A Dtest_gethostbyname.c36 int main( int argc, char** argv )
43 hostname = argv[1];
/system/extras/tests/bionic/libstdc++/
H A Dtest_climits.cpp84 int main(int argc, char **argv) argument
/system/extras/tests/schedtest/
H A Dschedtest.c23 int main(int argc, char **argv) { argument
/system/core/toolbox/
H A Dtop.c111 int top_main(int argc, char *argv[]) { argument
121 if (!strcmp(argv[i], "-m")) {
124 usage(argv[0]);
127 max_procs = atoi(argv[++i]);
130 if (!strcmp(argv[i], "-n")) {
133 usage(argv[0]);
136 iterations = atoi(argv[++i]);
139 if (!strcmp(argv[i], "-d")) {
142 usage(argv[0]);
145 delay = atoi(argv[
[all...]
H A Ddf.c43 int df_main(int argc, char *argv[]) { argument
74 df(argv[i], 1);
H A Diftop.c226 int iftop_main(int argc, char *argv[]) argument
233 if (!strcmp(argv[i], "-d")) {
238 delay = atoi(argv[i++]);
243 if (!strcmp(argv[i], "-r")) {
248 header_interval = atoi(argv[i++]);
253 if (!strcmp(argv[i], "-h")) {
254 usage(argv[0]);
257 usage(argv[0]);
H A Dmd5.c63 int md5_main(int argc, char *argv[]) argument
72 if (do_md5(argv[i]))
H A Dnotify.c11 int notify_main(int argc, char *argv[]) argument
30 c = getopt(argc, argv, "m:c:pv:w:");
51 argv[0], optopt);
57 fprintf(stderr, "Usage: %s [-m eventmask] [-c count] [-p] [-v verbosity] path [path ...]\n", argv[0]);
66 file_names = argv + optind;
H A Ddu.c72 du_main(int argc, char *argv[]) argument
86 while ((ch = getopt(argc, argv, "HLPacd:ghkmnrsx")) != -1)
139 argv += optind;
171 if (!*argv) {
174 argv = __UNCONST(noargv);
181 if ((fts = fts_open(argv, ftsoptions, NULL)) == NULL)
182 err(1, "fts_open `%s'", *argv);
/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/extras/sound/
H A Dplaywav.c329 int main(int argc, char **argv) argument
337 argv++;
339 if (!strcmp(argv[0],"-rec")) {
341 } else if (!strcmp(argv[0],"-play")) {
343 } else if (!strcmp(argv[0],"-stereo")) {
345 } else if (!strcmp(argv[0],"-mono")) {
347 } else if (!strcmp(argv[0],"-rate")) {
349 argv++;
354 rate = atoi(argv[0]);
356 fn = argv[
[all...]
/system/extras/ext4_utils/
H A Dext2simg.c178 int main(int argc, char **argv) argument
188 while ((opt = getopt(argc, argv, "cvzS")) != -1) {
207 usage(argv[0]);
211 in = argv[optind++];
215 usage(argv[0]);
219 out = argv[optind++];
222 fprintf(stderr, "Unexpected argument: %s\n", argv[optind]);
223 usage(argv[0]);
/system/netd/
H A DDnsProxyListener.h34 int runCommand(SocketClient *c, int argc, char** argv);
66 int runCommand(SocketClient *c, int argc, char** argv);
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/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)) {
/system/extras/fatblock/
H A Dfatblock.c150 int main(int argc, char *argv[]) { argument
164 path = argv[1];
165 mb = atoi(argv[2]);
/system/bluetooth/tools/
H A Dsock_shutdown_bug_l2cap.c26 int main(int argc, char **argv) { argument
H A Dsock_shutdown_bug_tcp.c25 int main(int argc, char **argv) { argument
/system/extras/micro_bench/
H A Dmicro_bench.c180 int main(int argc, char **argv) { argument
191 iters = atoi(argv[3]);
194 if (!strcmp(argv[1], function_table[i].name)) {
196 return (*function_table[i].ptr)(iters, atoi(argv[2]));

Completed in 172 milliseconds

123456789