Searched defs:argc (Results 101 - 125 of 202) sorted by relevance

123456789

/system/core/adb/
H A Dbackup_service.c94 int argc; local
99 argc = 3;
101 argc++;
106 bu_args = (char**) alloca(argc*sizeof(char*) + 1);
109 argc = 0;
110 bu_args[argc++] = "bu";
112 bu_args[argc++] = portnum;
113 bu_args[argc++] = operation;
115 bu_args[argc++] = p;
122 bu_args[argc]
[all...]
/system/core/fastboot/
H A Dusbtest.c151 int process_args(int argc, char **argv) argument
153 while(argc-- > 0) {
178 int main(int argc, char **argv) argument
183 if(argc < 2)
186 if(argc > 2) {
187 if(process_args(argc - 2, argv + 2))
/system/core/init/
H A Dueventd.c50 int ueventd_main(int argc, char **argv) argument
/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/core/logwrapper/
H A Dlogwrapper.c112 void child(int argc, char* argv[]) { argument
114 char* argv_child[argc + 1];
115 memcpy(argv_child, argv, argc * sizeof(char *));
116 argv_child[argc] = NULL;
125 int main(int argc, char* argv[]) { argument
133 if (argc < 2) {
139 argc--;
143 if (argc < 2) {
173 child(argc - 1, &argv[1]);
/system/core/sh/
H A Dalias.c209 aliascmd(int argc, char **argv) argument
215 if (argc == 1) {
248 unaliascmd(int argc, char **argv) argument
/system/core/toolbox/
H A Difconfig.c60 int ifconfig_main(int argc, char *argv[]) argument
69 argc--;
72 if(argc == 0) return 0;
77 argc--, argv++;
83 if (argc == 0) {
127 while(argc > 0) {
131 argc--, argv++;
132 if (!argc) {
140 argc--, argv++;
141 if (!argc) {
[all...]
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 Dnotify.c11 int notify_main(int argc, char *argv[]) argument
30 c = getopt(argc, argv, "m:c:pv:w:");
56 if (argc <= optind) {
67 file_count = argc - optind;
H A Dreadtty.c56 int readtty_main(int argc, char *argv[]) argument
76 c = getopt(argc, argv, "nt:fa:r:pe:");
H A Dsyren.c62 syren_main(int argc, char **argv) argument
70 if (argc < 3) {
92 if (argc < 4)
H A Dumount.c59 int umount_main(int argc, char *argv[]) argument
64 if(argc != 2) {
H A Duptime.c74 int uptime_main(int argc, char *argv[]) argument
/system/extras/sane_schedstat/
H A Dsane_schedstat.c141 int main(int argc, char **argv) { argument
/system/extras/tests/bionic/libc/common/
H A Dtest_udp.c36 int main(int argc, char** argv) argument
47 while (argc > 1 && argv[1][0] == '-') {
49 argc--;
/system/extras/tests/bionic/libc/other/
H A Dtest_zlib.c175 int main( int argc, char** argv ) argument
183 if (argc < 2)
186 for ( ; argc > 1 && argv[1][0] == '-'; argc--, argv++) {
191 if (argc < 3)
194 argc--;
217 for ( ; argc > 1; argc--, argv++ )
/system/extras/tests/bionic/libstdc++/
H A Dtest_climits.cpp84 int main(int argc, char **argv) argument
/system/extras/tests/framebuffer/
H A Drefresh.c27 int main(int argc, char** argv) argument
/system/extras/tests/memtest/
H A Dfptest.cpp126 int fp_test(int argc, char** argv) { argument
/system/extras/tests/timetest/
H A Dtimetest.c58 int main(int argc, char **argv) argument
73 if(argc == 2) {
/system/netd/
H A DSoftapController.cpp129 int SoftapController::setSoftap(int argc, char *argv[]) { argument
138 if (argc < 4) {
148 if (argc > 3) {
158 if (argc > 4) {
224 int SoftapController::fwReloadSoftap(int argc, char *argv[]) argument
234 if (argc < 4) {
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/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/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/libsysutils/src/
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++)

Completed in 113 milliseconds

123456789