/external/vboot_reference/cgpt/ |
D | cmd_add.c | 53 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 …]
|
D | cmd_find.c | 82 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, ¶ms.type_guid) && in cmd_find() 105 CGPT_OK != StrToGuid(optarg, ¶ms.type_guid)) { in cmd_find() 106 Error("invalid argument to -%c: %s\n", c, optarg); in cmd_find() 112 if (CGPT_OK != StrToGuid(optarg, ¶ms.unique_guid)) { in cmd_find() 113 Error("invalid argument to -%c: %s\n", c, optarg); in cmd_find() 118 params.matchbuf = ReadFile(optarg, ¶ms.matchlen); in cmd_find() [all …]
|
D | cmd_prioritize.c | 54 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/libnl/src/ |
D | nf-exp-add.c | 141 case 'i': nl_cli_exp_parse_id(exp, optarg); break; in main() 142 case ARG_EXPECT_PROTO: nl_cli_exp_parse_l4protonum(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 143 case ARG_EXPECT_SRC: nl_cli_exp_parse_src(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 144 case ARG_EXPECT_SPORT: nl_cli_exp_parse_src_port(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 145 case ARG_EXPECT_DST: nl_cli_exp_parse_dst(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 146 case ARG_EXPECT_DPORT: nl_cli_exp_parse_dst_port(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 147 case ARG_MASTER_PROTO: nl_cli_exp_parse_l4protonum(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main() 148 case ARG_MASTER_SRC: nl_cli_exp_parse_src(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main() 149 case ARG_MASTER_SPORT: nl_cli_exp_parse_src_port(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main() 150 case ARG_MASTER_DST: nl_cli_exp_parse_dst(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main() [all …]
|
D | nf-exp-delete.c | 126 case 'i': nl_cli_exp_parse_id(exp, optarg); break; in main() 127 case ARG_EXPECT_PROTO: nl_cli_exp_parse_l4protonum(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 128 case ARG_EXPECT_SRC: nl_cli_exp_parse_src(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 129 case ARG_EXPECT_SPORT: nl_cli_exp_parse_src_port(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 130 case ARG_EXPECT_DST: nl_cli_exp_parse_dst(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 131 case ARG_EXPECT_DPORT: nl_cli_exp_parse_dst_port(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 132 case ARG_MASTER_PROTO: nl_cli_exp_parse_l4protonum(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main() 133 case ARG_MASTER_SRC: nl_cli_exp_parse_src(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main() 134 case ARG_MASTER_SPORT: nl_cli_exp_parse_src_port(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main() 135 case ARG_MASTER_DST: nl_cli_exp_parse_dst(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main() [all …]
|
D | nf-ct-list.c | 103 case 'f': params.dp_type = nl_cli_parse_dumptype(optarg); break; in main() 106 case 'i': nl_cli_ct_parse_id(ct, optarg); break; in main() 107 case 'p': nl_cli_ct_parse_protocol(ct, optarg); break; in main() 108 case ARG_TCP_STATE: nl_cli_ct_parse_tcp_state(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() [all …]
|
D | nf-exp-list.c | 105 case 'f': params.dp_type = nl_cli_parse_dumptype(optarg); break; in main() 108 case 'i': nl_cli_exp_parse_id(exp, optarg); break; in main() 109 case ARG_EXPECT_PROTO: nl_cli_exp_parse_l4protonum(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 110 case ARG_EXPECT_SRC: nl_cli_exp_parse_src(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 111 case ARG_EXPECT_SPORT: nl_cli_exp_parse_src_port(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 112 case ARG_EXPECT_DST: nl_cli_exp_parse_dst(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 113 case ARG_EXPECT_DPORT: nl_cli_exp_parse_dst_port(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 114 case ARG_MASTER_PROTO: nl_cli_exp_parse_l4protonum(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main() 115 case ARG_MASTER_SRC: nl_cli_exp_parse_src(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main() 116 case ARG_MASTER_SPORT: nl_cli_exp_parse_src_port(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main() [all …]
|
D | nf-ct-add.c | 104 case 'p': nl_cli_ct_parse_protocol(ct, optarg); break; in main() 105 case ARG_ORIG_SRC: nl_cli_ct_parse_src(ct, 0, optarg); break; in main() 106 case ARG_ORIG_SPORT: nl_cli_ct_parse_src_port(ct, 0, optarg); break; in main() 107 case ARG_ORIG_DST: nl_cli_ct_parse_dst(ct, 0, optarg); break; in main() 108 case ARG_ORIG_DPORT: nl_cli_ct_parse_dst_port(ct, 0, optarg); break; in main() 109 case ARG_REPLY_SRC: nl_cli_ct_parse_src(ct, 1, optarg); break; in main() 110 case ARG_REPLY_SPORT: nl_cli_ct_parse_src_port(ct, 1, optarg); break; in main() 111 case ARG_REPLY_DST: nl_cli_ct_parse_dst(ct, 1, optarg); break; in main() 112 case ARG_REPLY_DPORT: nl_cli_ct_parse_dst_port(ct, 1, optarg); break; in main() 113 case 'F': nl_cli_ct_parse_family(ct, optarg); break; in main() [all …]
|
D | nl-route-list.c | 101 case 'f': params.dp_type = nl_cli_parse_dumptype(optarg); break; in main() 104 case 'd': nl_cli_route_parse_dst(route, optarg); break; in main() 105 case 'n': nl_cli_route_parse_nexthop(route, optarg, link_cache); break; in main() 106 case 't': nl_cli_route_parse_table(route, optarg); break; in main() 107 case ARG_FAMILY: nl_cli_route_parse_family(route, optarg); break; in main() 108 case ARG_SRC: nl_cli_route_parse_src(route, optarg); break; in main() 109 case ARG_IIF: nl_cli_route_parse_iif(route, optarg, link_cache); break; in main() 110 case ARG_PREF_SRC: nl_cli_route_parse_pref_src(route, optarg); break; in main() 111 case ARG_METRICS: nl_cli_route_parse_metric(route, optarg); break; in main() 112 case ARG_PRIORITY: nl_cli_route_parse_prio(route, optarg); break; in main() [all …]
|
D | nl-route-add.c | 104 case 'd': nl_cli_route_parse_dst(route, optarg); break; in main() 105 case 'n': nl_cli_route_parse_nexthop(route, optarg, link_cache); break; in main() 106 case 't': nl_cli_route_parse_table(route, optarg); break; in main() 107 case ARG_FAMILY: nl_cli_route_parse_family(route, optarg); break; in main() 108 case ARG_SRC: nl_cli_route_parse_src(route, optarg); break; in main() 109 case ARG_IIF: nl_cli_route_parse_iif(route, optarg, link_cache); break; in main() 110 case ARG_PREF_SRC: nl_cli_route_parse_pref_src(route, optarg); break; in main() 111 case ARG_METRICS: nl_cli_route_parse_metric(route, optarg); break; in main() 112 case ARG_PRIORITY: nl_cli_route_parse_prio(route, optarg); break; in main() 113 case ARG_SCOPE: nl_cli_route_parse_scope(route, optarg); break; in main() [all …]
|
D | nl-route-delete.c | 137 case 'd': nf++; nl_cli_route_parse_dst(route, optarg); break; in main() 138 case 'n': nf++; nl_cli_route_parse_nexthop(route, optarg, link_cache); break; in main() 139 case 't': nf++; nl_cli_route_parse_table(route, optarg); break; in main() 140 case ARG_FAMILY: nf++; nl_cli_route_parse_family(route, optarg); break; in main() 141 case ARG_SRC: nf++; nl_cli_route_parse_src(route, optarg); break; in main() 142 case ARG_IIF: nf++; nl_cli_route_parse_iif(route, optarg, link_cache); break; in main() 143 case ARG_PREF_SRC: nf++; nl_cli_route_parse_pref_src(route, optarg); break; in main() 144 case ARG_METRICS: nf++; nl_cli_route_parse_metric(route, optarg); break; in main() 145 case ARG_PRIORITY: nf++; nl_cli_route_parse_prio(route, optarg); break; in main() 146 case ARG_SCOPE: nf++; nl_cli_route_parse_scope(route, optarg); break; in main() [all …]
|
/external/newfs_msdos/ |
D | newfs_msdos.c | 90 o.offset = argtooff(optarg, "offset"); in main() 99 o.bootstrap = optarg; in main() 102 o.create_size = argtooff(optarg, "create size"); in main() 105 if (strcmp(optarg, "12") && in main() 106 strcmp(optarg, "16") && in main() 107 strcmp(optarg, "32")) in main() 108 errx(1, "%s: bad FAT type", optarg); in main() 109 o.fat_type = atoi(optarg); in main() 112 o.volume_id = argto4(optarg, 0, "volume ID"); in main() 116 o.volume_label = optarg; in main() [all …]
|
/external/blktrace/btt/ |
D | args.c | 303 bno_dump_name = optarg; in handle_args() 306 sscanf(optarg, "%lf", &range_delta); in handle_args() 309 devices = optarg; in handle_args() 312 exes = optarg; in handle_args() 318 input_name = optarg; in handle_args() 321 d2c_name = optarg; in handle_args() 324 plat_freq = atof(optarg); in handle_args() 327 iostat_name = strdup(optarg); in handle_args() 330 sps_name = optarg; in handle_args() 333 if (dev_map_read(optarg)) in handle_args() [all …]
|
/external/f2fs-tools/fsck/ |
D | main.c | 169 static int is_digits(char *optarg) in is_digits() argument 173 for (i = 0; i < strlen(optarg); i++) in is_digits() 174 if (!isdigit(optarg[i])) in is_digits() 176 return i == strlen(optarg); in is_digits() 269 c.cache_config.num_cache_entry = atoi(optarg); in f2fs_parse_options() 273 atoi(optarg); in f2fs_parse_options() 276 if (!strcmp(optarg, "android")) { in f2fs_parse_options() 288 if (parse_feature(feature_table, optarg)) in f2fs_parse_options() 298 if (optarg[0] == '-' || !is_digits(optarg) || in f2fs_parse_options() 306 c.preen_mode = atoi(optarg); in f2fs_parse_options() [all …]
|
/external/minijail/ |
D | minijail0_cli.c | 706 optarg = (char *)entry->value; in getopt_from_conf() 791 set_user(j, optarg, &uid, &gid); in parse_args() 797 set_group(j, optarg, &gid); in parse_args() 817 filter_path = optarg; in parse_args() 832 add_binding(j, optarg); in parse_args() 836 skip_securebits(j, optarg); in parse_args() 840 use_caps(j, optarg); in parse_args() 843 use_chroot(j, optarg, &chroot, pivot_root); in parse_args() 846 add_mount(j, optarg); in parse_args() 849 remount_mode = optarg; in parse_args() [all …]
|
/external/iptables/iptables/ |
D | xtables-eb-translate.c | 43 optarg = NULL; in ebt_check_inverse2() 45 optarg = argv[optind]; in ebt_check_inverse2() 243 chain = optarg; in do_commandeb_xlate() 329 if (strlen(optarg) > EBT_TABLE_MAXNAMELEN - 1) in do_commandeb_xlate() 333 *table = optarg; in do_commandeb_xlate() 334 p.table = optarg; in do_commandeb_xlate() 356 if (ebt_check_inverse2(optarg, argc, argv)) in do_commandeb_xlate() 359 ebtables_parse_interface(optarg, cs.eb.in); in do_commandeb_xlate() 366 if (ebt_check_inverse2(optarg, argc, argv)) in do_commandeb_xlate() 369 ebtables_parse_interface(optarg, cs.eb.logical_in); in do_commandeb_xlate() [all …]
|
/external/libnl/lib/cli/qdisc/ |
D | htb.c | 52 rtnl_htb_set_rate2quantum(qdisc, nl_cli_parse_u32(optarg)); in htb_parse_qdisc_argv() 56 rtnl_htb_set_defcls(qdisc, nl_cli_parse_u32(optarg)); in htb_parse_qdisc_argv() 117 rate = nl_size2int(optarg); in htb_parse_class_argv() 120 "\"%s\": Invalid format.", optarg); in htb_parse_class_argv() 127 rate = nl_size2int(optarg); in htb_parse_class_argv() 130 "\"%s\": Invalid format.", optarg); in htb_parse_class_argv() 137 rtnl_htb_set_prio(class, nl_cli_parse_u32(optarg)); in htb_parse_class_argv() 141 rate = nl_size2int(optarg); in htb_parse_class_argv() 144 "\"%s\": Invalid format.", optarg); in htb_parse_class_argv() 151 rate = nl_size2int(optarg); in htb_parse_class_argv() [all …]
|
/external/erofs-utils/mkfs/ |
D | main.c | 215 if (!optarg) { in mkfs_parse_options_cfg() 220 for (i = 0; optarg[i] != '\0'; ++i) { in mkfs_parse_options_cfg() 221 if (optarg[i] == ',') { in mkfs_parse_options_cfg() 223 atoi(optarg + i + 1); in mkfs_parse_options_cfg() 224 optarg[i] = '\0'; in mkfs_parse_options_cfg() 228 cfg.c_compr_alg_master = strndup(optarg, i); in mkfs_parse_options_cfg() 232 i = atoi(optarg); in mkfs_parse_options_cfg() 241 i = strtol(optarg, &endptr, 0); in mkfs_parse_options_cfg() 243 erofs_err("invalid xattr tolerance %s", optarg); in mkfs_parse_options_cfg() 250 opt = parse_extended_opts(optarg); in mkfs_parse_options_cfg() [all …]
|
/external/selinux/libselinux/utils/ |
D | selabel_lookup.c | 50 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() 62 } else if (!strcmp(optarg, "keystore2_key")) { in main() 66 optarg); in main() 71 file = optarg; in main() 80 key = optarg; in main() [all …]
|
/external/vboot_reference/futility/ |
D | cmd_vbutil_kernel.c | 286 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 …]
|
D | cmd_sign.c | 719 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/dtc/ |
D | dtc.c | 185 inform = optarg; in main() 188 outform = optarg; in main() 191 outname = optarg; in main() 194 outversion = strtol(optarg, NULL, 0); in main() 197 depname = optarg; in main() 200 reservenum = strtoul(optarg, NULL, 0); in main() 203 minsize = strtol(optarg, NULL, 0); in main() 206 padsize = strtol(optarg, NULL, 0); in main() 209 alignsize = strtol(optarg, NULL, 0); in main() 221 cmdline_boot_cpuid = strtoll(optarg, NULL, 0); in main() [all …]
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | main.c | 210 iface->bridge_ifname = optarg; in main() 216 iface->confname = optarg; in main() 219 iface->ctrl_interface = optarg; in main() 222 iface->driver = optarg; in main() 235 params.entropy_file = optarg; in main() 239 params.wpa_debug_file_path = optarg; in main() 243 params.ctrl_interface = optarg; in main() 246 params.ctrl_interface_group = optarg; in main() 253 iface->ifname = optarg; in main() 256 iface->confanother = optarg; in main() [all …]
|
/external/f2fs-tools/mkfs/ |
D | f2fs_format_main.c | 194 c.heap = atoi(optarg); in f2fs_parse_options() 202 if (strlen(optarg) > MAX_PATH_LEN) { in f2fs_parse_options() 207 c.devices[c.ndevs++].path = strdup(optarg); in f2fs_parse_options() 210 c.dbg_lv = atoi(optarg); in f2fs_parse_options() 213 c.extension_list[0] = strdup(optarg); in f2fs_parse_options() 216 c.extension_list[1] = strdup(optarg); in f2fs_parse_options() 219 if (!strcmp(optarg, "android")) in f2fs_parse_options() 229 if (strlen(optarg) > 512) { in f2fs_parse_options() 234 c.vol_label = optarg; in f2fs_parse_options() 240 c.overprovision = atof(optarg); in f2fs_parse_options() [all …]
|
/external/selinux/secilc/ |
D | secilc.c | 142 if (!strcmp(optarg, "selinux")) { in main() 144 } else if (!strcmp(optarg, "xen")) { in main() 147 fprintf(stderr, "Unknown target: %s\n", optarg); in main() 152 if (!strcasecmp(optarg, "true") || !strcasecmp(optarg, "1")) { in main() 154 } else if (!strcasecmp(optarg, "false") || !strcasecmp(optarg, "0")) { in main() 163 policyvers = strtol(optarg, &endptr, 10); in main() 164 if (errno != 0 || endptr == optarg || *endptr != '\0') { in main() 165 fprintf(stderr, "Bad policy version: %s\n", optarg); in main() 176 if (!strcasecmp(optarg, "deny")) { in main() 178 } else if (!strcasecmp(optarg, "allow")) { in main() [all …]
|