Searched refs:argc (Results 26 - 50 of 219) 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...]
H A Dconsole.c27 int adb_send_emulator_command(int argc, char** argv) argument
37 for (nn = 1; nn < argc; nn++) {
39 adb_write( fd, (nn == argc-1) ? "\n" : " ", 1 );
H A Dcommandline.c45 int install_app(transport_type transport, char* serial, int argc, char** argv);
46 int uninstall_app(transport_type transport, char* serial, int argc, char** argv);
540 int ppp(int argc, char **argv) argument
550 if (argc < 2) {
578 ppp_args = (const char **) alloca(sizeof(char *) * argc + 1);
580 for (i = 2 ; i < argc ; i++) {
629 static int logcat(transport_type transport, char* serial, int argc, char **argv) argument
649 argc -= 1;
651 while(argc-- > 0) {
684 static int backup(int argc, cha argument
740 restore(int argc, char** argv) argument
909 adb_commandline(int argc, char **argv) argument
1384 int argc; local
1452 pm_command(transport_type transport, char* serial, int argc, char** argv) argument
1473 uninstall_app(transport_type transport, char* serial, int argc, char** argv) argument
1537 install_app(transport_type transport, char* serial, int argc, char** argv) argument
[all...]
H A Dadb_client.h42 int adb_send_emulator_command(int argc, char** argv);
/system/vold/
H A DCommandListener.cpp53 void CommandListener::dumpArgs(int argc, char **argv, int argObscure) { argument
59 for (i = 0; i < argc; i++) {
73 if (i != (argc -1)) {
86 int argc, char **argv) {
116 int argc, char **argv) {
117 dumpArgs(argc, argv, -1);
119 if (argc < 2) {
130 if (argc != 3 || (argc == 3 && (strcmp(argv[2], "off") && strcmp(argv[2], "on")))) {
136 if (argc !
85 runCommand(SocketClient *cli, int argc, char **argv) argument
115 runCommand(SocketClient *cli, int argc, char **argv) argument
213 runCommand(SocketClient *cli, int argc, char **argv) argument
302 runCommand(SocketClient *cli, int argc, char **argv) argument
432 runCommand(SocketClient *cli, int argc, char **argv) argument
496 runCommand(SocketClient *cli, int argc, char **argv) argument
539 runCommand(SocketClient *cli, int argc, char **argv) argument
[all...]
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)) ? "" : " ");
/system/core/toolbox/
H A Druncon.c8 int runcon_main(int argc, char **argv) argument
12 if (argc < 3) {
24 argc -= 2;
H A Dionice.c10 int ionice_main(int argc, char *argv[]) argument
16 if(argc != 2 && argc != 4) {
26 if (argc == 2) {
H A Dreboot.c7 int reboot_main(int argc, char *argv[]) argument
18 c = getopt(argc, argv, "np");
37 if(argc > optind + 1) {
48 else if(argc > optind)
H A Dmkdir.c16 int mkdir_main(int argc, char *argv[]) argument
20 if(argc < 2 || strcmp(argv[1], "--help") == 0) {
27 if(recursive && argc < 3) {
33 argc--;
40 while(argc > 1) {
41 argc--;
H A Dr.c13 int r_main(int argc, char *argv[]) argument
21 if(argc < 2) return usage();
25 argc--;
29 argc--;
33 if(argc < 2) return usage();
48 if(argc > 2) {
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 Dgetprop.c36 int getprop_main(int argc, char *argv[]) argument
40 if (argc == 1) {
45 if(argc > 2) {
H A Drmmod.c11 int rmmod_main(int argc, char **argv) argument
17 if (argc < 2) {
/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) {
/system/extras/tests/bionic/libc/other/
H A Dtest_atomics.c6 int main(int argc, const char *argv[]) argument
/system/netd/
H A DCommandListener.h60 int runCommand(SocketClient *c, int argc, char ** argv);
67 int runCommand(SocketClient *c, int argc, char ** argv);
74 int runCommand(SocketClient *c, int argc, char ** argv);
81 int runCommand(SocketClient *c, int argc, char ** argv);
88 int runCommand(SocketClient *c, int argc, char ** argv);
95 int runCommand(SocketClient *c, int argc, char ** argv);
102 int runCommand(SocketClient *c, int argc, char ** argv);
109 int runCommand(SocketClient *c, int argc, char ** argv);
120 int runCommand(SocketClient *c, int argc, char ** argv);
127 int runCommand(SocketClient *c, int argc, cha
[all...]
H A DNatController.h30 int enableNat(const int argc, char **argv);
31 int disableNat(const int argc, char **argv);
H A DSoftapController.h42 int setSoftap(int argc, char *argv[]);
44 int fwReloadSoftap(int argc, char *argv[]);
/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/libsparse/
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++) {
/system/extras/su/
H A Dsu.c36 * specified for this (ie argc => 3).
42 int main(int argc, char **argv) argument
54 if(argc < 2) {
73 if (argc == 3 ) {
79 } else if (argc > 3) {
81 char *exec_args[argc - 1];
/system/core/init/
H A Dwatchdogd.c29 int watchdogd_main(int argc, char **argv) argument
42 if (argc >= 2)
45 if (argc >= 3)
/system/core/sh/bltin/
H A Decho.c59 echocmd(int argc, char **argv) argument
69 if (argc)
/system/core/include/sysutils/
H A DFrameworkCommand.h32 virtual int runCommand(SocketClient *c, int argc, char **argv) = 0;

Completed in 538 milliseconds

123456789