| /external/tinyalsa/ |
| tinyplay.c | 74 int main(int argc, char **argv) 89 " [-n n_periods] \n", argv[0]); 93 filename = argv[1]; 129 argv += 2; 130 while (*argv) { 131 if (strcmp(*argv, "-d") == 0) { 132 argv++; 133 if (*argv) 134 device = atoi(*argv); 136 if (strcmp(*argv, "-p") == 0) [all...] |
| /system/extras/tests/memtest/ |
| memtest.cpp | 65 int copy_bandwidth(int argc, char** argv); 66 int write_bandwidth(int argc, char** argv); 67 int read_bandwidth(int argc, char** argv); 68 int per_core_bandwidth(int argc, char** argv); 69 int multithread_bandwidth(int argc, char** argv); 70 int malloc_test(int argc, char** argv); 71 int madvise_test(int argc, char** argv); 72 int crash_test(int argc, char** argv); 73 int stack_smasher_test(int argc, char** argv); 74 int crawl_test(int argc, char** argv); [all...] |
| /external/qemu/distrib/sdl-1.2.15/test/ |
| testoverlay.c | 321 int main(int argc, char **argv) 323 char *argv0 = argv[0]; 347 if ( strcmp(argv[1], "-delay") == 0 ) { 348 if ( argv[2] ) { 349 delay = atoi(argv[2]); 350 argv += 2; 358 if ( strcmp(argv[1], "-width") == 0 ) { 359 if ( argv[2] && ((w = atoi(argv[2])) > 0) ) { 360 argv += 2 [all...] |
| testwin.c | 234 int main(int argc, char *argv[]) 270 if ( strcmp(argv[1], "-speedy") == 0 ) { 272 argv += 1; 275 if ( strcmp(argv[1], "-nofade") == 0 ) { 277 argv += 1; 280 if ( strcmp(argv[1], "-delay") == 0 ) { 281 if ( argv[2] ) { 282 delay = atoi(argv[2]); 283 argv += 2; 291 if ( strcmp(argv[1], "-width") == 0 ) [all...] |
| /external/iproute2/ip/ |
| ipl2tp.c | 509 static int parse_args(int argc, char **argv, int cmd, struct l2tp_parm *p) 517 if (strcmp(*argv, "encap") == 0) { 519 if (strcmp(*argv, "ip") == 0) { 521 } else if (strcmp(*argv, "udp") == 0) { 527 } else if (strcmp(*argv, "name") == 0) { 529 p->ifname = *argv; 530 } else if (strcmp(*argv, "remote") == 0) { 532 p->peer_ip.s_addr = get_addr32(*argv); 533 } else if (strcmp(*argv, "local") == 0) { 535 p->local_ip.s_addr = get_addr32(*argv); [all...] |
| ipaddress.c | 494 static int set_lifetime(unsigned int *lifetime, char *argv) 496 if (strcmp(argv, "forever") == 0) 498 else if (get_u32(lifetime, argv, 0)) 763 static int ipaddr_list_or_flush(int argc, char **argv, int flush) 792 if (strcmp(*argv, "to") == 0) { 794 get_prefix(&filter.pfx, *argv, filter.family); 797 } else if (strcmp(*argv, "scope") == 0) { 801 if (rtnl_rtscope_a2n(&scope, *argv)) { 802 if (strcmp(*argv, "all") != 0) 803 invarg("invalid \"scope\"\n", *argv); [all...] |
| /external/iptables/extensions/ |
| libxt_rateest.c | 112 rateest_parse(int c, char **argv, int invert, unsigned int *flags, 122 xtables_check_inverse(optarg, &invert, &optind, 0, argv); 136 xtables_check_inverse(optarg, &invert, &optind, 0, argv); 151 xtables_check_inverse(optarg, &invert, &optind, 0, argv); 164 if (!argv[optind] || *argv[optind] == '-' || *argv[optind] == '!') 167 if (rateest_get_rate(&info->bps1, argv[optind]) < 0) 170 argv[optind]); 175 xtables_check_inverse(optarg, &invert, &optind, 0, argv); [all...] |
| /device/generic/goldfish/opengl/shared/OpenglOsUtils/ |
| osProcessUnix.cpp | 41 char **argv = NULL; local 52 if (!argv) { \ 54 argv = (char **)malloc(argvSize * sizeof(char *)); \ 58 argv = (char **)realloc(argv, argvSize * sizeof(char *)); \ 60 argv[nArgs-1] = t; \ 91 return argv; 115 char **argv = buildArgList(command); local 116 if (!argv) { 119 execvp(argv[0], argv) [all...] |
| /external/chromium_org/third_party/openssl/openssl/apps/ |
| dgst.c | 104 int MAIN(int argc, char **argv) 148 program_name(argv[0],pname,sizeof pname); 153 argv++; 156 if ((*argv)[0] != '-') break; 157 if (strcmp(*argv,"-c") == 0) 159 else if (strcmp(*argv,"-r") == 0) 161 else if (strcmp(*argv,"-rand") == 0) 164 randfile=*(++argv); 166 else if (strcmp(*argv,"-out") == 0) 169 outfile=*(++argv); [all...] |
| crl.c | 101 int MAIN(int argc, char **argv) 146 argv++; 151 if (strcmp(*argv,"-p") == 0) 154 if (!args_from_file(++argv,Nargc,Nargv)) { goto end; }*/ 157 if (strcmp(*argv,"-inform") == 0) 160 informat=str2fmt(*(++argv)); 162 else if (strcmp(*argv,"-outform") == 0) 165 outformat=str2fmt(*(++argv)); 167 else if (strcmp(*argv,"-in") == 0) 170 infile= *(++argv); [all...] |
| x509.c | 169 int MAIN(int argc, char **argv) 242 argv++; 246 if (strcmp(*argv,"-inform") == 0) 249 informat=str2fmt(*(++argv)); 251 else if (strcmp(*argv,"-outform") == 0) 254 outformat=str2fmt(*(++argv)); 256 else if (strcmp(*argv,"-keyform") == 0) 259 keyformat=str2fmt(*(++argv)); 261 else if (strcmp(*argv,"-req") == 0) 266 else if (strcmp(*argv,"-CAform") == 0 [all...] |
| /external/iproute2/tc/ |
| q_mqprio.c | 33 char **argv, struct nlmsghdr *n) 44 if (strcmp(*argv, "num_tc") == 0) { 46 if (get_u8(&opt.num_tc, *argv, 10)) { 50 } else if (strcmp(*argv, "map") == 0) { 53 if (get_u8(&opt.prio_tc_map[idx], *argv, 10)) { 61 } else if (strcmp(*argv, "queues") == 0) { 67 tmp = strdup(*argv); 86 } else if (strcmp(*argv, "hw") == 0) { 88 if (get_u8(&opt.hw, *argv, 10)) { 93 } else if (strcmp(*argv, "help") == 0) [all...] |
| f_route.c | 37 static int route_parse_opt(struct filter_util *qu, char *handle, int argc, char **argv, struct nlmsghdr *n) 61 if (matches(*argv, "to") == 0) { 64 if (rtnl_rtrealm_a2n(&id, *argv)) { 71 } else if (matches(*argv, "from") == 0) { 74 if (rtnl_rtrealm_a2n(&id, *argv)) { 81 } else if (matches(*argv, "fromif") == 0) { 85 if ((id=ll_name_to_index(*argv)) <= 0) { 92 } else if (matches(*argv, "classid") == 0 || 93 strcmp(*argv, "flowid") == 0) { 96 if (get_tc_classid(&handle, *argv)) { [all...] |
| /external/openfst/src/extensions/pdt/ |
| pdtcompose.cc | 38 int main(int argc, char **argv) { 42 usage += argv[0]; 47 SET_FLAGS(usage.c_str(), &argc, &argv, true); 53 string in1_name = strcmp(argv[1], "-") == 0 ? "" : argv[1]; 54 string in2_name = strcmp(argv[2], "-") == 0 ? "" : argv[2]; 55 string out_name = argc > 3 ? argv[3] : ""; 58 LOG(ERROR) << argv[0] << ": Can't take both inputs from standard input."; 68 LOG(ERROR) << argv[0] << ": No PDT parenthesis label pairs provided" [all...] |
| /external/openssl/apps/ |
| dgst.c | 104 int MAIN(int argc, char **argv) 148 program_name(argv[0],pname,sizeof pname); 153 argv++; 156 if ((*argv)[0] != '-') break; 157 if (strcmp(*argv,"-c") == 0) 159 else if (strcmp(*argv,"-r") == 0) 161 else if (strcmp(*argv,"-rand") == 0) 164 randfile=*(++argv); 166 else if (strcmp(*argv,"-out") == 0) 169 outfile=*(++argv); [all...] |
| crl.c | 101 int MAIN(int argc, char **argv) 146 argv++; 151 if (strcmp(*argv,"-p") == 0) 154 if (!args_from_file(++argv,Nargc,Nargv)) { goto end; }*/ 157 if (strcmp(*argv,"-inform") == 0) 160 informat=str2fmt(*(++argv)); 162 else if (strcmp(*argv,"-outform") == 0) 165 outformat=str2fmt(*(++argv)); 167 else if (strcmp(*argv,"-in") == 0) 170 infile= *(++argv); [all...] |
| x509.c | 169 int MAIN(int argc, char **argv) 242 argv++; 246 if (strcmp(*argv,"-inform") == 0) 249 informat=str2fmt(*(++argv)); 251 else if (strcmp(*argv,"-outform") == 0) 254 outformat=str2fmt(*(++argv)); 256 else if (strcmp(*argv,"-keyform") == 0) 259 keyformat=str2fmt(*(++argv)); 261 else if (strcmp(*argv,"-req") == 0) 266 else if (strcmp(*argv,"-CAform") == 0 [all...] |
| /sdk/emulator/opengl/shared/OpenglOsUtils/ |
| osProcessUnix.cpp | 41 char **argv = NULL; local 52 if (!argv) { \ 54 argv = (char **)malloc(argvSize * sizeof(char *)); \ 58 argv = (char **)realloc(argv, argvSize * sizeof(char *)); \ 60 argv[nArgs-1] = t; \ 91 return argv; 115 char **argv = buildArgList(command); local 116 if (!argv) { 119 execvp(argv[0], argv) [all...] |
| /system/netd/ |
| NetdConstants.cpp | 36 static void logExecError(const char* argv[], int res, int status) { 37 const char** argp = argv; 47 static int execIptablesCommand(int argc, const char *argv[], bool silent) { 51 res = android_fork_execvp(argc, (char **)argv, &status, false, 55 logExecError(argv, res, status); 76 const char* argv[argsList.size()]; local 79 argv[i] = *it; 84 argv[0] = IPTABLES_PATH; 85 res |= execIptablesCommand(argsList.size(), argv, silent); 88 argv[0] = IP6TABLES_PATH [all...] |
| /hardware/ti/omap4xxx/security/smc_pa_ctrl/ |
| smc_pa_ctrl.c | 74 int main(int argc, char *argv[]) 90 argv ++; 95 if (argv[0][0] == '-') 101 if ((strcmp(argv[0], "--help") == 0) || (strcmp(argv[0], "-h") == 0)) 105 else if (strcmp(argv[0], "-c") == 0) 109 argv ++; 117 pConfFileName = malloc(strlen(argv[0]) + 1); 124 strcpy(pConfFileName, argv[0]); 128 printf("Invalid option [%s]\n\n", argv[0]) [all...] |
| /sdk/emulator/opengl/host/renderer/ |
| main.cpp | 44 int main(int argc, char *argv[]) 57 if (!strcmp(argv[i], "-windowid")) { 58 if (++i >= argc || sscanf(argv[i],"%d", &iWindowId) != 1) { 59 printUsage(argv[0]); 62 else if (!strncmp(argv[i], "-x", 2)) { 63 if (++i >= argc || sscanf(argv[i],"%d", &winX) != 1) { 64 printUsage(argv[0]); 67 else if (!strncmp(argv[i], "-y", 2)) { 68 if (++i >= argc || sscanf(argv[i],"%d", &winY) != 1) { 69 printUsage(argv[0]) [all...] |
| /external/bison/m4/ |
| getopt.m4 | 98 char *argv[] = { program, a, foo, bar, NULL }; 101 c = getopt (4, argv, "ab"); 104 c = getopt (4, argv, "ab"); 133 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL }; 136 c = getopt (7, argv, "+abp:q:"); 139 if (!(strcmp (argv[0], "program") == 0)) 141 if (!(strcmp (argv[1], "donald") == 0)) 143 if (!(strcmp (argv[2], "-p") == 0)) 145 if (!(strcmp (argv[3], "billy") == 0)) 147 if (!(strcmp (argv[4], "duck") == 0) [all...] |
| /external/chromium_org/third_party/icu/source/tools/genren/ |
| genren.pl | 43 while($ARGV[0] =~ /^-/) { # detects whether there are any arguments 44 $_ = shift @ARGV; # extracts the argument for processing 47 /^-o/ && (($headername = shift (@ARGV)), next); # output file 48 /^-n/ && (($nmopts = shift (@ARGV)), next); # nm opts 49 /^-p/ && (($post = shift (@ARGV)), next); # nm opts 50 /^-x/ && (($mode = shift (@ARGV)), next); # nm opts 51 /^-S/ && (($U_ICU_VERSION_SUFFIX = shift(@ARGV)), next); # pick the suffix 56 unless(@ARGV > 0) { 61 #$headername = "uren".substr($ARGV[0], 6, index(".", $ARGV[0])-7).".h" [all...] |
| /external/qemu/distrib/sdl-1.2.15/src/main/win32/ |
| SDL_win32_main.c | 79 static int ParseCommandLine(char *cmdline, char **argv) 95 if ( argv ) { 96 argv[argc] = bufp; 107 if ( argv ) { 108 argv[argc] = bufp; 118 if ( argv ) { 125 if( argv && last_argc != argc ) { 126 UnEscapeQuotes( argv[last_argc] ); 130 if ( argv ) { 131 argv[argc] = NULL 332 char **argv; local [all...] |
| /external/chromium_org/sandbox/win/src/ |
| process_policy_test.cc | 102 SBOX_TESTS_COMMAND int Process_RunApp1(int argc, wchar_t **argv) { 106 if ((NULL == argv) || (NULL == argv[0])) { 109 string16 path = MakeFullPathToSystem32(argv[0]); 115 SBOX_TESTS_COMMAND int Process_RunApp2(int argc, wchar_t **argv) { 119 if ((NULL == argv) || (NULL == argv[0])) { 122 string16 path = MakeFullPathToSystem32(argv[0]); 131 SBOX_TESTS_COMMAND int Process_RunApp3(int argc, wchar_t **argv) { 135 if ((NULL == argv) || (NULL == argv[0])) [all...] |