Searched refs:argc (Results 76 - 100 of 219) sorted by relevance

123456789

/system/core/toolbox/
H A Dinsmod.c49 int insmod_main(int argc, char **argv) argument
57 if (argc < 2) {
70 if (argc > 2) {
75 for (i = 2; (i < argc) && (ptr < end); i++) {
H A Dchown.c13 int chown_main(int argc, char **argv) argument
17 if (argc < 3) {
65 for (i = 2; i < argc; i++) {
H A Ddf.c43 int df_main(int argc, char *argv[]) { argument
45 if (argc == 1) {
73 for (i = 1; i < argc; i++) {
H A Dmd5.c63 int md5_main(int argc, char *argv[]) argument
67 if (argc < 2)
71 for (i = 1; i < argc; i++) {
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 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 Dioctl.c13 int ioctl_main(int argc, char *argv[]) argument
30 c = getopt(argc, argv, "rdl:a:h");
61 if(optind + 2 > argc) {
82 length = (argc - optind) * arg_size;
89 while(optind < argc) {
H A Drestorecon.c54 int restorecon_main(int argc, char **argv) argument
62 ch = getopt(argc, argv, "nrRv");
81 argc -= optind;
83 if (!argc)
124 for (i = 0; i < argc; i++) {
H A Dcmp.c10 int cmp_main(int argc, char *argv[]) argument
25 c = getopt(argc, argv, "bln:");
45 if (optind + 2 != argc) {
/system/extras/tests/bionic/libc/common/
H A Dtest_clock.c34 int main(int argc, char **argv) argument
/system/extras/tests/bionic/libstdc++/
H A Dtest_cmath.cpp72 int main(int argc, char **argv) argument
/system/extras/timeinfo/
H A Dtimeinfo.cpp27 int main(int argc, char *argv[]) argument
/system/extras/ext4_utils/
H A Dsetup_fs.c68 int main(int argc, char **argv) argument
72 while (argc > 1) {
76 argc--;
H A Dmake_ext4fs_main.c50 int main(int argc, char **argv) argument
69 while ((opt = getopt(argc, argv, "l:j:b:g:i:I:L:a:fwzJsctS:")) != -1) {
151 if (optind >= argc) {
159 if (optind < argc)
162 if (optind < argc) {
/system/security/keystore/
H A Dkeystore_cli.cpp44 int main(int argc, char* argv[]) argument
46 if (argc < 2) {
60 for (int i = 2; i < argc; ++i) {
/system/core/sh/
H A Darith.y137 expcmd(argc, argv)
138 int argc;
146 if (argc > 1) {
148 if (argc > 2) {
176 main(argc, argv)
H A Dhistedit.c194 inputrc(argc, argv)
195 int argc;
198 if (argc != 2) {
219 histcmd(int argc, char **argv) argument
246 (void) &argc;
253 if (argc == 1)
258 (ch = getopt(argc, argv, ":e:lnrs")) != -1)
283 argc -= optind, argv += optind;
327 if (lflg == 0 && argc > 0 &&
331 argc
529 histcmd(int argc, char **argv) argument
535 inputrc(int argc, char **argv) argument
[all...]
H A Dmain.c101 main(int argc, char **argv) argument
174 procargs(argc, argv);
365 dotcmd(int argc, char **argv) argument
369 if (argc >= 2) { /* That's what SVR2 does */
386 exitcmd(int argc, char **argv) argument
390 if (argc > 1)
/system/extras/tests/bionic/libc/other/
H A Dtest_jpeg.c239 int main( int argc, char** argv ) argument
247 if (argc < 2)
250 for ( ; argc > 1 && argv[1][0] == '-'; argc--, argv++) {
255 if (argc < 3)
258 argc--;
275 if (argc < 3)
278 argc--;
307 for ( ; argc > 1; 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/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 Dlogwrapper.c92 void child(int argc, const char**argv) { argument
94 char* argv_child[argc + 1];
95 memcpy(argv_child, argv, argc * sizeof(char *));
96 argv_child[argc] = NULL;
106 int logwrap(int argc, const char* argv[]) argument
150 child(argc, argv);
/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/run-as/
H A Drun-as.c102 int main(int argc, char **argv) argument
109 if (argc < 2)
166 if (argc >= 3 ) {

Completed in 85 milliseconds

123456789