/external/openssl/crypto/rc4/ |
H A D | rc4.c | 74 int main(int argc, char *argv[]) argument 85 argv++; 88 if (strcmp(*argv,"-in") == 0) 91 infile= *(++argv); 93 else if (strcmp(*argv,"-out") == 0) 96 outfile= *(++argv); 98 else if (strcmp(*argv,"-key") == 0) 101 keystr= *(++argv); 105 fprintf(stderr,"unknown option %s\n",*argv); 110 argv [all...] |
/external/stlport/test/unit/cppunit/ |
H A D | test_main.cpp | 67 int main(int argc, char** argv) { argument 83 if (argv[i][0] == '-') { 84 if (!strncmp(argv[i], "-t=", 3)) { 85 testName = argv[i]+3; 88 else if (!strncmp(argv[i], "-f=", 3)) { 89 fileName = argv[i]+3; 92 else if (!strncmp(argv[i], "-x=", 3)) { 93 xtestName = argv[i]+3; 96 else if (Timer::supported() && !strncmp(argv[i], "-m", 2)) { 103 usage(argv[ [all...] |
/external/iproute2/tc/ |
H A D | q_red.c | 34 static int red_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n) argument 49 if (strcmp(*argv, "limit") == 0) { 51 if (get_size(&opt.limit, *argv)) { 55 } else if (strcmp(*argv, "min") == 0) { 57 if (get_size(&opt.qth_min, *argv)) { 61 } else if (strcmp(*argv, "max") == 0) { 63 if (get_size(&opt.qth_max, *argv)) { 67 } else if (strcmp(*argv, "burst") == 0) { 69 if (get_unsigned(&burst, *argv, 0)) { 73 } else if (strcmp(*argv, "avpk [all...] |
H A D | tc_stab.c | 53 char **argv = *argvp; local 60 if (matches(*argv, "help") == 0) { 65 if (matches(*argv, "mtu") == 0) { 68 duparg("mtu", *argv); 69 if (get_u32(&s.mtu, *argv, 10)) { 73 } else if (matches(*argv, "mpu") == 0) { 76 duparg("mpu", *argv); 77 if (get_u32(&s.mpu, *argv, 10)) { 81 } else if (matches(*argv, "overhead") == 0) { 84 duparg("overhead", *argv); [all...] |
H A D | f_basic.c | 39 int argc, char **argv, struct nlmsghdr *n) 63 if (matches(*argv, "match") == 0) { 65 if (parse_ematch(&argc, &argv, TCA_BASIC_EMATCHES, n)) { 70 } else if (matches(*argv, "classid") == 0 || 71 strcmp(*argv, "flowid") == 0) { 74 if (get_tc_classid(&handle, *argv)) { 79 } else if (matches(*argv, "action") == 0) { 81 if (parse_action(&argc, &argv, TCA_BASIC_ACT, n)) { 87 } else if (matches(*argv, "police") == 0) { 89 if (parse_police(&argc, &argv, TCA_BASIC_POLIC 38 basic_parse_opt(struct filter_util *qu, char *handle, int argc, char **argv, struct nlmsghdr *n) argument [all...] |
H A D | f_rsvp.c | 44 char **argv = *argv_p; local 45 char *p = strchr(*argv, '/'); 66 if (get_addr_1(addr, *argv, family)) 71 argc--; argv++; 76 if (strcmp(*argv, "spi/ah") == 0 || 77 strcmp(*argv, "gpi/ah") == 0) { 80 if (get_u32(&gpi, *argv, 0)) 87 argc--; argv++; 88 } else if (strcmp(*argv, "spi/esp") == 0 || 89 strcmp(*argv, "gp 169 rsvp_parse_opt(struct filter_util *qu, char *handle, int argc, char **argv, struct nlmsghdr *n) argument [all...] |
H A D | f_flow.c | 62 static int flow_parse_keys(__u32 *keys, __u32 *nkeys, char *argv) argument 69 s = argv; 97 static int get_addend(__u32 *addend, char *argv, __u32 keys) argument 103 if (*argv == '-') { 105 argv++; 108 if (get_u32(&tmp, argv, 0) == 0) 113 get_addr(&addr, argv, AF_UNSPEC) == 0) { 133 int argc, char **argv, struct nlmsghdr *n) 156 if (matches(*argv, "map") == 0) { 158 } else if (matches(*argv, "has 132 flow_parse_opt(struct filter_util *fu, char *handle, int argc, char **argv, struct nlmsghdr *n) argument [all...] |
H A D | q_htb.c | 61 static int htb_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n) argument 71 if (matches(*argv, "r2q") == 0) { 73 if (get_u32(&opt.rate2quantum, *argv, 10)) { 76 } else if (matches(*argv, "default") == 0) { 78 if (get_u32(&opt.defcls, *argv, 16)) { 81 } else if (matches(*argv, "debug") == 0) { 82 NEXT_ARG(); p = *argv; 88 fprintf(stderr, "What is \"%s\"?\n", *argv); 92 argc--; argv++; 101 static int htb_parse_class_opt(struct qdisc_util *qu, int argc, char **argv, struc argument [all...] |
H A D | q_prio.c | 31 static int prio_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n) argument 40 if (strcmp(*argv, "bands") == 0) { 44 if (get_integer(&opt.bands, *argv, 10)) { 48 } else if (strcmp(*argv, "priomap") == 0) { 54 } else if (strcmp(*argv, "multiqueue") == 0) { 56 } else if (strcmp(*argv, "help") == 0) { 62 fprintf(stderr, "What is \"%s\"?\n", *argv); 66 if (get_unsigned(&band, *argv, 10)) { 80 argc--; argv++;
|
H A D | q_rr.c | 32 static int rr_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n) argument 41 if (strcmp(*argv, "bands") == 0) { 45 if (get_integer(&opt.bands, *argv, 10)) { 49 } else if (strcmp(*argv, "priomap") == 0) { 55 } else if (strcmp(*argv, "help") == 0) { 58 } else if (strcmp(*argv, "multiqueue") == 0) { 63 fprintf(stderr, "What is \"%s\"?\n", *argv); 67 if (get_unsigned(&band, *argv, 10)) { 81 argc--; argv++;
|
/external/iproute2/ip/ |
H A D | iproute.c | 592 char **argv = *argvp; local 594 while (++argv, --argc > 0) { 595 if (strcmp(*argv, "via") == 0) { 597 rta_addattr32(rta, 4096, RTA_GATEWAY, get_addr32(*argv)); 599 } else if (strcmp(*argv, "dev") == 0) { 601 if ((rtnh->rtnh_ifindex = ll_name_to_index(*argv)) == 0) { 602 fprintf(stderr, "Cannot find device \"%s\"\n", *argv); 605 } else if (strcmp(*argv, "weight") == 0) { 608 if (get_unsigned(&w, *argv, 0) || w == 0 || w > 256) 609 invarg("\"weight\" is invalid\n", *argv); 628 parse_nexthops(struct nlmsghdr *n, struct rtmsg *r, int argc, char **argv) argument 660 iproute_modify(int cmd, unsigned flags, int argc, char **argv) argument 1039 iproute_list_or_flush(int argc, char **argv, int flush) argument 1275 iproute_get(int argc, char **argv) argument 1440 do_iproute(int argc, char **argv) argument [all...] |
H A D | ipneigh.c | 95 static int ipneigh_modify(int cmd, int flags, int argc, char **argv) argument 117 if (matches(*argv, "lladdr") == 0) { 120 duparg("lladdr", *argv); 121 lla = *argv; 123 } else if (strcmp(*argv, "nud") == 0) { 126 if (nud_state_a2n(&state, *argv)) 127 invarg("nud state is bad", *argv); 129 } else if (matches(*argv, "proxy") == 0) { 131 if (matches(*argv, "help") == 0) 134 duparg("address", *argv); 315 do_show_or_flush(int argc, char **argv, int flush) argument 436 do_ipneigh(int argc, char **argv) argument [all...] |
/external/openssl/apps/ |
H A D | rsautl.c | 85 int MAIN(int argc, char **argv) argument 109 argv++; 121 if (!strcmp(*argv,"-in")) { 125 infile= *(++argv); 126 } else if (!strcmp(*argv,"-out")) { 130 outfile= *(++argv); 131 } else if(!strcmp(*argv, "-inkey")) { 135 keyfile = *(++argv); 136 } else if (!strcmp(*argv,"-passin")) { 140 passargin= *(++argv); [all...] |
H A D | dsa.c | 97 int MAIN(int argc, char **argv) argument 134 prog=argv[0]; 136 argv++; 139 if (strcmp(*argv,"-inform") == 0) 142 informat=str2fmt(*(++argv)); 144 else if (strcmp(*argv,"-outform") == 0) 147 outformat=str2fmt(*(++argv)); 149 else if (strcmp(*argv,"-in") == 0) 152 infile= *(++argv); 154 else if (strcmp(*argv," [all...] |
/external/linux-tools-perf/scripts/python/ |
H A D | sctop.py | 26 if len(sys.argv) > 3: 29 if len(sys.argv) > 2: 30 for_comm = sys.argv[1] 31 interval = int(sys.argv[2]) 32 elif len(sys.argv) > 1: 34 interval = int(sys.argv[1]) 36 for_comm = sys.argv[1]
|
/external/openfst/src/bin/ |
H A D | fstencode.cc | 32 int main(int argc, char **argv) { argument 38 usage += argv[0]; 42 SetFlags(usage.c_str(), &argc, &argv, true); 48 string in_name = (strcmp(argv[1], "-") != 0) ? argv[1] : ""; 49 string codex_name = argv[2]; 50 string out_name = argc > 3 ? argv[3] : "";
|
/external/openfst/src/extensions/pdt/ |
H A D | pdtexpand.cc | 32 int main(int argc, char **argv) { argument 36 usage += argv[0]; 40 SetFlags(usage.c_str(), &argc, &argv, true); 46 string in_name = (argc > 1 && (strcmp(argv[1], "-") != 0)) ? argv[1] : ""; 47 string out_name = argc > 2 ? argv[2] : ""; 53 LOG(ERROR) << argv[0] << ": No PDT parenthesis label pairs provided";
|
H A D | pdtshortestpath.cc | 33 int main(int argc, char **argv) { argument 37 usage += argv[0]; 41 SetFlags(usage.c_str(), &argc, &argv, true); 47 string in_name = (argc > 1 && (strcmp(argv[1], "-") != 0)) ? argv[1] : ""; 48 string out_name = argc > 2 ? argv[2] : ""; 54 LOG(ERROR) << argv[0] << ": No PDT parenthesis label pairs provided";
|
/external/webkit/Source/WebCore/inspector/ |
H A D | inline-javascript-imports.py | 42 def main(argv): 44 if len(argv) < 3: 45 print('usage: %s inputFile importsDir outputFile' % argv[0]) 48 inputFileName = argv[1] 49 importsDir = argv[2] 50 outputFileName = argv[3] 81 sys.exit(main(sys.argv))
|
/external/webkit/Source/WebKit/chromium/scripts/ |
H A D | inline_js_imports.py | 43 def main(argv): 45 if len(argv) < 3: 46 print('usage: %s input_file imports_dir output_file' % argv[0]) 49 input_file_name = argv[1] 50 imports_dir = argv[2] 51 output_file_name = argv[3] 82 sys.exit(main(sys.argv))
|
H A D | generate_devtools_grd.py | 67 def parse_args(argv): 68 images_position = argv.index('--images') 69 output_position = argv.index('--output') 70 source_files = argv[:images_position] 71 image_dirs = argv[images_position + 1:output_position] 72 return ParsedArgs(source_files, image_dirs, argv[output_position + 1]) 92 def main(argv): 93 parsed_args = parse_args(argv[1:]) 121 sys.exit(main(sys.argv))
|
/external/chromium/net/tools/dnssec_chain_verify/ |
H A D | dnssec_chain_verify.cc | 19 int main(int argc, char** argv) { argument 23 return usage(argv[0]); 30 if (strcmp(argv[i], "--ignore-timestamps") == 0) { 33 target = argv[i]; 35 infilename = argv[i]; 37 return usage(argv[0]); 42 return usage(argv[0]); 47 return usage(argv[0]); 63 return usage(argv[0]);
|
/external/chromium/build/ |
H A D | apply_locales.py | 11 def main(argv): 20 (options, arglist) = parser.parse_args(argv) 45 sys.exit(main(sys.argv))
|
/external/chromium/chrome/common/ |
H A D | switch_utils_unittest.cc | 26 const char* argv[] = { 35 CommandLine cmd_line(arraysize(argv), argv);
|
/external/chromium/testing/gtest/xcode/Scripts/ |
H A D | versiongenerate.py | 56 if (len(sys.argv) < 3): 60 input_dir = sys.argv[1] 61 output_dir = sys.argv[2]
|