Searched refs:argc (Results 51 - 75 of 219) sorted by relevance

123456789

/system/core/libsysutils/src/
H A DFrameworkCommand.cpp28 int FrameworkCommand::runCommand(SocketClient *c, int argc, char **argv) { argument
H A DFrameworkListener.cpp75 int argc = 0; local
141 if (argc >= CMD_ARGS_MAX)
143 argv[argc++] = strdup(tmp);
153 if (argc >= CMD_ARGS_MAX)
155 argv[argc++] = strdup(tmp);
157 for (k = 0; k < argc; k++) {
177 if (c->runCommand(cli, argc, argv)) {
187 for (j = 0; j < argc; j++)
/system/core/toolbox/
H A Dgetenforce.c7 int getenforce_main(int argc, char **argv) argument
H A Dlog.c90 int log_main(int argc, char *argv[]) argument
102 ret = getopt(argc, argv, "t:p:h");
126 if (optind == argc) {
132 for (i = optind ; i < argc ; i++) {
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 Dtouch.c15 int touch_main(int argc, char *argv[]) argument
23 for (i = 1; i < argc; i++) {
32 if ((i+1) >= argc)
50 if (i+1 != argc)
H A Dchmod.c57 int chmod_main(int argc, char **argv) argument
61 if (argc < 3 || strcmp(argv[1], "--help") == 0) {
68 if (recursive && argc < 4) {
73 argc--;
90 for (i = 2; i < argc; i++) {
H A Dgetsebool.c15 int getsebool_main(int argc, char **argv) argument
20 while ((opt = getopt(argc, argv, "a")) > 0) {
23 if (argc > 2)
54 if (argc < 2)
56 len = argc - 1;
H A Drm.c69 int rm_main(int argc, char *argv[]) argument
75 if (argc < 2)
80 c = getopt(argc, argv, "frR");
94 if (optind < 1 || optind >= argc) {
100 for (i = optind; i < argc; i++) {
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 Ddate.c43 int date_main(int argc, char *argv[]) argument
59 c = getopt(argc, argv, "us:");
75 if(optind + 2 < argc) {
80 int hasfmt = argc == optind + 1 && argv[optind][0] == '+';
81 if(optind == argc || hasfmt) {
97 else if(optind + 1 == argc) {
H A Dkill.c100 int kill_main(int argc, char **argv) argument
105 argc--;
108 if (argc >= 1 && argv[0][0] == '-') {
131 argc--;
135 while(argc > 0){
143 argc--;
H A Ddmesg.c11 int dmesg_main(int argc, char **argv) argument
18 if((argc == 2) && (!strcmp(argv[1],"-c"))) {
H A Dsetenforce.c17 int setenforce_main(int argc, char **argv) argument
20 if (argc != 2) {
/system/extras/tests/bionic/libc/bionic/
H A Dtest_static_init.cpp7 int main(int argc, char** argv) argument
/system/extras/tests/bionic/libstdc++/
H A Dtest_csetjmp.cpp61 int main(int argc, char **argv) argument
H A Dtest_csignal.cpp64 int main(int argc, char **argv) argument
/system/core/netcfg/
H A Dnetcfg.c136 int main(int argc, char **argv) argument
145 if(argc == 1) {
151 if(argc < 3) usage();
156 argc -= 2;
158 while(argc > 0) {
165 if(argc < nargs) {
175 argc -= nargs;
/system/netd/
H A DCommandListener.cpp223 int argc, char **argv) {
224 if (argc < 2) {
247 if (argc != 3) {
265 if (argc != 3) {
282 if (argc != 4 || (argc == 4 && (strcmp(argv[3], "rx") && (strcmp(argv[3], "tx"))))) {
308 if (argc != 5) {
323 if (argc < 4) {
328 rc = sInterfaceCtrl->interfaceCommand(argc, argv, &rbuf);
339 if (argc <
222 runCommand(SocketClient *cli, int argc, char **argv) argument
576 runCommand(SocketClient *cli, int argc, char **argv) argument
593 runCommand(SocketClient *cli, int argc, char **argv) argument
631 runCommand(SocketClient *cli, int argc, char **argv) argument
735 runCommand(SocketClient *cli, int argc, char **argv) argument
772 runCommand(SocketClient *cli, int argc, char **argv) argument
824 runCommand(SocketClient *cli, int argc, char **argv) argument
873 runCommand(SocketClient *cli, int argc, char **argv) argument
1002 runCommand(SocketClient *cli, int argc, char **argv) argument
1278 runCommand(SocketClient *cli, int argc, char **argv) argument
1357 runCommand(SocketClient *cli, int argc, char **argv) argument
[all...]
H A Dndc.c36 static int do_cmd(int sock, int argc, char **argv);
38 int main(int argc, char **argv) { argument
42 if (argc < 2)
57 if (argc < 3) usage(argv[0]);
64 exit(do_cmd(sock, argc-cmdOffset, &(argv[cmdOffset])));
67 static int do_cmd(int sock, int argc, char **argv) { argument
76 for (i = 1; i < argc; i++) {
87 (i == (argc -1)) ? "" : " ") < 0) {
/system/extras/tests/memtest/
H A Dmemtest.cpp88 int cpufreq_test(int argc, char** argv);
89 int memcpy_test(int argc, char** argv);
90 int memset_test(int argc, char** argv);
91 int memcmp_test(int argc, char** argv);
92 int strlen_test(int argc, char** argv);
93 int malloc_test(int argc, char** argv);
94 int madvise_test(int argc, char** argv);
95 int crash_test(int argc, char** argv);
96 int stack_smasher_test(int argc, char** argv);
97 int crawl_test(int argc, cha
105 main(int argc, char** argv) argument
137 memcpy_test(int argc, char** argv) argument
266 memset_test(int argc, char** argv) argument
403 memcmp_test(int argc, char** argv) argument
516 strlen_test(int argc, char** argv) argument
593 malloc_test(int argc, char** argv) argument
624 madvise_test(int argc, char** argv) argument
673 cpufreq_test(int argc, char** argv) argument
718 crash_test(int argc, char** argv) argument
732 stack_smasher_test(int argc, char** argv) argument
763 crawl_test(int argc, char** argv) argument
[all...]
/system/core/libcutils/
H A Dzygote.c45 static int send_request(int fd, int sendStdio, int argc, const char **argv) argument
67 snprintf(argc_buffer, sizeof(argc_buffer), "%d\n", argc);
105 for (i = 0; i < argc; i++) {
162 int zygote_run_wait(int argc, const char **argv, void (*post_run_func)(int)) argument
167 const char *newargv[argc + 1];
179 memcpy(newargv + 1, argv, argc * sizeof(*argv));
181 pid = send_request(fd, 1, argc + 1, newargv);
216 int zygote_run_oneshot(int sendStdio, int argc, const char **argv) argument
224 const int newargc = argc;
/system/vold/
H A Dlogwrapper.c93 void child(int argc, const char**argv) { argument
95 char* argv_child[argc + 1];
96 memcpy(argv_child, argv, argc * sizeof(char *));
97 argv_child[argc] = NULL;
107 int logwrap(int argc, const char* argv[], int background) argument
159 child(argc, argv);
/system/bluetooth/tools/
H A Dbttest.c67 int main(int argc, char **argv) { argument
70 if (argc != 2) {
/system/core/libsparse/
H A Dimg2simg.c46 int main(int argc, char *argv[]) argument
56 if (argc < 3 || argc > 4) {
61 if (argc == 4) {

Completed in 83 milliseconds

123456789