Home
last modified time | relevance | path

Searched refs:optarg (Results 1 – 25 of 523) sorted by relevance

12345678910>>...21

/external/vboot_reference/cgpt/
Dcmd_add.c53 params.drive_size = strtoull(optarg, &e, 0); in cmd_add()
54 if (!*optarg || (e && *e)) in cmd_add()
56 Error("invalid argument to -%c: \"%s\"\n", c, optarg); in cmd_add()
61 params.partition = (uint32_t)strtoul(optarg, &e, 0); in cmd_add()
62 if (!*optarg || (e && *e)) in cmd_add()
64 Error("invalid argument to -%c: \"%s\"\n", c, optarg); in cmd_add()
70 params.begin = strtoull(optarg, &e, 0); in cmd_add()
71 if (!*optarg || (e && *e)) in cmd_add()
73 Error("invalid argument to -%c: \"%s\"\n", c, optarg); in cmd_add()
79 params.size = strtoull(optarg, &e, 0); in cmd_add()
[all …]
Dcmd_find.c82 params.drive_size = strtoull(optarg, &e, 0); in cmd_find()
83 if (!*optarg || (e && *e)) in cmd_find()
85 Error("invalid argument to -%c: \"%s\"\n", c, optarg); in cmd_find()
100 params.label = optarg; in cmd_find()
104 if (CGPT_OK != SupportedType(optarg, &params.type_guid) && in cmd_find()
105 CGPT_OK != StrToGuid(optarg, &params.type_guid)) { in cmd_find()
106 Error("invalid argument to -%c: %s\n", c, optarg); in cmd_find()
112 if (CGPT_OK != StrToGuid(optarg, &params.unique_guid)) { in cmd_find()
113 Error("invalid argument to -%c: %s\n", c, optarg); in cmd_find()
118 params.matchbuf = ReadFile(optarg, &params.matchlen); in cmd_find()
[all …]
Dcmd_prioritize.c54 params.drive_size = strtoull(optarg, &e, 0); in cmd_prioritize()
55 if (!*optarg || (e && *e)) in cmd_prioritize()
57 Error("invalid argument to -%c: \"%s\"\n", c, optarg); in cmd_prioritize()
62 params.set_partition = (uint32_t)strtoul(optarg, &e, 0); in cmd_prioritize()
63 if (!*optarg || (e && *e)) in cmd_prioritize()
65 Error("invalid argument to -%c: \"%s\"\n", c, optarg); in cmd_prioritize()
73 params.max_priority = (int)strtol(optarg, &e, 0); in cmd_prioritize()
74 if (!*optarg || (e && *e)) in cmd_prioritize()
76 Error("invalid argument to -%c: \"%s\"\n", c, optarg); in cmd_prioritize()
/external/ltp/testcases/kernel/io/disktest/
Dparse.c49 extern char *optarg; in fill_cld_args()
67 if (optarg == NULL) { in fill_cld_args()
72 if (!isdigit(optarg[0])) { in fill_cld_args()
77 gbl_dbg_lvl = atoi(optarg); in fill_cld_args()
90 if (optarg == NULL) { in fill_cld_args()
95 if (!isdigit(optarg[0])) { in fill_cld_args()
100 args->seed = (unsigned int)strtol(optarg, NULL, 0); in fill_cld_args()
103 if (optarg == NULL) { in fill_cld_args()
108 if (strchr(optarg, 'g')) { in fill_cld_args()
111 if (strchr(optarg, 'c')) { in fill_cld_args()
[all …]
/external/libnl/src/
Dnf-exp-add.c146 case 'i': nl_cli_exp_parse_id(exp, optarg); break; in main()
147 case ARG_EXPECT_PROTO: nl_cli_exp_parse_l4protonum(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
148 case ARG_EXPECT_SRC: nl_cli_exp_parse_src(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
149 case ARG_EXPECT_SPORT: nl_cli_exp_parse_src_port(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
150 case ARG_EXPECT_DST: nl_cli_exp_parse_dst(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
151 case ARG_EXPECT_DPORT: nl_cli_exp_parse_dst_port(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
152 case ARG_MASTER_PROTO: nl_cli_exp_parse_l4protonum(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main()
153 case ARG_MASTER_SRC: nl_cli_exp_parse_src(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main()
154 case ARG_MASTER_SPORT: nl_cli_exp_parse_src_port(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main()
155 case ARG_MASTER_DST: nl_cli_exp_parse_dst(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main()
[all …]
Dnf-exp-delete.c130 case 'i': nl_cli_exp_parse_id(exp, optarg); break; in main()
131 case ARG_EXPECT_PROTO: nl_cli_exp_parse_l4protonum(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
132 case ARG_EXPECT_SRC: nl_cli_exp_parse_src(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
133 case ARG_EXPECT_SPORT: nl_cli_exp_parse_src_port(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
134 case ARG_EXPECT_DST: nl_cli_exp_parse_dst(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
135 case ARG_EXPECT_DPORT: nl_cli_exp_parse_dst_port(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
136 case ARG_MASTER_PROTO: nl_cli_exp_parse_l4protonum(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main()
137 case ARG_MASTER_SRC: nl_cli_exp_parse_src(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main()
138 case ARG_MASTER_SPORT: nl_cli_exp_parse_src_port(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main()
139 case ARG_MASTER_DST: nl_cli_exp_parse_dst(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main()
[all …]
Dnf-ct-list.c107 case 'f': params.dp_type = nl_cli_parse_dumptype(optarg); break; in main()
110 case 'i': nl_cli_ct_parse_id(ct, optarg); break; in main()
111 case 'p': nl_cli_ct_parse_protocol(ct, optarg); break; in main()
112 case ARG_TCP_STATE: nl_cli_ct_parse_tcp_state(ct, optarg); break; in main()
113 case ARG_ORIG_SRC: nl_cli_ct_parse_src(ct, 0, optarg); break; in main()
114 case ARG_ORIG_SPORT: nl_cli_ct_parse_src_port(ct, 0, optarg); break; in main()
115 case ARG_ORIG_DST: nl_cli_ct_parse_dst(ct, 0, optarg); break; in main()
116 case ARG_ORIG_DPORT: nl_cli_ct_parse_dst_port(ct, 0, optarg); break; in main()
117 case ARG_REPLY_SRC: nl_cli_ct_parse_src(ct, 1, optarg); break; in main()
118 case ARG_REPLY_SPORT: nl_cli_ct_parse_src_port(ct, 1, optarg); break; in main()
[all …]
Dnf-exp-list.c109 case 'f': params.dp_type = nl_cli_parse_dumptype(optarg); break; in main()
112 case 'i': nl_cli_exp_parse_id(exp, optarg); break; in main()
113 case ARG_EXPECT_PROTO: nl_cli_exp_parse_l4protonum(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
114 case ARG_EXPECT_SRC: nl_cli_exp_parse_src(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
115 case ARG_EXPECT_SPORT: nl_cli_exp_parse_src_port(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
116 case ARG_EXPECT_DST: nl_cli_exp_parse_dst(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
117 case ARG_EXPECT_DPORT: nl_cli_exp_parse_dst_port(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
118 case ARG_MASTER_PROTO: nl_cli_exp_parse_l4protonum(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main()
119 case ARG_MASTER_SRC: nl_cli_exp_parse_src(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main()
120 case ARG_MASTER_SPORT: nl_cli_exp_parse_src_port(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main()
[all …]
Dnf-ct-add.c108 case 'p': nl_cli_ct_parse_protocol(ct, optarg); break; in main()
109 case ARG_ORIG_SRC: nl_cli_ct_parse_src(ct, 0, optarg); break; in main()
110 case ARG_ORIG_SPORT: nl_cli_ct_parse_src_port(ct, 0, optarg); break; in main()
111 case ARG_ORIG_DST: nl_cli_ct_parse_dst(ct, 0, optarg); break; in main()
112 case ARG_ORIG_DPORT: nl_cli_ct_parse_dst_port(ct, 0, optarg); break; in main()
113 case ARG_REPLY_SRC: nl_cli_ct_parse_src(ct, 1, optarg); break; in main()
114 case ARG_REPLY_SPORT: nl_cli_ct_parse_src_port(ct, 1, optarg); break; in main()
115 case ARG_REPLY_DST: nl_cli_ct_parse_dst(ct, 1, optarg); break; in main()
116 case ARG_REPLY_DPORT: nl_cli_ct_parse_dst_port(ct, 1, optarg); break; in main()
117 case 'F': nl_cli_ct_parse_family(ct, optarg); break; in main()
[all …]
Dnl-route-list.c105 case 'f': params.dp_type = nl_cli_parse_dumptype(optarg); break; in main()
108 case 'd': nl_cli_route_parse_dst(route, optarg); break; in main()
109 case 'n': nl_cli_route_parse_nexthop(route, optarg, link_cache); break; in main()
110 case 't': nl_cli_route_parse_table(route, optarg); break; in main()
111 case ARG_FAMILY: nl_cli_route_parse_family(route, optarg); break; in main()
112 case ARG_SRC: nl_cli_route_parse_src(route, optarg); break; in main()
113 case ARG_IIF: nl_cli_route_parse_iif(route, optarg, link_cache); break; in main()
114 case ARG_PREF_SRC: nl_cli_route_parse_pref_src(route, optarg); break; in main()
115 case ARG_METRICS: nl_cli_route_parse_metric(route, optarg); break; in main()
116 case ARG_PRIORITY: nl_cli_route_parse_prio(route, optarg); break; in main()
[all …]
Dnl-route-add.c108 case 'd': nl_cli_route_parse_dst(route, optarg); break; in main()
109 case 'n': nl_cli_route_parse_nexthop(route, optarg, link_cache); break; in main()
110 case 't': nl_cli_route_parse_table(route, optarg); break; in main()
111 case ARG_FAMILY: nl_cli_route_parse_family(route, optarg); break; in main()
112 case ARG_SRC: nl_cli_route_parse_src(route, optarg); break; in main()
113 case ARG_IIF: nl_cli_route_parse_iif(route, optarg, link_cache); break; in main()
114 case ARG_PREF_SRC: nl_cli_route_parse_pref_src(route, optarg); break; in main()
115 case ARG_METRICS: nl_cli_route_parse_metric(route, optarg); break; in main()
116 case ARG_PRIORITY: nl_cli_route_parse_prio(route, optarg); break; in main()
117 case ARG_SCOPE: nl_cli_route_parse_scope(route, optarg); break; in main()
[all …]
Dnl-route-delete.c141 case 'd': nf++; nl_cli_route_parse_dst(route, optarg); break; in main()
142 case 'n': nf++; nl_cli_route_parse_nexthop(route, optarg, link_cache); break; in main()
143 case 't': nf++; nl_cli_route_parse_table(route, optarg); break; in main()
144 case ARG_FAMILY: nf++; nl_cli_route_parse_family(route, optarg); break; in main()
145 case ARG_SRC: nf++; nl_cli_route_parse_src(route, optarg); break; in main()
146 case ARG_IIF: nf++; nl_cli_route_parse_iif(route, optarg, link_cache); break; in main()
147 case ARG_PREF_SRC: nf++; nl_cli_route_parse_pref_src(route, optarg); break; in main()
148 case ARG_METRICS: nf++; nl_cli_route_parse_metric(route, optarg); break; in main()
149 case ARG_PRIORITY: nf++; nl_cli_route_parse_prio(route, optarg); break; in main()
150 case ARG_SCOPE: nf++; nl_cli_route_parse_scope(route, optarg); break; in main()
[all …]
Dnl-addr-add.c98 case 'a': nl_cli_addr_parse_local(addr, optarg); break; in main()
99 case 'd': nl_cli_addr_parse_dev(addr, link_cache, optarg); break; in main()
100 case ARG_FAMILY: nl_cli_addr_parse_family(addr, optarg); break; in main()
101 case ARG_LABEL: nl_cli_addr_parse_label(addr, optarg); break; in main()
102 case ARG_PEER: nl_cli_addr_parse_peer(addr, optarg); break; in main()
103 case ARG_SCOPE: nl_cli_addr_parse_scope(addr, optarg); break; in main()
104 case ARG_BROADCAST: nl_cli_addr_parse_broadcast(addr, optarg); break; in main()
105 case ARG_PREFERRED: nl_cli_addr_parse_preferred(addr, optarg); break; in main()
106 case ARG_VALID: nl_cli_addr_parse_valid(addr, optarg); break; in main()
/external/f2fs-tools/fsck/
Dmain.c81 static int is_digits(char *optarg) in is_digits() argument
85 for (i = 0; i < strlen(optarg); i++) in is_digits()
86 if (!isdigit(optarg[i])) in is_digits()
88 return i == strlen(optarg); in is_digits()
133 if (optarg[0] == '-') { in f2fs_parse_options()
137 } else if (!is_digits(optarg)) { in f2fs_parse_options()
141 c.preen_mode = atoi(optarg); in f2fs_parse_options()
152 if (optarg[0] == '-') { in f2fs_parse_options()
155 } else if (!is_digits(optarg)) { in f2fs_parse_options()
159 c.dbg_lv = atoi(optarg); in f2fs_parse_options()
[all …]
/external/blktrace/btt/
Dargs.c297 bno_dump_name = optarg; in handle_args()
300 sscanf(optarg, "%lf", &range_delta); in handle_args()
303 devices = optarg; in handle_args()
306 exes = optarg; in handle_args()
312 input_name = optarg; in handle_args()
315 d2c_name = optarg; in handle_args()
318 plat_freq = atof(optarg); in handle_args()
321 iostat_name = strdup(optarg); in handle_args()
324 sps_name = optarg; in handle_args()
327 if (dev_map_read(optarg)) in handle_args()
[all …]
/external/libnl/lib/cli/qdisc/
Dhtb.c58 rtnl_htb_set_rate2quantum(qdisc, nl_cli_parse_u32(optarg)); in htb_parse_qdisc_argv()
62 rtnl_htb_set_defcls(qdisc, nl_cli_parse_u32(optarg)); in htb_parse_qdisc_argv()
123 rate = nl_size2int(optarg); in htb_parse_class_argv()
126 "\"%s\": Invalid format.", optarg); in htb_parse_class_argv()
133 rate = nl_size2int(optarg); in htb_parse_class_argv()
136 "\"%s\": Invalid format.", optarg); in htb_parse_class_argv()
143 rtnl_htb_set_prio(class, nl_cli_parse_u32(optarg)); in htb_parse_class_argv()
147 rate = nl_size2int(optarg); in htb_parse_class_argv()
150 "\"%s\": Invalid format.", optarg); in htb_parse_class_argv()
157 rate = nl_size2int(optarg); in htb_parse_class_argv()
[all …]
/external/minijail/
Dminijail0.c261 set_user(j, optarg); in parse_args()
264 set_group(j, optarg); in parse_args()
284 if (strlen(optarg) >= path_max) { in parse_args()
288 filter_path = strndup(optarg, path_max); in parse_args()
303 add_binding(j, optarg); in parse_args()
307 skip_securebits(j, optarg); in parse_args()
311 use_caps(j, optarg); in parse_args()
319 if (0 != minijail_enter_chroot(j, optarg)) { in parse_args()
326 add_mount(j, optarg); in parse_args()
339 if (0 != minijail_enter_pivot_root(j, optarg)) { in parse_args()
[all …]
/external/vboot_reference/futility/
Dcmd_vbutil_kernel.c286 filename = optarg; in do_vbutil_kernel()
291 if ((!strncasecmp(optarg, "x86", 3)) || in do_vbutil_kernel()
292 (!strcasecmp(optarg, "amd64"))) in do_vbutil_kernel()
294 else if ((!strcasecmp(optarg, "arm")) || in do_vbutil_kernel()
295 (!strcasecmp(optarg, "aarch64"))) in do_vbutil_kernel()
297 else if (!strcasecmp(optarg, "mips")) in do_vbutil_kernel()
302 optarg); in do_vbutil_kernel()
308 oldfile = optarg; in do_vbutil_kernel()
312 kernel_body_load_address = strtoul(optarg, &e, 0); in do_vbutil_kernel()
313 if (!*optarg || (e && *e)) { in do_vbutil_kernel()
[all …]
Dcmd_sign.c719 option.signprivate = PrivateKeyRead(optarg); in do_sign()
721 fprintf(stderr, "Error reading %s\n", optarg); in do_sign()
726 option.keyblock = KeyBlockRead(optarg); in do_sign()
728 fprintf(stderr, "Error reading %s\n", optarg); in do_sign()
733 option.kernel_subkey = PublicKeyRead(optarg); in do_sign()
735 fprintf(stderr, "Error reading %s\n", optarg); in do_sign()
740 option.devsignprivate = PrivateKeyRead(optarg); in do_sign()
742 fprintf(stderr, "Error reading %s\n", optarg); in do_sign()
747 option.devkeyblock = KeyBlockRead(optarg); in do_sign()
749 fprintf(stderr, "Error reading %s\n", optarg); in do_sign()
[all …]
/external/selinux/secilc/
Dsecilc.c131 if (!strcmp(optarg, "selinux")) { in main()
133 } else if (!strcmp(optarg, "xen")) { in main()
136 fprintf(stderr, "Unknown target: %s\n", optarg); in main()
141 if (!strcasecmp(optarg, "true") || !strcasecmp(optarg, "1")) { in main()
143 } else if (!strcasecmp(optarg, "false") || !strcasecmp(optarg, "0")) { in main()
152 policyvers = strtol(optarg, &endptr, 10); in main()
153 if (errno != 0 || endptr == optarg || *endptr != '\0') { in main()
154 fprintf(stderr, "Bad policy version: %s\n", optarg); in main()
165 if (!strcasecmp(optarg, "deny")) { in main()
167 } else if (!strcasecmp(optarg, "allow")) { in main()
[all …]
/external/selinux/libselinux/utils/
Dselabel_lookup.c50 if (!strcasecmp(optarg, "file")) { in main()
52 } else if (!strcmp(optarg, "media")) { in main()
54 } else if (!strcmp(optarg, "x")) { in main()
56 } else if (!strcmp(optarg, "db")) { in main()
58 } else if (!strcmp(optarg, "prop")) { in main()
60 } else if (!strcmp(optarg, "service")) { in main()
64 optarg); in main()
69 file = optarg; in main()
78 key = optarg; in main()
81 type = atoi(optarg); in main()
/external/dtc/
Ddtc.c191 inform = optarg; in main()
194 outform = optarg; in main()
197 outname = optarg; in main()
200 outversion = strtol(optarg, NULL, 0); in main()
203 depname = optarg; in main()
206 reservenum = strtol(optarg, NULL, 0); in main()
209 minsize = strtol(optarg, NULL, 0); in main()
212 padsize = strtol(optarg, NULL, 0); in main()
215 alignsize = strtol(optarg, NULL, 0); in main()
227 cmdline_boot_cpuid = strtoll(optarg, NULL, 0); in main()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/
Dmain.c209 iface->bridge_ifname = optarg; in main()
215 iface->confname = optarg; in main()
218 iface->ctrl_interface = optarg; in main()
221 iface->driver = optarg; in main()
234 params.entropy_file = optarg; in main()
238 params.wpa_debug_file_path = optarg; in main()
242 params.ctrl_interface = optarg; in main()
245 params.ctrl_interface_group = optarg; in main()
252 iface->ifname = optarg; in main()
255 iface->confanother = optarg; in main()
[all …]
/external/bison/src/
Dgetargs.c615 char* name = optarg; in getargs()
616 char* value = mbschr (optarg, '='); in getargs()
627 include = AS_FILE_NAME (optarg); in getargs()
631 language_argmatch (optarg, command_line_prio, in getargs()
636 skeleton_arg (AS_FILE_NAME (optarg), command_line_prio, in getargs()
641 FLAGS_ARGMATCH (trace, optarg); in getargs()
649 FLAGS_ARGMATCH (feature, optarg); in getargs()
653 FLAGS_ARGMATCH (warnings, optarg); in getargs()
657 spec_file_prefix = AS_FILE_NAME (optarg); in getargs()
663 if (optarg) in getargs()
[all …]
/external/f2fs-tools/mkfs/
Df2fs_format_main.c100 c.heap = atoi(optarg); in f2fs_parse_options()
108 if (strlen(optarg) > MAX_PATH_LEN) { in f2fs_parse_options()
113 c.devices[c.ndevs++].path = strdup(optarg); in f2fs_parse_options()
116 c.dbg_lv = atoi(optarg); in f2fs_parse_options()
119 c.extension_list = strdup(optarg); in f2fs_parse_options()
122 if (strlen(optarg) > 512) { in f2fs_parse_options()
127 c.vol_label = optarg; in f2fs_parse_options()
133 c.overprovision = atof(optarg); in f2fs_parse_options()
136 parse_feature(optarg); in f2fs_parse_options()
139 c.segs_per_sec = atoi(optarg); in f2fs_parse_options()
[all …]

12345678910>>...21