/third_party/pulseaudio/src/daemon/ |
D | cmdline.c | 228 pa_strbuf_printf(buf, "load-module %s\n", optarg); in pa_cmdline_parse() 234 pa_strbuf_printf(buf, ".include %s\n", p = pa_make_path_absolute(optarg)); in pa_cmdline_parse() 245 if ((b = optarg ? pa_parse_boolean(optarg) : 1) < 0) { in pa_cmdline_parse() 253 if ((b = optarg ? pa_parse_boolean(optarg) : 1) < 0) { in pa_cmdline_parse() 263 if (optarg) { in pa_cmdline_parse() 264 if (pa_daemon_conf_set_log_level(conf, optarg) < 0) { in pa_cmdline_parse() 276 if ((b = optarg ? pa_parse_boolean(optarg) : 1) < 0) { in pa_cmdline_parse() 284 if ((b = optarg ? pa_parse_boolean(optarg) : 1) < 0) { in pa_cmdline_parse() 292 if ((b = optarg ? pa_parse_boolean(optarg) : 1) < 0) { in pa_cmdline_parse() 300 if ((b = optarg ? pa_parse_boolean(optarg) : 1) < 0) { in pa_cmdline_parse() [all …]
|
/third_party/libnl/src/ |
D | nf-exp-add.c | 149 case 'i': nl_cli_exp_parse_id(exp, optarg); break; in main() 150 case ARG_EXPECT_PROTO: nl_cli_exp_parse_l4protonum(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 151 case ARG_EXPECT_SRC: nl_cli_exp_parse_src(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 152 case ARG_EXPECT_SPORT: nl_cli_exp_parse_src_port(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 153 case ARG_EXPECT_DST: nl_cli_exp_parse_dst(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 154 case ARG_EXPECT_DPORT: nl_cli_exp_parse_dst_port(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 155 case ARG_MASTER_PROTO: nl_cli_exp_parse_l4protonum(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main() 156 case ARG_MASTER_SRC: nl_cli_exp_parse_src(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main() 157 case ARG_MASTER_SPORT: nl_cli_exp_parse_src_port(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main() 158 case ARG_MASTER_DST: nl_cli_exp_parse_dst(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main() [all …]
|
D | nf-exp-delete.c | 133 case 'i': nl_cli_exp_parse_id(exp, optarg); break; in main() 134 case ARG_EXPECT_PROTO: nl_cli_exp_parse_l4protonum(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 135 case ARG_EXPECT_SRC: nl_cli_exp_parse_src(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 136 case ARG_EXPECT_SPORT: nl_cli_exp_parse_src_port(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 137 case ARG_EXPECT_DST: nl_cli_exp_parse_dst(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 138 case ARG_EXPECT_DPORT: nl_cli_exp_parse_dst_port(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 139 case ARG_MASTER_PROTO: nl_cli_exp_parse_l4protonum(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main() 140 case ARG_MASTER_SRC: nl_cli_exp_parse_src(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main() 141 case ARG_MASTER_SPORT: nl_cli_exp_parse_src_port(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main() 142 case ARG_MASTER_DST: nl_cli_exp_parse_dst(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main() [all …]
|
D | nf-ct-list.c | 110 case 'f': params.dp_type = nl_cli_parse_dumptype(optarg); break; in main() 113 case 'i': nl_cli_ct_parse_id(ct, optarg); break; in main() 114 case 'p': nl_cli_ct_parse_protocol(ct, optarg); break; in main() 115 case ARG_TCP_STATE: nl_cli_ct_parse_tcp_state(ct, optarg); break; in main() 116 case ARG_ORIG_SRC: nl_cli_ct_parse_src(ct, 0, optarg); break; in main() 117 case ARG_ORIG_SPORT: nl_cli_ct_parse_src_port(ct, 0, optarg); break; in main() 118 case ARG_ORIG_DST: nl_cli_ct_parse_dst(ct, 0, optarg); break; in main() 119 case ARG_ORIG_DPORT: nl_cli_ct_parse_dst_port(ct, 0, optarg); break; in main() 120 case ARG_REPLY_SRC: nl_cli_ct_parse_src(ct, 1, optarg); break; in main() 121 case ARG_REPLY_SPORT: nl_cli_ct_parse_src_port(ct, 1, optarg); break; in main() [all …]
|
D | nf-exp-list.c | 112 case 'f': params.dp_type = nl_cli_parse_dumptype(optarg); break; in main() 115 case 'i': nl_cli_exp_parse_id(exp, optarg); break; in main() 116 case ARG_EXPECT_PROTO: nl_cli_exp_parse_l4protonum(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 117 case ARG_EXPECT_SRC: nl_cli_exp_parse_src(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 118 case ARG_EXPECT_SPORT: nl_cli_exp_parse_src_port(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 119 case ARG_EXPECT_DST: nl_cli_exp_parse_dst(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 120 case ARG_EXPECT_DPORT: nl_cli_exp_parse_dst_port(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 121 case ARG_MASTER_PROTO: nl_cli_exp_parse_l4protonum(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main() 122 case ARG_MASTER_SRC: nl_cli_exp_parse_src(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main() 123 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 | 111 case 'p': nl_cli_ct_parse_protocol(ct, optarg); break; in main() 112 case ARG_ORIG_SRC: nl_cli_ct_parse_src(ct, 0, optarg); break; in main() 113 case ARG_ORIG_SPORT: nl_cli_ct_parse_src_port(ct, 0, optarg); break; in main() 114 case ARG_ORIG_DST: nl_cli_ct_parse_dst(ct, 0, optarg); break; in main() 115 case ARG_ORIG_DPORT: nl_cli_ct_parse_dst_port(ct, 0, optarg); break; in main() 116 case ARG_REPLY_SRC: nl_cli_ct_parse_src(ct, 1, optarg); break; in main() 117 case ARG_REPLY_SPORT: nl_cli_ct_parse_src_port(ct, 1, optarg); break; in main() 118 case ARG_REPLY_DST: nl_cli_ct_parse_dst(ct, 1, optarg); break; in main() 119 case ARG_REPLY_DPORT: nl_cli_ct_parse_dst_port(ct, 1, optarg); break; in main() 120 case 'F': nl_cli_ct_parse_family(ct, optarg); break; in main() [all …]
|
D | nl-route-list.c | 108 case 'f': params.dp_type = nl_cli_parse_dumptype(optarg); break; in main() 111 case 'd': nl_cli_route_parse_dst(route, optarg); break; in main() 112 case 'n': nl_cli_route_parse_nexthop(route, optarg, link_cache); break; in main() 113 case 't': nl_cli_route_parse_table(route, optarg); break; in main() 114 case ARG_FAMILY: nl_cli_route_parse_family(route, optarg); break; in main() 115 case ARG_SRC: nl_cli_route_parse_src(route, optarg); break; in main() 116 case ARG_IIF: nl_cli_route_parse_iif(route, optarg, link_cache); break; in main() 117 case ARG_PREF_SRC: nl_cli_route_parse_pref_src(route, optarg); break; in main() 118 case ARG_METRICS: nl_cli_route_parse_metric(route, optarg); break; in main() 119 case ARG_PRIORITY: nl_cli_route_parse_prio(route, optarg); break; in main() [all …]
|
D | nl-route-add.c | 111 case 'd': nl_cli_route_parse_dst(route, optarg); break; in main() 112 case 'n': nl_cli_route_parse_nexthop(route, optarg, link_cache); break; in main() 113 case 't': nl_cli_route_parse_table(route, optarg); break; in main() 114 case ARG_FAMILY: nl_cli_route_parse_family(route, optarg); break; in main() 115 case ARG_SRC: nl_cli_route_parse_src(route, optarg); break; in main() 116 case ARG_IIF: nl_cli_route_parse_iif(route, optarg, link_cache); break; in main() 117 case ARG_PREF_SRC: nl_cli_route_parse_pref_src(route, optarg); break; in main() 118 case ARG_METRICS: nl_cli_route_parse_metric(route, optarg); break; in main() 119 case ARG_PRIORITY: nl_cli_route_parse_prio(route, optarg); break; in main() 120 case ARG_SCOPE: nl_cli_route_parse_scope(route, optarg); break; in main() [all …]
|
D | nl-route-delete.c | 144 case 'd': nf++; nl_cli_route_parse_dst(route, optarg); break; in main() 145 case 'n': nf++; nl_cli_route_parse_nexthop(route, optarg, link_cache); break; in main() 146 case 't': nf++; nl_cli_route_parse_table(route, optarg); break; in main() 147 case ARG_FAMILY: nf++; nl_cli_route_parse_family(route, optarg); break; in main() 148 case ARG_SRC: nf++; nl_cli_route_parse_src(route, optarg); break; in main() 149 case ARG_IIF: nf++; nl_cli_route_parse_iif(route, optarg, link_cache); break; in main() 150 case ARG_PREF_SRC: nf++; nl_cli_route_parse_pref_src(route, optarg); break; in main() 151 case ARG_METRICS: nf++; nl_cli_route_parse_metric(route, optarg); break; in main() 152 case ARG_PRIORITY: nf++; nl_cli_route_parse_prio(route, optarg); break; in main() 153 case ARG_SCOPE: nf++; nl_cli_route_parse_scope(route, optarg); break; in main() [all …]
|
D | nl-addr-add.c | 101 case 'a': nl_cli_addr_parse_local(addr, optarg); break; in main() 102 case 'd': nl_cli_addr_parse_dev(addr, link_cache, optarg); break; in main() 103 case ARG_FAMILY: nl_cli_addr_parse_family(addr, optarg); break; in main() 104 case ARG_LABEL: nl_cli_addr_parse_label(addr, optarg); break; in main() 105 case ARG_PEER: nl_cli_addr_parse_peer(addr, optarg); break; in main() 106 case ARG_SCOPE: nl_cli_addr_parse_scope(addr, optarg); break; in main() 107 case ARG_BROADCAST: nl_cli_addr_parse_broadcast(addr, optarg); break; in main() 108 case ARG_PREFERRED: nl_cli_addr_parse_preferred(addr, optarg); break; in main() 109 case ARG_VALID: nl_cli_addr_parse_valid(addr, optarg); break; in main()
|
/third_party/FreeBSD/sbin/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 …]
|
/third_party/ffmpeg/tools/ |
D | ffescape.c | 78 infilename = optarg; in main() 81 … if (!strcmp(optarg, "whitespace")) escape_flags |= AV_ESCAPE_FLAG_WHITESPACE; in main() 82 else if (!strcmp(optarg, "strict")) escape_flags |= AV_ESCAPE_FLAG_STRICT; in main() 83 … else if (!strcmp(optarg, "xml_single_quotes")) escape_flags |= AV_ESCAPE_FLAG_XML_SINGLE_QUOTES; in main() 84 … else if (!strcmp(optarg, "xml_double_quotes")) escape_flags |= AV_ESCAPE_FLAG_XML_DOUBLE_QUOTES; in main() 88 "valid arguments are 'whitespace', and 'strict'\n", optarg); in main() 95 long int li = strtol(optarg, &tail, 10); in main() 99 optarg); in main() 106 if (!strcmp(optarg, "auto")) escape_mode = AV_ESCAPE_MODE_AUTO; in main() 107 else if (!strcmp(optarg, "backslash")) escape_mode = AV_ESCAPE_MODE_BACKSLASH; in main() [all …]
|
/third_party/nghttp2/src/ |
D | shrpx_config.cc | 288 const StringRef &optarg) { in parse_header() argument 289 auto colon = std::find(std::begin(optarg), std::end(optarg), ':'); in parse_header() 291 if (colon == std::end(optarg) || colon == std::begin(optarg)) { in parse_header() 300 make_byte_ref(balloc, std::distance(std::begin(optarg), colon) + 1); in parse_header() 302 p = std::copy(std::begin(optarg), colon, p); in parse_header() 308 make_string_ref(balloc, StringRef{value, std::end(optarg)})); in parse_header() 319 int parse_uint(T *dest, const StringRef &opt, const StringRef &optarg) { in parse_uint() argument 320 auto val = util::parse_uint(optarg); in parse_uint() 334 const StringRef &optarg) { in parse_uint_with_unit() argument 335 auto n = util::parse_uint_with_unit(optarg); in parse_uint_with_unit() [all …]
|
D | nghttpd.cc | 56 int parse_push_config(Config &config, const char *optarg) { in parse_push_config() argument 57 const char *eq = strchr(optarg, '='); in parse_push_config() 61 auto &paths = config.push[std::string(optarg, eq)]; in parse_push_config() 62 auto optarg_end = optarg + strlen(optarg); in parse_push_config() 240 config.address = optarg; in main() 249 config.padding = strtol(optarg, nullptr, 10); in main() 252 config.htdocs = optarg; in main() 259 auto n = util::parse_uint(optarg); in main() 261 std::cerr << "-m: invalid argument: " << optarg << std::endl; in main() 274 config.num_worker = strtoul(optarg, &end, 10); in main() [all …]
|
/third_party/f2fs-tools/fsck/ |
D | main.c | 142 static int is_digits(char *optarg) in is_digits() argument 146 for (i = 0; i < strlen(optarg); i++) in is_digits() 147 if (!isdigit(optarg[i])) in is_digits() 149 return i == strlen(optarg); in is_digits() 240 c.cache_config.num_cache_entry = atoi(optarg); in f2fs_parse_options() 244 atoi(optarg); in f2fs_parse_options() 247 if (!strcmp(optarg, "android")) in f2fs_parse_options() 251 if (parse_feature(feature_table, optarg)) in f2fs_parse_options() 261 if (optarg[0] == '-' || !is_digits(optarg) || in f2fs_parse_options() 269 c.preen_mode = atoi(optarg); in f2fs_parse_options() [all …]
|
/third_party/eudev/src/udev/ |
D | udevadm-trigger.c | 145 if (streq(optarg, "devices")) in adm_trigger() 147 else if (streq(optarg, "subsystems")) in adm_trigger() 150 log_error("unknown type --type=%s", optarg); in adm_trigger() 155 if (!nulstr_contains("add\0" "remove\0" "change\0", optarg)) { in adm_trigger() 156 log_error("unknown action '%s'", optarg); in adm_trigger() 159 action = optarg; in adm_trigger() 163 udev_enumerate_add_match_subsystem(udev_enumerate, optarg); in adm_trigger() 166 udev_enumerate_add_nomatch_subsystem(udev_enumerate, optarg); in adm_trigger() 169 key = keyval(optarg, &val, buf, sizeof(buf)); in adm_trigger() 173 key = keyval(optarg, &val, buf, sizeof(buf)); in adm_trigger() [all …]
|
/third_party/flutter/glfw/deps/ |
D | getopt.c | 36 char* optarg; variable 56 optarg = NULL; in getopt() 103 optarg = ++optcursor; in getopt() 104 if (*optarg == '\0') { in getopt() 122 optarg = argv[optind]; in getopt() 128 optarg = NULL; in getopt() 132 optarg = NULL; in getopt() 167 optarg = NULL; in getopt_long() 202 optarg = strchr(argv[optind], '='); in getopt_long() 203 if (optarg != NULL) in getopt_long() [all …]
|
/third_party/libnl/lib/cli/qdisc/ |
D | htb.c | 58 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 …]
|
/third_party/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 …]
|
/third_party/f2fs-tools/mkfs/ |
D | f2fs_format_main.c | 141 c.heap = atoi(optarg); in f2fs_parse_options() 149 if (strlen(optarg) > MAX_PATH_LEN) { in f2fs_parse_options() 154 c.devices[c.ndevs++].path = strdup(optarg); in f2fs_parse_options() 157 c.dbg_lv = atoi(optarg); in f2fs_parse_options() 160 c.extension_list[0] = strdup(optarg); in f2fs_parse_options() 163 c.extension_list[1] = strdup(optarg); in f2fs_parse_options() 166 if (!strcmp(optarg, "android")) in f2fs_parse_options() 173 if (strlen(optarg) > 512) { in f2fs_parse_options() 178 c.vol_label = optarg; in f2fs_parse_options() 184 c.overprovision = atof(optarg); in f2fs_parse_options() [all …]
|
/third_party/alsa-utils/alsamixer/ |
D | cli.c | 86 card_index = snd_card_get_index(optarg); in parse_options() 88 fprintf(stderr, _("invalid card index: %s\n"), optarg); in parse_options() 99 selem_regopt.device = optarg; in parse_options() 102 config_file = optarg; in parse_options() 114 if (*optarg == 'p' || *optarg == 'P') in parse_options() 116 else if (*optarg == 'c' || *optarg == 'C') in parse_options() 125 if (!strcmp(optarg, "none")) in parse_options() 127 else if (!strcmp(optarg, "basic")) in parse_options() 130 fprintf(stderr, _("unknown abstraction level: %s\n"), optarg); in parse_options()
|
/third_party/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() 64 optarg); in main() 69 file = optarg; in main() 78 key = optarg; in main() 81 type = atoi(optarg); in main()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/ |
D | main.c | 213 iface->bridge_ifname = optarg; in wpa_main() 219 iface->confname = optarg; in wpa_main() 222 iface->ctrl_interface = optarg; in wpa_main() 225 iface->driver = optarg; in wpa_main() 238 params.entropy_file = optarg; in wpa_main() 242 params.wpa_debug_file_path = optarg; in wpa_main() 246 params.ctrl_interface = optarg; in wpa_main() 249 params.ctrl_interface_group = optarg; in wpa_main() 256 iface->ifname = optarg; in wpa_main() 259 iface->confanother = optarg; in wpa_main() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
D | main.c | 213 iface->bridge_ifname = optarg; in wpa_main() 219 iface->confname = optarg; in wpa_main() 222 iface->ctrl_interface = optarg; in wpa_main() 225 iface->driver = optarg; in wpa_main() 238 params.entropy_file = optarg; in wpa_main() 242 params.wpa_debug_file_path = optarg; in wpa_main() 246 params.ctrl_interface = optarg; in wpa_main() 249 params.ctrl_interface_group = optarg; in wpa_main() 256 iface->ifname = optarg; in wpa_main() 259 iface->confanother = optarg; in wpa_main() [all …]
|
/third_party/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 …]
|