Searched refs:argc (Results 101 - 125 of 219) sorted by relevance

123456789

/system/core/toolbox/
H A Dhd.c10 int hd_main(int argc, char *argv[]) argument
28 c = getopt(argc, argv, "b:c:r:");
48 if (optind + 1 != argc) {
H A Dload_policy.c11 int load_policy_main(int argc, char **argv) argument
18 if (argc != 2) {
H A Dumount.c59 int umount_main(int argc, char *argv[]) argument
64 if(argc != 2) {
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 Dsyren.c62 syren_main(int argc, char **argv) argument
70 if (argc < 3) {
92 if (argc < 4)
/system/extras/tests/ext4/
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) {
H A Dset_ext4_err_bit.c12 int main(int argc, char *argv[]) argument
18 if (argc != 2) {
/system/extras/tests/bionic/libc/common/
H A Dtest_strptime.c24 int main(int argc, char **argv) argument
H A Dtest_gethostbyname.c36 int main( int argc, char** argv ) argument
42 if (argc > 1)
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/libstdc++/
H A Dtest_climits.cpp84 int main(int argc, char **argv) argument
/system/extras/tests/cpueater/
H A Dcpueater.c28 int main(int argc, char *argv[]) argument
H A Ddaemonize.c31 int main(int argc, char **argv) argument
39 if (argc < 2) {
/system/extras/tests/schedtest/
H A Dschedtest.c23 int main(int argc, char **argv) { argument
/system/core/debuggerd/
H A Dcrasher.c77 int main(int argc, char **argv) argument
85 if(argc > 1) {
/system/core/libpixelflinger/tests/codegen/
H A Dcodegen.cpp66 int main(int argc, char** argv) argument
68 if (argc != 2) {
/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/netd/
H A DDnsProxyListener.cpp109 int argc, char **argv) {
111 for (int i = 0; i < argc; i++) {
115 if (argc != 7) {
117 asprintf( &msg, "Invalid number of arguments to getaddrinfo: %i", argc);
174 int argc, char **argv) {
176 for (int i = 0; i < argc; i++) {
181 if (argc != 4) {
183 asprintf(&msg, "Invalid number of arguments to gethostbyaddr: %i", argc);
108 runCommand(SocketClient *cli, int argc, char **argv) argument
173 runCommand(SocketClient *cli, int argc, char **argv) argument
H A DDnsProxyListener.h34 int runCommand(SocketClient *c, int argc, char** argv);
66 int runCommand(SocketClient *c, int argc, char** argv);
H A DInterfaceController.cpp95 int InterfaceController::interfaceCommand(int argc, char *argv[], char **rbuf) { argument
98 ret = sendCommand_(argc, argv, rbuf);
/system/core/sh/
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...]
H A Doptions.c87 procargs(int argc, char **argv) argument
92 if (argc > 0)
315 shiftcmd(int argc, char **argv) argument
321 if (argc > 1)
345 setcmd(int argc, char **argv) argument
347 if (argc == 1)
378 getoptscmd(int argc, char **argv) argument
382 if (argc < 3)
384 else if (argc == 3)
/system/core/fastboot/
H A Dfastboot.c739 #define skip(n) do { argc -= (n); argv += (n); } while (0)
740 #define require(n) do { if (argc < (n)) {usage(); exit(1);}} while (0)
742 int do_oem_command(int argc, char **argv) argument
746 if (argc <= 1) return 0;
752 if(argc == 0) break;
801 int main(int argc, char **argv) argument
819 c = getopt_long(argc, argv, "wub:n:s:S:lp:c:i:m:h", &longopts, NULL);
876 argc -= optind;
879 if (argc == 0 && !wants_wipe) {
884 if (argc >
[all...]
/system/bluetooth/tools/
H A Dsock_shutdown_bug_l2cap.c26 int main(int argc, char **argv) { argument
H A Dsock_shutdown_bug_tcp.c25 int main(int argc, char **argv) { argument

Completed in 113 milliseconds

123456789