Searched defs:argc (Results 26 - 50 of 202) sorted by relevance

123456789

/system/core/toolbox/
H A Drmdir.c12 int rmdir_main(int argc, char *argv[]) argument
16 if(argc < 2) return usage();
18 while(argc > 1) {
19 argc--;
H A Drmmod.c11 int rmmod_main(int argc, char **argv) argument
17 if (argc < 2) {
H A Dsetenforce.c17 int setenforce_main(int argc, char **argv) argument
20 if (argc != 2) {
H A Dsleep.c43 int sleep_main(int argc, char *argv[]) argument
48 if (argc != 2) {
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
18 if (argc != 2) {
H A Dmkdir.c16 int mkdir_main(int argc, char *argv[]) argument
20 if(argc < 2 || strcmp(argv[1], "--help") == 0) {
27 if(recursive && argc < 3) {
33 argc--;
40 while(argc > 1) {
41 argc--;
H A Dmv.c9 int mv_main(int argc, char *argv[]) argument
15 if (argc < 3) {
21 dest = argv[argc - 1];
31 for (i = 1; i < argc - 1; i++) {
H A Dreboot.c7 int reboot_main(int argc, char *argv[]) argument
18 c = getopt(argc, argv, "np");
37 if(argc > optind + 1) {
48 else if(argc > optind)
H A Drotatefb.c13 int rotatefb_main(int argc, char *argv[]) argument
23 c = getopt(argc, argv, "d:");
37 if(optind + 1 != argc) {
H A Droute.c51 int route_main(int argc, char *argv[]) argument
60 if (argc > 2 && !strcmp(argv[1], "add")) {
63 if (argc > 4 && !strcmp(argv[3], "dev")) {
71 if (argc > 6 && !strcmp(argv[3], "gw") && !strcmp(argv[5], "dev")) {
82 if (argc > 7 && !strcmp(argv[2], "-net") &&
H A Dsetkey.c21 int setkey_main(int argc, char *argv[]) argument
40 c = getopt(argc, argv, "t:k:v:hr");
83 if(optind != argc || !did_something) {
H A Dsetsebool.c47 int setsebool_main(int argc, char **argv) argument
49 if (argc < 2) {
54 return do_setsebool(argc, argv);
H A Dsmd.c7 int smd_main(int argc, char **argv) argument
11 argc--;
14 if((argc > 0) && (argv[0][0] == '-')) {
16 argc--;
27 while(argc > 0) {
35 argc--;
37 write(fd, argc ? " " : "\r", 1);
H A Dtoolbox.c7 static int toolbox_main(int argc, char **argv) argument
10 if (argc > 1) {
11 return main(argc - 1, argv + 1);
34 int main(int argc, char **argv) argument
39 if((argc > 1) && (argv[1][0] == '@')) {
41 argc--;
51 return tools[i].func(argc, argv);
/system/extras/tests/bionic/libstdc++/
H A Dtest_cmath.cpp72 int main(int argc, char **argv) argument
H A Dtest_cstdlib.cpp116 int main(int argc, char **argv) argument
/system/extras/tests/cpueater/
H A Dcpueater.c28 int main(int argc, char *argv[]) argument
/system/extras/timeinfo/
H A Dtimeinfo.cpp27 int main(int argc, char *argv[]) argument
/system/core/adb/
H A Dconsole.c27 int adb_send_emulator_command(int argc, char** argv) argument
37 for (nn = 1; nn < argc; nn++) {
39 adb_write( fd, (nn == argc-1) ? "\n" : " ", 1 );
/system/core/init/
H A Dwatchdogd.c29 int watchdogd_main(int argc, char **argv) argument
42 if (argc >= 2)
45 if (argc >= 3)
/system/core/libsparse/
H A Dsimg2img.c38 int main(int argc, char *argv[]) argument
46 if (argc < 3) {
51 out = open(argv[argc - 1], O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664);
53 fprintf(stderr, "Cannot open output file %s\n", argv[argc - 1]);
57 for (i = 1; i < argc - 1; i++) {
/system/core/sh/bltin/
H A Decho.c59 echocmd(int argc, char **argv) argument
69 if (argc)
/system/extras/su/
H A Dsu.c36 * specified for this (ie argc => 3).
42 int main(int argc, char **argv) argument
54 if(argc < 2) {
73 if (argc == 3 ) {
79 } else if (argc > 3) {
81 char *exec_args[argc - 1];
/system/extras/tests/bionic/libc/common/
H A Dtest_clock.c34 int main(int argc, char **argv) argument

Completed in 1188 milliseconds

123456789