Searched defs:argc (Results 76 - 100 of 202) sorted by relevance

123456789

/system/core/toolbox/
H A Drenice.c77 int renice_main(int argc, char *argv[]) argument
84 argc--;
87 if (argc < 1)
93 argc--;
98 if (argc < 2)
104 if (argc < 1)
108 argc--;
111 if (argc < 1)
114 while(argc) {
118 argc
[all...]
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 Dwatchprops.c40 int watchprops_main(int argc, char *argv[]) argument
H A Dalarm.c11 int alarm_main(int argc, char *argv[]) argument
34 //c = getopt(argc, argv, "uw:");
35 c = getopt(argc, argv, "uwat:");
59 if(optind + 2 < argc) {
70 if(optind == argc) {
93 else if(optind + 1 == argc) {
H A Dcmp.c10 int cmp_main(int argc, char *argv[]) argument
25 c = getopt(argc, argv, "bln:");
45 if (optind + 2 != argc) {
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 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 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 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 Dsetconsole.c31 int setconsole_main(int argc, char *argv[]) argument
45 c = getopt(argc, argv, "d:gtncv:poh");
H A Dwipe.c39 int wipe_main (int argc, char *argv[]) argument
43 if (argc != 2) return usage();
/system/extras/ext4_utils/
H A Dext4fixup_main.c28 int main(int argc, char **argv) argument
39 while ((opt = getopt(argc, argv, "vnd:")) != -1) {
53 if (optind >= argc) {
61 if (optind < argc) {
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/extras/tests/bionic/libc/bionic/
H A Dtest_pthread_cond.c67 int main(int argc, const char *argv[]) argument
/system/extras/tests/bionic/libstdc++/
H A Dtest_cstdio.cpp162 int main(int argc, char **argv) argument
H A Dtest_ctime.cpp105 int main(int argc, char **argv) argument
H A Dtest_cstddef.cpp97 int main(int argc, char **argv) argument
/system/extras/tests/ext4/
H A Dcorrupt_gdt_free_blocks.c12 int main(int argc, char *argv[]) argument
22 if (argc != 2) {
H A Drand_emmc_perf.c42 int main(int argc, char *argv[]) argument
52 while ((c = getopt(argc, argv, "+rwo")) != -1) {
79 if ((argc - optind) != 2) {
/system/netd/
H A DInterfaceController.cpp95 int InterfaceController::interfaceCommand(int argc, char *argv[], char **rbuf) { argument
98 ret = sendCommand_(argc, argv, rbuf);
/system/bluetooth/brfpatch/
H A Dbrfpatch.c166 int main(int argc, char **argv) { argument
168 if (argc != 3)
/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 Dsimg2simg.c42 int main(int argc, char *argv[]) argument
54 if (argc != 4) {
/system/vold/
H A Dvdc.c37 static int do_cmd(int sock, int argc, char **argv);
39 int main(int argc, char **argv) { argument
42 if (argc < 2)
54 exit(do_cmd(sock, argc, argv));
57 static int do_cmd(int sock, int argc, char **argv) { argument
62 for (i = 1; i < argc; i++) {
66 asprintf(&cmp, "%s%s", argv[i], (i == (argc -1)) ? "" : " ");
68 asprintf(&cmp, "\"%s\"%s", argv[i], (i == (argc -1)) ? "" : " ");

Completed in 603 milliseconds

123456789