Searched defs:argc (Results 26 - 50 of 202) sorted by last modified time

123456789

/system/core/fs_mgr/
H A Dfs_mgr_main.c35 static void parse_options(int argc, char *argv[], int *a_flag, int *u_flag, int *n_flag, argument
40 if (argc <= 1) {
45 if (argc != 3) {
51 if (argc != 5) {
59 if (argc != 3) {
78 int main(int argc, char *argv[]) argument
90 parse_options(argc, argv, &a_flag, &u_flag, &n_flag, &n_name, &n_blk_dev);
93 fstab = argv[argc - 1];
/system/core/gpttool/
H A Dgpttool.c252 int main(int argc, char **argv) argument
264 if (argc < 2)
268 if (argc < 3)
271 argc -= 2;
275 argc -= 1;
320 while (argc > 1) {
352 argc--;
/system/core/init/
H A Dinit.c836 int main(int argc, char **argv) argument
849 return ueventd_main(argc, argv);
852 return watchdogd_main(argc, argv);
H A Dueventd.c50 int ueventd_main(int argc, char **argv) argument
H A Dwatchdogd.c29 int watchdogd_main(int argc, char **argv) argument
42 if (argc >= 2)
45 if (argc >= 3)
/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/libdiskconfig/
H A Ddump_diskconfig.c26 main(int argc, char *argv[]) argument
30 if (argc < 2) {
/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/libpixelflinger/tests/codegen/
H A Dcodegen.cpp66 int main(int argc, char** argv) argument
68 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) {
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++) {
H A Dsimg2simg.c42 int main(int argc, char *argv[]) argument
54 if (argc != 4) {
/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/libzipfile/
H A Dtest_zipfile.c9 main(int argc, char** argv) argument
20 if (strcmp(argv[2], "-l") == 0 && argc == 3) {
23 else if (strcmp(argv[2], "-u") == 0 && argc == 5) {
/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/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/mkbootimg/
H A Dmkbootimg.c95 int main(int argc, char **argv) argument
118 argc--;
123 while(argc > 0){
126 if(argc < 2) {
129 argc -= 2;
/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/core/run-as/
H A Drun-as.c102 int main(int argc, char **argv) argument
109 if (argc < 2)
166 if (argc >= 3 ) {
/system/core/sdcard/
H A Dsdcard.c1299 int main(int argc, char **argv) argument
1309 for (i = 1; i < argc; i++) {
/system/core/sh/
H A Dalias.c209 aliascmd(int argc, char **argv) argument
215 if (argc == 1) {
248 unaliascmd(int argc, char **argv) argument
H A Dcd.c79 cdcmd(int argc, char **argv) argument
308 pwdcmd(int argc, char **argv) argument
H A Deval.c164 evalcmd(int argc, char **argv) argument
170 if (argc > 1) {
172 if (argc > 2) {
634 parse_command_args(int argc, char **argv, int *use_syspath) argument
636 int sv_argc = argc;
643 if (--argc == 0)
650 argc--;
664 return sv_argc - argc;
681 int argc; local
701 (void) &argc;
1124 bltincmd(int argc, char **argv) argument
1146 breakcmd(int argc, char **argv) argument
1165 returncmd(int argc, char **argv) argument
1184 falsecmd(int argc, char **argv) argument
1191 truecmd(int argc, char **argv) argument
1198 execcmd(int argc, char **argv) argument
1238 timescmd(int argc, char **argv) argument
[all...]
/system/core/sh/bltin/
H A Decho.c59 echocmd(int argc, char **argv) argument
69 if (argc)

Completed in 197 milliseconds

123456789