/external/openssl/crypto/x509v3/ |
v3conf.c | 69 int main(int argc, char **argv) 80 if(!argv[1]) { 84 conf_file = argv[2]; 93 inf = fopen(argv[1], "r"); 95 fprintf(stderr, "Can't open certificate file %s\n", argv[1]); 100 fprintf(stderr, "Error reading certificate file %s\n", argv[1]);
|
/system/core/toolbox/ |
rm.c | 66 int rm_main(int argc, char *argv[]) 76 if (argc >=2 && (!strcmp(argv[1], "-r") || !strcmp(argv[1], "-R"))) { 83 int ret = recursive ? unlink_recursive(argv[i]) : unlink(argv[i]); 85 fprintf(stderr, "rm failed for %s, %s\n", argv[i], strerror(errno));
|
hd.c | 9 int hd_main(int argc, char *argv[]) 27 c = getopt(argc, argv, "b:c:r:"); 42 argv[0], optopt); 48 fprintf(stderr, "Usage: %s [-b base] [-c count] [-r delay] file\n", argv[0]); 52 fd = open(argv[optind], O_RDONLY); 54 fprintf(stderr, "could not open %s, %s\n", argv[optind], strerror(errno)); 83 printf("Read error on %s, offset %d len %d, %s\n", argv[optind], filepos, read_len, strerror(errno));
|
/external/iproute2/tc/ |
q_cbq.c | 51 static int cbq_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n) 67 if (matches(*argv, "bandwidth") == 0 || 68 matches(*argv, "rate") == 0) { 70 if (get_rate(&r.rate, *argv)) { 74 } else if (matches(*argv, "ewma") == 0) { 76 if (get_integer(&ewma_log, *argv, 0)) { 84 } else if (matches(*argv, "cell") == 0) { 88 if (get_size(&cell, *argv)) { 100 } else if (matches(*argv, "avpkt") == 0) { 102 if (get_size(&avpkt, *argv)) { [all...] |
q_netem.c | 107 #define NEXT_IS_NUMBER() (NEXT_ARG_OK() && isnumber(argv[1])) 127 static int netem_parse_opt(struct qdisc_util *qu, int argc, char **argv, 147 if (matches(*argv, "limit") == 0) { 149 if (get_size(&opt.limit, *argv)) { 153 } else if (matches(*argv, "latency") == 0 || 154 matches(*argv, "delay") == 0) { 156 if (get_ticks(&opt.latency, *argv)) { 163 if (get_ticks(&opt.jitter, *argv)) { 171 if (get_percent(&cor.delay_corr, *argv)) { 177 } else if (matches(*argv, "loss") == 0 | [all...] |
f_fw.c | 36 static int fw_parse_opt(struct filter_util *qu, char *handle, int argc, char **argv, struct nlmsghdr *n) 73 if (matches(*argv, "classid") == 0 || 74 matches(*argv, "flowid") == 0) { 77 if (get_tc_classid(&handle, *argv)) { 82 } else if (matches(*argv, "police") == 0) { 84 if (parse_police(&argc, &argv, TCA_FW_POLICE, n)) { 89 } else if (matches(*argv, "action") == 0) { 91 if (parse_action(&argc, &argv, TCA_FW_ACT, n)) { 96 } else if (strcmp(*argv, "indev") == 0) { 100 argv++ [all...] |
f_tcindex.c | 32 char **argv, struct nlmsghdr *n) 49 if (!strcmp(*argv,"hash")) { 53 hash = strtoul(*argv,&end,0); 60 else if (!strcmp(*argv,"mask")) { 64 mask = strtoul(*argv,&end,0); 71 else if (!strcmp(*argv,"shift")) { 75 shift = strtoul(*argv,&end,0); 83 else if (!strcmp(*argv,"fall_through")) { 89 else if (!strcmp(*argv,"pass_on")) { 95 else if (!strcmp(*argv,"classid")) [all...] |
q_dsmark.c | 32 static int dsmark_parse_opt(struct qdisc_util *qu, int argc, char **argv, 43 if (!strcmp(*argv,"indices")) { 45 ind = strtoul(*argv,&end,0); 51 else if (!strcmp(*argv,"default_index") || !strcmp(*argv, 54 dflt = strtoul(*argv,&end,0); 60 else if (!strcmp(*argv,"set_tc_index")) { 68 argv++; 94 static int dsmark_parse_class_opt(struct qdisc_util *qu, int argc, char **argv, 104 if (!strcmp(*argv,"mask")) [all...] |
m_action.c | 81 char **argv = *argv_p; local 84 fprintf(stderr, "Unknown action \"%s\", hence option \"%s\" is unparsable\n", au->id, *argv); 155 new_cmd(char **argv) 157 if ((matches(*argv, "change") == 0) || 158 (matches(*argv, "replace") == 0)|| 159 (matches(*argv, "delete") == 0)|| 160 (matches(*argv, "add") == 0)) 171 char **argv = *argv_p; local 191 if (strcmp(*argv, "action") == 0 ) { 193 argv++ 376 char **argv = *argv_p; local 486 char **argv = *argv_p; local [all...] |
/external/openssl/apps/ |
dgst.c | 104 int MAIN(int argc, char **argv) 147 program_name(argv[0],pname,sizeof pname); 152 argv++; 155 if ((*argv)[0] != '-') break; 156 if (strcmp(*argv,"-c") == 0) 158 else if (strcmp(*argv,"-r") == 0) 160 else if (strcmp(*argv,"-rand") == 0) 163 randfile=*(++argv); 165 else if (strcmp(*argv,"-out") == 0) 168 outfile=*(++argv); [all...] |
rand.c | 78 int MAIN(int argc, char **argv) 106 while (!badopt && argv[++i] != NULL) 108 if (strcmp(argv[i], "-out") == 0) 110 if ((argv[i+1] != NULL) && (outfile == NULL)) 111 outfile = argv[++i]; 116 else if (strcmp(argv[i], "-engine") == 0) 118 if ((argv[i+1] != NULL) && (engine == NULL)) 119 engine = argv[++i]; 124 else if (strcmp(argv[i], "-rand") == 0) 126 if ((argv[i+1] != NULL) && (inrand == NULL) [all...] |
spkac.c | 82 int MAIN(int argc, char **argv) 107 prog=argv[0]; 109 argv++; 112 if (strcmp(*argv,"-in") == 0) 115 infile= *(++argv); 117 else if (strcmp(*argv,"-out") == 0) 120 outfile= *(++argv); 122 else if (strcmp(*argv,"-passin") == 0) 125 passargin= *(++argv); 127 else if (strcmp(*argv,"-key") == 0 [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...] |
asn1pars.c | 87 int MAIN(int argc, char **argv) 113 prog=argv[0]; 115 argv++; 123 if (strcmp(*argv,"-inform") == 0) 126 informat=str2fmt(*(++argv)); 128 else if (strcmp(*argv,"-in") == 0) 131 infile= *(++argv); 133 else if (strcmp(*argv,"-out") == 0) 136 derfile= *(++argv); 138 else if (strcmp(*argv,"-i") == 0 [all...] |
x509.c | 168 int MAIN(int argc, char **argv) 240 argv++; 244 if (strcmp(*argv,"-inform") == 0) 247 informat=str2fmt(*(++argv)); 249 else if (strcmp(*argv,"-outform") == 0) 252 outformat=str2fmt(*(++argv)); 254 else if (strcmp(*argv,"-keyform") == 0) 257 keyformat=str2fmt(*(++argv)); 259 else if (strcmp(*argv,"-req") == 0) 264 else if (strcmp(*argv,"-CAform") == 0 [all...] |
/bootable/recovery/edify/ |
parser.y | 41 Expr** argv; 73 $$->argv = NULL; 100 $$->argv = $3.argv; 108 $$.argv = NULL; 112 $$.argv = malloc(sizeof(Expr*)); 113 $$.argv[0] = $1; 117 $$.argv = realloc($$.argv, $$.argc * sizeof(Expr*)); 118 $$.argv[$$.argc-1] = $3 [all...] |
expr.c | 36 Value* v = expr->fn(expr->name, state, expr->argc, expr->argv); 49 return expr->fn(expr->name, state, expr->argc, expr->argv); 67 Value* ConcatFn(const char* name, State* state, int argc, Expr* argv[]) { 79 strings[i] = Evaluate(state, argv[i]); 102 Value* IfElseFn(const char* name, State* state, int argc, Expr* argv[]) { 108 char* cond = Evaluate(state, argv[0]); 115 return EvaluateValue(state, argv[1]); 119 return EvaluateValue(state, argv[2]); 126 Value* AbortFn(const char* name, State* state, int argc, Expr* argv[]) { 129 msg = Evaluate(state, argv[0]) [all...] |
/external/e2fsprogs/lib/blkid/ |
resolve.c | 111 int main(int argc, char **argv) 122 argv[0], argv[0]); 130 if (argv[2]) { 131 value = blkid_get_tag_value(cache, argv[1], argv[2]); 132 printf("%s has tag %s=%s\n", argv[2], argv[1], 135 value = blkid_get_devname(cache, argv[1], NULL); 136 printf("%s has tag %s\n", value ? value : "<none>", argv[1]) [all...] |
/external/chromium/third_party/icu/source/tools/gencmn/ |
gencmn.c | 49 main(int argc, char* argv[]) { 53 U_MAIN_INIT_ARGS(argc, argv); 56 argc=u_parseArgs(argc, argv, sizeof(options)/sizeof(options[0]), options); 62 argv[-argc]); 75 "%csage: %s [ -h, -?, --help ] [ -v, --verbose ] [ -c, --copyright ] [ -C, --comment comment ] [ -d, --destdir dir ] [ -n, --name filename ] [ -t, --type filetype ] [ -S, --source tocfile ] [ -e, --entrypoint name ] maxsize listfile\n", argc < 0 ? 'u' : 'U', *argv); 104 maxSize=(uint32_t)uprv_strtoul(argv[1], NULL, 0); 112 argc == 2 ? NULL : argv[2],
|
/external/e2fsprogs/lib/ss/ |
test_ss.c | 81 int main(int argc, char **argv) 90 while ((c = getopt (argc, argv, "wR:f:")) != EOF) { 99 com_err(argv[0], 0, usage); 136 void test_cmd (argc, argv) 138 char **argv; 142 while (++argv, --argc) { 143 printf("'%s'", *argv);
|
/external/icu4c/tools/gencmn/ |
gencmn.c | 49 main(int argc, char* argv[]) { 53 U_MAIN_INIT_ARGS(argc, argv); 56 argc=u_parseArgs(argc, argv, sizeof(options)/sizeof(options[0]), options); 62 argv[-argc]); 75 "%csage: %s [ -h, -?, --help ] [ -v, --verbose ] [ -c, --copyright ] [ -C, --comment comment ] [ -d, --destdir dir ] [ -n, --name filename ] [ -t, --type filetype ] [ -S, --source tocfile ] [ -e, --entrypoint name ] maxsize listfile\n", argc < 0 ? 'u' : 'U', *argv); 104 maxSize=(uint32_t)uprv_strtoul(argv[1], NULL, 0); 112 argc == 2 ? NULL : argv[2],
|
/system/extras/tests/memtest/ |
memtest.cpp | 88 int cpufreq_test(int argc, char** argv); 89 int memcpy_test(int argc, char** argv); 90 int memset_test(int argc, char** argv); 91 int memcmp_test(int argc, char** argv); 92 int strlen_test(int argc, char** argv); 93 int malloc_test(int argc, char** argv); 94 int madvise_test(int argc, char** argv); 95 int crash_test(int argc, char** argv); 96 int stack_smasher_test(int argc, char** argv); 97 int crawl_test(int argc, char** argv); [all...] |
/external/iproute2/ip/ |
ipmaddr.c | 244 static int multiaddr_list(int argc, char **argv) 253 if (strcmp(*argv, "dev") == 0) { 256 if (matches(*argv, "help") == 0) 259 duparg2("dev", *argv); 260 filter.dev = *argv; 262 argv++; argc--; 275 int multiaddr_modify(int cmd, int argc, char **argv) 288 if (strcmp(*argv, "dev") == 0) { 291 duparg("dev", *argv); 292 strncpy(ifr.ifr_name, *argv, IFNAMSIZ) [all...] |
ipxfrm.c | 893 char **argv = *argvp; local 901 if (strcmp(*argv, "src") == 0) { 904 get_prefix(&src, *argv, preferred_family); 906 invarg("\"src\" address family is AF_UNSPEC", *argv); 914 } else if (strcmp(*argv, "dst") == 0) { 917 get_prefix(&dst, *argv, preferred_family); 919 invarg("\"dst\" address family is AF_UNSPEC", *argv); 927 } else if (strcmp(*argv, "proto") == 0) { 932 ret = xfrm_xfrmproto_getbyname(*argv); 934 invarg("\"XFRM_PROTO\" is invalid", *argv); 979 char **argv = *argvp; local 1003 char **argv = *argvp; local 1022 char **argv = *argvp; local 1037 char **argv = *argvp; local 1162 char **argv = *argvp; local 1245 char **argv = *argvp; local [all...] |
/external/bzip2/ |
dlltest.c | 69 int main(int argc,char *argv[])
84 while(++argv,--argc){
85 if(**argv =='-' || **argv=='/'){
88 for(p=*argv+1;*p;p++){
103 fn_r = *argv;
104 argc--;argv++;
109 fn_w = *argv;
110 argc--;argv++;
|