Searched refs:argc (Results 176 - 200 of 219) sorted by relevance

123456789

/system/core/toolbox/grep/
H A Dgrep.c317 grep_main(int argc, char *argv[]) argument
384 aargv = (char **)grep_calloc(eargc + argc + 1,
390 for (j = 1; j < (unsigned int)argc; j++, i++)
393 aargc = eargc + argc;
396 aargc = argc;
/system/core/toolbox/
H A Dgetevent.c473 static void usage(int argc, char *argv[]) argument
490 int getevent_main(int argc, char *argv[]) argument
513 c = getopt(argc, argv, "tns:Sv::dpilqc:rh");
573 usage(argc, argv);
580 if (optind + 1 == argc) {
584 if (optind != argc) {
585 usage(argc, argv);
H A Dtop.c111 int top_main(int argc, char *argv[]) { argument
120 for (i = 1; i < argc; i++) {
122 if (i + 1 >= argc) {
131 if (i + 1 >= argc) {
140 if (i + 1 >= argc) {
149 if (i + 1 >= argc) {
H A Dls.c441 int ls_main(int argc, char **argv) argument
446 if(argc > 1) {
451 for (i = 1; i < argc; i++) {
H A Dnandread.c21 int nandread_main(int argc, char **argv) argument
50 c = getopt(argc, argv, "d:f:s:S:L:Rhv");
93 if (optind < argc) {
H A Dlsof.c220 int lsof_main(int argc, char *argv[]) argument
224 if (argc == 2) {
/system/core/logcat/
H A Dlogcat.cpp457 int main(int argc, char **argv) argument
471 if (argc == 2 && 0 == strcmp(argv[1], "--test")) {
476 if (argc == 2 && 0 == strcmp(argv[1], "--help")) {
484 ret = getopt(argc, argv, "cdt:gsQf:r::n:v:b:B");
703 } else if (argc == optind) {
719 for (int i = optind ; i < argc ; i++) {
/system/extras/atrace/
H A Datrace.c455 int main(int argc, char **argv) argument
459 if (argc == 2 && 0 == strcmp(argv[1], "--help")) {
467 ret = getopt(argc, argv, "b:cidflst:uwyznS:");
/system/extras/librank/
H A Dlibrank.c165 int main(int argc, char *argv[]) { argument
193 for (i = 1; i < argc; i++) {
195 if (i + 1 >= argc) {
/system/core/init/
H A Dueventd.c50 int ueventd_main(int argc, char **argv) argument
/system/extras/cpustats/
H A Dcpustats.c69 int main(int argc, char *argv[]) { argument
78 for (i = 0; i < argc; i++) {
80 if (i + 1 >= argc) {
89 if (i + 1 >= argc) {
/system/extras/sane_schedstat/
H A Dsane_schedstat.c141 int main(int argc, char **argv) { argument
/system/vold/
H A DFat.cpp45 extern "C" int logwrap(int argc, const char **argv, int background);
/system/bluetooth/tools/
H A Dsock_shutdown_test.c287 int main(int argc, char **argv) { argument
291 if (argc != 3) {
/system/core/libion/
H A Dion_test.c196 int main(int argc, char* argv[]) { argument
215 c = getopt_long(argc, argv, "af:h:l:mr:st", opts, &i);
/system/core/sh/
H A Dcd.c79 cdcmd(int argc, char **argv) argument
308 pwdcmd(int argc, char **argv) argument
H A Dtrap.c132 trapcmd(int argc, char **argv) argument
138 if (argc <= 1) {
H A Darith.c1527 expcmd(argc, argv)
1528 int argc;
1536 if (argc > 1) {
1538 if (argc > 2) {
1566 main(argc, argv)
/system/extras/procrank/
H A Dprocrank.c117 int main(int argc, char *argv[]) { argument
141 for (arg = 1; arg < argc; arg++) {
/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) {
/system/extras/tests/directiotest/
H A Ddirectiotest.c169 int main(int argc, const char *argv[]) argument
181 if (argc != 2) {
/system/extras/tests/framebuffer/
H A Dmdp_test.c172 int main(int argc, const char *argv[]) argument
195 while ((opt = getopt(argc, argv, "s:d:f:t:u:v:")) != -1) {
/system/netd/
H A DBandwidthController.cpp44 extern "C" int logwrap(int argc, const char **argv);
171 int argc = 0; local
201 argc = 0;
203 argv[argc++] = tmp;
204 if (argc >= MAX_CMD_ARGS) {
210 argv[argc] = NULL;
211 res = logwrap(argc, argv);
/system/core/debuggerd/
H A Ddebuggerd.c503 int main(int argc, char** argv) { argument
504 if (argc == 1) {
511 for (int i = 1; i < argc; i++) {
/system/extras/tests/fstest/
H A Dperm_checker.c407 int main(int argc, char **argv) argument
412 if (argc > 2) {
415 config_file = (argc == 2) ? argv[1] : DEFAULT_CONFIG_FILE;

Completed in 101 milliseconds

123456789