| /external/srtp/crypto/test/ |
| aes_calc.c | 34 main (int argc, char *argv[]) { 44 if (strncmp(argv[3], "-v", 2) == 0) { 49 usage(argv[0]); 53 usage(argv[0]); 57 if (strlen(argv[1]) > AES_KEY_LEN*2) { 61 AES_KEY_LEN*2, (unsigned)strlen(argv[1])); 64 len = hex_string_to_octet_string((char *)&key, argv[1], AES_KEY_LEN*2); 75 if (strlen(argv[2]) > 16*2) { 79 16*2, (unsigned)strlen(argv[2])); 82 len = hex_string_to_octet_string((char *)(&data), argv[2], 16*2) [all...] |
| /system/core/toolbox/ |
| ioctl.c | 13 int ioctl_main(int argc, char *argv[]) 30 c = getopt(argc, argv, "rdl:a:h"); 52 " -h Print help\n", argv[0]); 56 argv[0], optopt); 62 fprintf(stderr, "%s: too few arguments\n", argv[0]); 66 fd = open(argv[optind], O_RDWR | O_SYNC); 68 fprintf(stderr, "cannot open %s\n", argv[optind]); 73 ioctl_nr = strtol(argv[optind], NULL, 0); 90 uint64_t tmp = strtoull(argv[optind], NULL, 0); 92 fprintf(stderr, "%s: too many arguments\n", argv[0]) [all...] |
| /ndk/sources/host-tools/sed-4.2.1/lib/ |
| getopt.c | 52 As `getopt_long' works, it permutes the elements of ARGV so that, 69 each non-option ARGV-element is returned here. */ 73 /* Index in ARGV of the next element to be scanned. 83 how much of ARGV has been scanned so far. */ 118 indicating ARGV elements that should not be considered arguments. */ 140 /* Exchange two adjacent subsequences of ARGV. 147 the new indices of the non-options in ARGV after they are moved. */ 150 exchange (char **argv, struct _getopt_data *d) 195 tem = argv[bottom + i]; 196 argv[bottom + i] = argv[top - (middle - bottom) + i] [all...] |
| /bootable/recovery/edify/ |
| expr.h | 58 int argc, Expr* argv[]); 64 Expr** argv; member in struct:Expr 81 Value* Literal(const char* name, State* state, int argc, Expr* argv[]); 86 Value* ConcatFn(const char* name, State* state, int argc, Expr* argv[]); 87 Value* LogicalAndFn(const char* name, State* state, int argc, Expr* argv[]); 88 Value* LogicalOrFn(const char* name, State* state, int argc, Expr* argv[]); 89 Value* LogicalNotFn(const char* name, State* state, int argc, Expr* argv[]); 90 Value* SubstringFn(const char* name, State* state, int argc, Expr* argv[]); 91 Value* EqualityFn(const char* name, State* state, int argc, Expr* argv[]); 92 Value* InequalityFn(const char* name, State* state, int argc, Expr* argv[]); [all...] |
| /external/iproute2/ip/ |
| ipmroute.c | 167 static int mroute_list(int argc, char **argv) 170 if (strcmp(*argv, "iif") == 0) { 172 strncpy(filter_dev, *argv, sizeof(filter_dev)-1); 173 } else if (matches(*argv, "from") == 0) { 175 get_prefix(&filter.msrc, *argv, AF_INET); 177 if (strcmp(*argv, "to") == 0) { 180 if (matches(*argv, "help") == 0) 182 get_prefix(&filter.mdst, *argv, AF_INET); 184 argv++; argc--; 192 int do_multiroute(int argc, char **argv) [all...] |
| rtmon.c | 67 main(int argc, char **argv) 79 if (matches(argv[1], "-family") == 0) { 81 argv++; 84 if (strcmp(argv[1], "inet") == 0) 86 else if (strcmp(argv[1], "inet6") == 0) 88 else if (strcmp(argv[1], "link") == 0) 90 else if (strcmp(argv[1], "help") == 0) 93 fprintf(stderr, "Protocol ID \"%s\" is unknown, try \"rtmon help\".\n", argv[1]); 96 } else if (strcmp(argv[1], "-4") == 0) { 98 } else if (strcmp(argv[1], "-6") == 0) [all...] |
| ip.c | 57 static int do_help(int argc, char **argv) 64 int (*func)(int argc, char **argv); 90 static int do_cmd(const char *argv0, int argc, char **argv) 96 return -(c->func(argc-1, argv+1)); 148 int main(int argc, char **argv) 152 basename = strrchr(argv[0], '/'); 154 basename = argv[0]; 159 char *opt = argv[1]; 161 argc--; argv++; 170 argv++ [all...] |
| /external/iproute2/tc/ |
| q_red.c | 36 static int red_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n) 51 if (strcmp(*argv, "limit") == 0) { 53 if (get_size(&opt.limit, *argv)) { 57 } else if (strcmp(*argv, "min") == 0) { 59 if (get_size(&opt.qth_min, *argv)) { 63 } else if (strcmp(*argv, "max") == 0) { 65 if (get_size(&opt.qth_max, *argv)) { 69 } else if (strcmp(*argv, "burst") == 0) { 71 if (get_unsigned(&burst, *argv, 0)) { 75 } else if (strcmp(*argv, "avpkt") == 0) [all...] |
| f_fw.c | 34 static int fw_parse_opt(struct filter_util *qu, char *handle, int argc, char **argv, struct nlmsghdr *n) 71 if (matches(*argv, "classid") == 0 || 72 matches(*argv, "flowid") == 0) { 75 if (get_tc_classid(&handle, *argv)) { 80 } else if (matches(*argv, "police") == 0) { 82 if (parse_police(&argc, &argv, TCA_FW_POLICE, n)) { 87 } else if (matches(*argv, "action") == 0) { 89 if (parse_action(&argc, &argv, TCA_FW_ACT, n)) { 94 } else if (strcmp(*argv, "indev") == 0) { 98 argv++ [all...] |
| f_tcindex.c | 28 char **argv, struct nlmsghdr *n) 45 if (!strcmp(*argv,"hash")) { 49 hash = strtoul(*argv,&end,0); 56 else if (!strcmp(*argv,"mask")) { 60 mask = strtoul(*argv,&end,0); 67 else if (!strcmp(*argv,"shift")) { 71 shift = strtoul(*argv,&end,0); 79 else if (!strcmp(*argv,"fall_through")) { 85 else if (!strcmp(*argv,"pass_on")) { 91 else if (!strcmp(*argv,"classid")) [all...] |
| q_dsmark.c | 29 static int dsmark_parse_opt(struct qdisc_util *qu, int argc, char **argv, 40 if (!strcmp(*argv,"indices")) { 42 ind = strtoul(*argv,&end,0); 48 else if (!strcmp(*argv,"default_index") || !strcmp(*argv, 51 dflt = strtoul(*argv,&end,0); 57 else if (!strcmp(*argv,"set_tc_index")) { 65 argv++; 91 static int dsmark_parse_class_opt(struct qdisc_util *qu, int argc, char **argv, 101 if (!strcmp(*argv,"mask")) [all...] |
| m_pedit.c | 65 char **argv = *argv_p; local 68 fprintf(stderr, "Unknown action hence option \"%s\" is unparsable\n", *argv); 240 char **argv = *argv_p; local 246 return get_integer((int *) val, *argv, 0); 249 return get_u32(val, *argv, 0); 253 if (get_prefix_1(&addr, *argv, AF_INET)) { 274 char **argv = *argv_p; local 280 printf("parse_cmd argc %d %s offset %d length %d\n",argc,*argv,tkey->off,len); 287 if (matches(*argv, "invert") == 0) { 289 } else if (matches(*argv, "set") == 0) 343 char **argv = *argv_p; local 419 char **argv = *argv_p; local 469 char **argv = *argv_p; local [all...] |
| m_estimator.c | 40 char **argv = *p_argv; local 45 duparg("estimator", *argv); 46 if (matches(*argv, "help") == 0) 48 if (get_time(&A, *argv)) 51 if (matches(*argv, "help") == 0) 53 if (get_time(&time_const, *argv)) 62 *p_argv = argv;
|
| /external/chromium_org/third_party/icu/source/tools/toolutil/ |
| uoptions.c | 24 u_parseArgs(int argc, char* argv[], 31 arg=argv[i]; 58 if(i+1<argc && !(argv[i+1][0]=='-' && argv[i+1][1]!=0)) { 59 /* argument in the next argv[], and there is not an option in there */ 60 option->value=argv[++i]; 87 /* argument following in the same argv[] */ 91 } else if(i+1<argc && !(argv[i+1][0]=='-' && argv[i+1][1]!=0)) { 92 /* argument in the next argv[], and there is not an option in there * [all...] |
| /external/chromium_org/third_party/libxml/src/ |
| testURI.c | 74 int main(int argc, char **argv) { 77 if ((argc > arg) && (argv[arg] != NULL) && 78 ((!strcmp(argv[arg], "-base")) || (!strcmp(argv[arg], "--base")))) { 80 base = argv[arg]; 84 if ((argc > arg) && (argv[arg] != NULL) && 85 ((!strcmp(argv[arg], "-escape")) || (!strcmp(argv[arg], "--escape")))) { 89 if ((argc > arg) && (argv[arg] != NULL) && 90 ((!strcmp(argv[arg], "-debug")) || (!strcmp(argv[arg], "--debug")))) [all...] |
| /external/icu4c/tools/toolutil/ |
| uoptions.c | 24 u_parseArgs(int argc, char* argv[], 31 arg=argv[i]; 58 if(i+1<argc && !(argv[i+1][0]=='-' && argv[i+1][1]!=0)) { 59 /* argument in the next argv[], and there is not an option in there */ 60 option->value=argv[++i]; 87 /* argument following in the same argv[] */ 91 } else if(i+1<argc && !(argv[i+1][0]=='-' && argv[i+1][1]!=0)) { 92 /* argument in the next argv[], and there is not an option in there * [all...] |
| /external/tinyalsa/ |
| tinypcminfo.c | 34 int main(int argc, char **argv) 41 fprintf(stderr, "Usage: %s -D card -d device\n", argv[0]); 46 argv += 1; 47 while (*argv) { 48 if (strcmp(*argv, "-D") == 0) { 49 argv++; 50 if (*argv) 51 card = atoi(*argv); 53 if (strcmp(*argv, "-d") == 0) { 54 argv++ [all...] |
| /hardware/ti/wlan/mac80211/ti-utils/ |
| plt.c | 43 struct nl_msg *msg, int argc, char **argv) 53 if (strcmp(argv[0], "on") == 0) { 55 } else if (strcmp(argv[0], "off") == 0) { 85 struct nl_msg *msg, int argc, char **argv) 95 prms.band = (unsigned char)atoi(argv[0]); 96 prms.channel = (unsigned char)atoi(argv[1]); 123 struct nl_msg *msg, int argc, char **argv) 133 prms.ref_detector = atoi(argv[0]); 134 prms.ref_power = atoi(argv[1]); 135 prms.sub_band = atoi(argv[2]) [all...] |
| /frameworks/base/tools/aapt/ |
| Main.cpp | 228 int main(int argc, char* const argv[]) 230 char *prog = argv[0]; 244 if (argv[1][0] == 'v') 246 else if (argv[1][0] == 'd') 248 else if (argv[1][0] == 'l') 250 else if (argv[1][0] == 'a') 252 else if (argv[1][0] == 'r') 254 else if (argv[1][0] == 'p') 256 else if (argv[1][0] == 'c') 258 else if (argv[1][0] == 's' [all...] |
| /external/chromium_org/tools/deep_memory_profiler/tests/ |
| mock_gsutil.py | 15 assert len(sys.argv) == 6 16 assert sys.argv[1] == 'cp' 17 assert sys.argv[2] == '-a' 18 assert sys.argv[3] == 'public-read' 19 assert ZIP_PATTERN.match(os.path.basename(sys.argv[4])) 20 assert sys.argv[5] == 'gs://test-storage/' 22 zip_file = zipfile.ZipFile(sys.argv[4], 'r')
|
| /external/chromium_org/win8/util/ |
| check_sdk_patch.py | 18 def main(argv): 19 if len(argv) < 2: 24 async_info_path = os.path.join(argv[1], 'Include/winrt/asyncinfo.h') 36 "with VS2010.\n" % argv[1]) 39 if len(argv) > 2: 40 with open(argv[2], 'w') as dummy_file: 48 sys.exit(main(sys.argv))
|
| /external/llvm/utils/count/ |
| count.c | 13 int main(int argc, char **argv) { 18 fprintf(stderr, "usage: %s <expected line count>\n", argv[0]); 22 Count = strtol(argv[1], &End, 10); 23 if (*End != '\0' && End != argv[1]) { 24 fprintf(stderr, "%s: invalid count argument '%s'\n", argv[0], argv[1]); 40 fprintf(stderr, "%s: error reading stdin\n", argv[0]);
|
| /external/openfst/src/bin/ |
| fstarcsort.cc | 31 int main(int argc, char **argv) { 37 usage += argv[0]; 41 SET_FLAGS(usage.c_str(), &argc, &argv, true); 48 string in_name = (argc > 1 && (strcmp(argv[1], "-") != 0)) ? argv[1] : ""; 49 string out_name = argc > 2 ? argv[2] : ""; 59 LOG(ERROR) << argv[0] << ": Unknown sort type \""
|
| fsttopsort.cc | 25 int main(int argc, char **argv) { 31 usage += argv[0]; 35 SET_FLAGS(usage.c_str(), &argc, &argv, true); 41 string in_fname = argc > 1 && strcmp(argv[1], "-") != 0 ? argv[1] : ""; 42 string out_fname = argc > 2 ? argv[2] : ""; 49 LOG(WARNING) << argv[0] << ": Input FST is cyclic";
|
| /external/openfst/src/extensions/pdt/ |
| pdtreverse.cc | 27 int main(int argc, char **argv) { 31 usage += argv[0]; 35 SET_FLAGS(usage.c_str(), &argc, &argv, true); 41 string in_name = (argc > 1 && (strcmp(argv[1], "-") != 0)) ? argv[1] : ""; 42 string out_name = argc > 2 ? argv[2] : ""; 48 LOG(ERROR) << argv[0] << ": No PDT parenthesis label pairs provided";
|