Searched defs:argv (Results 151 - 175 of 208) sorted by relevance

123456789

/system/core/sh/
H A Dhistedit.c194 inputrc(argc, argv)
196 char **argv;
203 if (el_source(el, argv[1])) {
219 histcmd(int argc, char **argv) argument
247 (void) &argv;
257 while (not_fcnumber(argv[optind]) &&
258 (ch = getopt(argc, argv, ":e:lnrs")) != -1)
283 argc -= optind, argv += optind;
328 ((repl = strchr(argv[0], '=')) != NULL)) {
329 pat = argv[
529 histcmd(int argc, char **argv) argument
535 inputrc(int argc, char **argv) argument
[all...]
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...]
H A Dtrap.c132 trapcmd(int argc, char **argv) argument
148 ap = argv + 1;
/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/core/toolbox/
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);
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 Dls.c442 int ls_main(int argc, char **argv) argument
453 if (argv[i][0] == '-') {
455 const char *arg = argv[i]+1;
475 strlist_append_dup(&files, argv[i]);
H A Dmount.c299 int mount_main(int argc, char *argv[]) argument
308 progname = argv[0];
315 c = getopt(argc, argv, "o:rt:w");
346 dev = argv[optind];
347 dir = argv[optind + 1];
349 get_mounts_dev_dir(argv[optind], &dev, &dir);
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 Dschedtop.c271 int schedtop_main(int argc, char **argv) argument
283 c = getopt(argc, argv, "d:ibtamun");
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...]
/system/core/toolbox/grep/
H A Dutil.c112 grep_tree(char **argv) argument
136 if (!(fts = fts_open(argv, fts_flags, NULL)))
/system/extras/cpustats/
H A Dcpustats.c69 int main(int argc, char *argv[]) { argument
79 if (!strcmp(argv[i], "-n")) {
82 usage(argv[0]);
85 iterations = atoi(argv[++i]);
88 if (!strcmp(argv[i], "-d")) {
91 usage(argv[0]);
94 delay = atoi(argv[++i]);
97 if (!strcmp(argv[i], "-m")) {
100 if (!strcmp(argv[i], "-h")) {
101 usage(argv[
[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...]
/system/extras/memtrack/
H A Dmemtrack.cpp295 int main(int argc, char **argv) { argument
305 if (strcmp(argv[i], "--verbose") == 0) {
307 } else if (strcmp(argv[i], "--quiet") == 0) {
309 } else if (strcmp(argv[i], "--scan_delay") == 0) {
311 printf("The %s options requires a single argument.\n", argv[i]);
315 scan_delay_sec = atoi(argv[++i]);
317 printf("Unknown option %s\n", argv[i]);
/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/extras/procrank/
H A Dprocrank.c119 int main(int argc, char *argv[]) { argument
148 if (!strcmp(argv[arg], "-v")) { compfn = &sort_by_vss; continue; }
149 if (!strcmp(argv[arg], "-r")) { compfn = &sort_by_rss; continue; }
150 if (!strcmp(argv[arg], "-p")) { compfn = &sort_by_pss; continue; }
151 if (!strcmp(argv[arg], "-u")) { compfn = &sort_by_uss; continue; }
152 if (!strcmp(argv[arg], "-s")) { compfn = &sort_by_swap; continue; }
153 if (!strcmp(argv[arg], "-c")) { required_flags = 0; flags_mask = PM_PAGE_SWAPBACKED; continue; }
154 if (!strcmp(argv[arg], "-C")) { required_flags = flags_mask = PM_PAGE_SWAPBACKED; continue; }
155 if (!strcmp(argv[arg], "-k")) { required_flags = flags_mask = PM_PAGE_KSM; continue; }
156 if (!strcmp(argv[ar
[all...]
/system/extras/showmap/
H A Dshowmap.c316 int main(int argc, char *argv[]) argument
325 for (argc--, argv++; argc > 0; argc--, argv++) {
326 arg = argv[0];
/system/extras/showslab/
H A Dshowslab.c270 int main(int argc, char *argv[]) argument
280 if (argc == 3 && !strcmp(argv[1], "-n")) {
282 nr_rows = (unsigned int) strtoul(argv[2], NULL, 0);
288 else if (argc == 3 && !strcmp(argv[1], "-s"))
289 sort_func = set_sort_func(argv[2][0]) ? : DEF_SORT_FUNC;
291 fprintf(stderr, "usage: %s [options]\n\n", argv[0]);
/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/tests/binder/benchmarks/
H A DbinderAddInts.cpp98 int main(int argc, char *argv[]) argument
114 while ((opt = getopt(argc, argv, "s:c:n:d:?")) != -1) {
163 cerr << basename(argv[0]) << " [options]" << endl;
/system/extras/tests/directiotest/
H A Ddirectiotest.c169 int main(int argc, const char *argv[]) argument
186 path = argv[1];
/system/extras/tests/framebuffer/
H A Dfb_test.c257 int main(int argc, char **argv) { argument
264 bpp = atoi(argv[1]);
267 id = !!atoi(argv[4]);
272 w = atoi(argv[2]);
273 h = atoi(argv[3]);
/system/extras/tests/memtest/
H A Dbandwidth.cpp66 bool processBandwidthOptions(int argc, char** argv, option_t options[], argument
69 if (argv[i][0] == '-' && argv[i][1] == '-' && !isdigit(argv[i][2])) {
70 char *arg = &argv[i][2];
80 (*values)[name].int_value = strtol(argv[++i], NULL, 0);
82 (*values)[name].char_value = argv[++i];
211 bool processThreadArgs(int argc, char** argv, option_t options[], argument
217 if (!processBandwidthOptions(argc, argv, options, values)) {
295 int per_core_bandwidth(int argc, char** argv) { argument
333 multithread_bandwidth(int argc, char** argv) argument
369 run_bandwidth_benchmark(int argc, char** argv, const char *name, std::vector<BandwidthBenchmark*> bench_objs) argument
423 copy_bandwidth(int argc, char** argv) argument
438 write_bandwidth(int argc, char** argv) argument
454 read_bandwidth(int argc, char** argv) argument
[all...]
/system/extras/tests/sdcard/
H A Dsdcard_perf_test.cpp149 void printHeader(int argc, char **argv, const TestCase& testCase) argument
154 printf("%s ", argv[i]);
202 // @param argc, argv have a wild guess.
204 void parseCmdLine(int argc, char **argv, TestCase *testCase)\ argument
213 c = getopt_long (argc, argv,
682 int main(int argc, char **argv) argument
688 parseCmdLine(argc, argv, &testCase);
689 printHeader(argc, argv, testCase);

Completed in 1235 milliseconds

123456789