Home
last modified time | relevance | path

Searched refs:optarg (Results 1 - 25 of 335) sorted by relevance

12345678910>>...14

/third_party/pulseaudio/src/daemon/
H A Dcmdline.c228 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) in pa_cmdline_parse()
[all...]
/third_party/FreeBSD/sbin/newfs_msdos/
H A Dnewfs_msdos.c85 o.offset = argtooff(optarg, "offset"); in main()
94 o.bootstrap = optarg; in main()
97 o.create_size = argtooff(optarg, "create size"); in main()
100 if (strcmp(optarg, "12") && in main()
101 strcmp(optarg, "16") && in main()
102 strcmp(optarg, "32")) in main()
103 errx(1, "%s: bad FAT type", optarg); in main()
104 o.fat_type = atoi(optarg); in main()
107 o.volume_id = argto4(optarg, 0, "volume ID"); in main()
111 o.volume_label = optarg; in main()
[all...]
/third_party/nghttp2/src/
H A Dshrpx_config.cc359 const StringRef &optarg) { in parse_header()
360 auto colon = std::find(std::begin(optarg), std::end(optarg), ':'); in parse_header()
362 if (colon == std::end(optarg) || colon == std::begin(optarg)) { in parse_header()
371 make_byte_ref(balloc, std::distance(std::begin(optarg), colon) + 1); in parse_header()
373 p = std::copy(std::begin(optarg), colon, p); in parse_header()
379 make_string_ref(balloc, StringRef{value, std::end(optarg)})); in parse_header()
390 int parse_uint(T *dest, const StringRef &opt, const StringRef &optarg) { in parse_uint() argument
391 auto val = util::parse_uint(optarg); in parse_uint()
358 parse_header(BlockAllocator &balloc, const StringRef &optarg) parse_header() argument
404 parse_uint_with_unit(T *dest, const StringRef &opt, const StringRef &optarg) parse_uint_with_unit() argument
408 LOG(ERROR) << opt << ": bad value: '" << optarg << "'"; parse_uint_with_unit() local
427 parse_altsvc(AltSvc &altsvc, const StringRef &opt, const StringRef &optarg) parse_altsvc() argument
434 LOG(ERROR) << opt << ": too few parameters: " << optarg; parse_altsvc() local
699 parse_log_format(BlockAllocator &balloc, const StringRef &optarg) parse_log_format() argument
799 parse_address_family(int *dest, const StringRef &opt, const StringRef &optarg) parse_address_family() argument
814 LOG(ERROR) << opt << ": bad value: '" << optarg << "'"; parse_address_family() local
820 parse_duration(ev_tstamp *dest, const StringRef &opt, const StringRef &optarg) parse_duration() argument
824 LOG(ERROR) << opt << ": bad value: '" << optarg << "'"; parse_duration() local
835 parse_tls_proto_version(int &dest, const StringRef &opt, const StringRef &optarg) parse_tls_proto_version() argument
839 LOG(ERROR) << opt << ": invalid TLS protocol version: " << optarg; parse_tls_proto_version() local
1409 parse_forwarded_node_type(const StringRef &optarg) parse_forwarded_node_type() argument
1434 parse_error_page(std::vector<ErrorPage> &error_pages, const StringRef &opt, const StringRef &optarg) parse_error_page() argument
1440 LOG(ERROR) << opt << ": bad value: '" << optarg << "'"; parse_error_page() local
2810 parse_config(Config *config, const StringRef &opt, const StringRef &optarg, std::set<StringRef> &included_set, std::map<StringRef, size_t> &pattern_addr_indexer) parse_config() argument
2818 parse_config(Config *config, int optid, const StringRef &opt, const StringRef &optarg, std::set<StringRef> &included_set, std::map<StringRef, size_t> &pattern_addr_indexer) parse_config() argument
2981 LOG(ERROR) << opt << ": Invalid severity level: " << optarg; parse_config() local
3142 << optarg; parse_config() local
3170 LOG(ERROR) << opt << ": Couldn't read key file's passwd from " << optarg; parse_config() local
3238 LOG(ERROR) << opt << ": Unknown syslog facility: " << optarg; parse_config() local
3416 LOG(ERROR) << opt << ": invalid header field: " << optarg; parse_config() local
3549 LOG(ERROR) << opt << ": " << optarg << " has already been included"; parse_config() local
3571 << ": unsupported cipher for ticket encryption: " << optarg; parse_config() local
3683 LOG(ERROR) << opt << ": unknown parameter " << optarg; parse_config() local
3701 << optarg; parse_config() local
[all...]
H A Dnghttpd.cc56 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()
245 config.address = optarg; in main()
254 auto n = util::parse_uint(optarg); in main()
256 std::cerr << "-b: Bad option value: " << optarg << std::endl; in main()
263 config.htdocs = optarg; in main()
270 auto n = util::parse_uint(optarg); in main()
[all...]
H A Dshrpx.cc4403 cmdcfgs.emplace_back(SHRPX_OPT_LOG_LEVEL, StringRef{optarg}); in main()
4406 cmdcfgs.emplace_back(SHRPX_OPT_BACKEND, StringRef{optarg}); in main()
4410 StringRef{optarg}); in main()
4413 cmdcfgs.emplace_back(SHRPX_OPT_FRONTEND, StringRef{optarg}); in main()
4422 cmdcfgs.emplace_back(SHRPX_OPT_WORKERS, StringRef{optarg}); in main()
4450 StringRef{optarg}); in main()
4455 StringRef{optarg}); in main()
4460 StringRef{optarg}); in main()
4464 cmdcfgs.emplace_back(SHRPX_OPT_BACKEND_READ_TIMEOUT, StringRef{optarg}); in main()
4469 StringRef{optarg}); in main()
[all...]
/third_party/f2fs-tools/fsck/
H A Dmain.c171 static int is_digits(char *optarg) in is_digits() argument
175 for (i = 0; i < strlen(optarg); i++) in is_digits()
176 if (!isdigit(optarg[i])) in is_digits()
178 return i == strlen(optarg); in is_digits()
271 c.cache_config.num_cache_entry = atoi(optarg); in f2fs_parse_options()
275 atoi(optarg); in f2fs_parse_options()
278 if (!strcmp(optarg, "android")) { in f2fs_parse_options()
290 if (parse_feature(feature_table, optarg)) in f2fs_parse_options()
300 if (optarg[0] == '-' || !is_digits(optarg) || in f2fs_parse_options()
[all...]
/third_party/ffmpeg/tools/
H A Dffescape.c84 infilename = optarg; in main()
87 if (!strcmp(optarg, "whitespace")) escape_flags |= AV_ESCAPE_FLAG_WHITESPACE; in main()
88 else if (!strcmp(optarg, "strict")) escape_flags |= AV_ESCAPE_FLAG_STRICT; in main()
89 else if (!strcmp(optarg, "xml_single_quotes")) escape_flags |= AV_ESCAPE_FLAG_XML_SINGLE_QUOTES; in main()
90 else if (!strcmp(optarg, "xml_double_quotes")) escape_flags |= AV_ESCAPE_FLAG_XML_DOUBLE_QUOTES; in main()
94 "valid arguments are 'whitespace', and 'strict'\n", optarg); in main()
101 long int li = strtol(optarg, &tail, 10); in main()
105 optarg); in main()
112 if (!strcmp(optarg, "auto")) escape_mode = AV_ESCAPE_MODE_AUTO; in main()
113 else if (!strcmp(optarg, "backslas in main()
[all...]
/third_party/eudev/src/udev/
H A Dudevadm-trigger.c145 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, in adm_trigger()
[all...]
H A Dudevadm-control.c87 i = util_log_priority(optarg); in adm_control()
89 fprintf(stderr, "invalid number '%s'\n", optarg); in adm_control()
92 if (udev_ctrl_send_set_log_level(uctrl, util_log_priority(optarg), timeout) < 0) in adm_control()
117 if (strchr(optarg, '=') == NULL) { in adm_control()
118 fprintf(stderr, "expect <KEY>=<value> instead of '%s'\n", optarg); in adm_control()
121 if (udev_ctrl_send_set_env(uctrl, optarg, timeout) < 0) in adm_control()
130 i = strtoul(optarg, &endp, 0); in adm_control()
132 fprintf(stderr, "invalid number '%s'\n", optarg); in adm_control()
144 seconds = atoi(optarg); in adm_control()
/third_party/littlefs/runners/
H A Dtest_runner.c2156 char *sep = strchr(optarg, '='); in main()
2162 override->name = optarg; in main()
2163 optarg = sep+1; in main()
2171 optarg += strspn(optarg, " "); in main()
2173 if (strncmp(optarg, "range", strlen("range")) == 0) { in main()
2175 optarg += strlen("range"); in main()
2176 optarg += strspn(optarg, " "); in main()
2177 if (*optarg ! in main()
[all...]
H A Dbench_runner.c1587 char *sep = strchr(optarg, '='); in main()
1593 override->name = optarg; in main()
1594 optarg = sep+1; in main()
1602 optarg += strspn(optarg, " "); in main()
1604 if (strncmp(optarg, "range", strlen("range")) == 0) { in main()
1606 optarg += strlen("range"); in main()
1607 optarg += strspn(optarg, " "); in main()
1608 if (*optarg ! in main()
[all...]
/third_party/glfw/deps/
H A Dgetopt.c36 char* optarg; variable
56 optarg = NULL; in getopt()
103 optarg = ++optcursor; in getopt()
104 if (*optarg == '\0') { in getopt()
108 "-oarg"), then it is returned in optarg, otherwise optarg is set in getopt()
112 an element of argv, then optarg shall contain the next element in getopt()
117 Otherwise, optarg shall point to the string following the in getopt()
122 optarg = argv[optind]; in getopt()
128 optarg in getopt()
[all...]
/third_party/glfw/tests/
H A Dglfwinfo.c437 if (strcasecmp(optarg, PLATFORM_NAME_ANY) == 0) in main()
439 else if (strcasecmp(optarg, PLATFORM_NAME_WIN32) == 0) in main()
441 else if (strcasecmp(optarg, PLATFORM_NAME_COCOA) == 0) in main()
443 else if (strcasecmp(optarg, PLATFORM_NAME_WL) == 0) in main()
445 else if (strcasecmp(optarg, PLATFORM_NAME_X11) == 0) in main()
447 else if (strcasecmp(optarg, PLATFORM_NAME_NULL) == 0) in main()
457 if (strcasecmp(optarg, API_NAME_OPENGL) == 0) in main()
459 else if (strcasecmp(optarg, API_NAME_OPENGL_ES) == 0) in main()
469 if (strcasecmp(optarg, BEHAVIOR_NAME_NONE) == 0) in main()
471 else if (strcasecmp(optarg, BEHAVIOR_NAME_FLUS in main()
[all...]
/third_party/alsa-utils/alsaloop/
H A Dalsaloop.c436 arg_config = strdup(optarg); in parse_config()
443 arg_pdevice = strdup(optarg); in parse_config()
446 arg_cdevice = strdup(optarg); in parse_config()
449 arg_pctl = strdup(optarg); in parse_config()
452 arg_cctl = strdup(optarg); in parse_config()
455 arg_prateshift = strdup(optarg); in parse_config()
458 err = atoi(optarg); in parse_config()
462 err = atoi(optarg); in parse_config()
466 arg_format = snd_pcm_format_value(optarg); in parse_config()
473 err = atoi(optarg); in parse_config()
[all...]
/third_party/libinput/tools/
H A Dshared.c127 const char *optarg, in tools_parse_option()
138 if (!optarg) in tools_parse_option()
141 if (streq(optarg, "lrm")) { in tools_parse_option()
143 } else if (streq(optarg, "lmr")) { in tools_parse_option()
192 if (!optarg) in tools_parse_option()
195 if (streq(optarg, "none")) { in tools_parse_option()
198 } else if (streq(optarg, "clickfinger")) { in tools_parse_option()
201 } else if (streq(optarg, "buttonareas")) { in tools_parse_option()
209 if (!optarg) in tools_parse_option()
212 if (streq(optarg, "non in tools_parse_option()
126 tools_parse_option(int option, const char *optarg, struct tools_options *options) tools_parse_option() argument
[all...]
/third_party/selinux/libselinux/utils/
H A 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()
[all...]
H A Dselabel_digest.c85 if (!strcasecmp(optarg, "file")) { in main()
87 } else if (!strcmp(optarg, "media")) { in main()
89 } else if (!strcmp(optarg, "x")) { in main()
91 } else if (!strcmp(optarg, "db")) { in main()
93 } else if (!strcmp(optarg, "prop")) { in main()
95 } else if (!strcmp(optarg, "service")) { in main()
99 optarg); in main()
113 file = optarg; in main()
/third_party/f2fs-tools/mkfs/
H A Df2fs_format_main.c196 c.heap = atoi(optarg); in f2fs_parse_options()
204 if (strlen(optarg) > MAX_PATH_LEN) { in f2fs_parse_options()
209 c.devices[c.ndevs++].path = strdup(optarg); in f2fs_parse_options()
212 c.dbg_lv = atoi(optarg); in f2fs_parse_options()
215 c.extension_list[0] = strdup(optarg); in f2fs_parse_options()
218 c.extension_list[1] = strdup(optarg); in f2fs_parse_options()
221 if (!strcmp(optarg, "android")) in f2fs_parse_options()
231 if (strlen(optarg) > 512) { in f2fs_parse_options()
236 c.vol_label = optarg; in f2fs_parse_options()
242 c.overprovision = atof(optarg); in f2fs_parse_options()
[all...]
/third_party/selinux/secilc/
H A Dsecilc.c142 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()
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
H A Dmain.c213 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/
H A Dmain.c217 iface->bridge_ifname = optarg; in wpa_main()
223 iface->confname = optarg; in wpa_main()
226 iface->ctrl_interface = optarg; in wpa_main()
229 iface->driver = optarg; in wpa_main()
242 params.entropy_file = optarg; in wpa_main()
246 params.wpa_debug_file_path = optarg; in wpa_main()
250 params.ctrl_interface = optarg; in wpa_main()
253 params.ctrl_interface_group = optarg; in wpa_main()
260 iface->ifname = optarg; in wpa_main()
263 iface->confanother = optarg; in wpa_main()
[all...]
/third_party/alsa-utils/alsamixer/
H A Dcli.c90 card_index = snd_card_get_index(optarg); in parse_options()
92 fprintf(stderr, _("invalid card index: %s\n"), optarg); in parse_options()
103 selem_regopt.device = optarg; in parse_options()
106 config_file = optarg; in parse_options()
118 if (*optarg == 'p' || *optarg == 'P') in parse_options()
120 else if (*optarg == 'c' || *optarg == 'C') in parse_options()
132 if (!strcmp(optarg, "none")) in parse_options()
134 else if (!strcmp(optarg, "basi in parse_options()
[all...]
/third_party/alsa-lib/test/
H A Dpcm-multi-thread.c130 pcmdev = optarg; in parse_options()
133 rate = atoi(optarg); in parse_options()
136 periodsize = atoi(optarg); in parse_options()
139 bufsize = atoi(optarg); in parse_options()
142 channels = atoi(optarg); in parse_options()
145 format = snd_pcm_format_value(optarg); in parse_options()
148 if (*optarg == 'p' || *optarg == 'P') in parse_options()
150 else if (*optarg == 'c' || *optarg in parse_options()
[all...]
/third_party/alsa-utils/bat/
H A Dbat.c122 bat->target_freq[1] = bat->target_freq[0] = atof(optarg); in get_sine_frequencies()
125 bat->target_freq[0] = atof(optarg); in get_sine_frequencies()
130 static void get_format(struct bat *bat, char *optarg) in get_format() argument
132 if (strcasecmp(optarg, "cd") == 0) { in get_format()
137 } else if (strcasecmp(optarg, "dat") == 0) { in get_format()
142 } else if (strcasecmp(optarg, "U8") == 0) { in get_format()
145 } else if (strcasecmp(optarg, "S16_LE") == 0) { in get_format()
148 } else if (strcasecmp(optarg, "S24_3LE") == 0) { in get_format()
151 } else if (strcasecmp(optarg, "S32_LE") == 0) { in get_format()
156 fprintf(bat->err, _("wrong extended format '%s'\n"), optarg); in get_format()
[all...]
/third_party/ltp/testcases/kernel/ipc/pipeio/
H A Dpipeio.c194 TCID = optarg; in parse_options()
201 strcpy(pname, optarg); in parse_options()
208 if (sscanf(optarg, "%d", &num_writers) != 1) { in parse_options()
211 TCID, optarg); in parse_options()
220 if (sscanf(optarg, "%d", &exit_error) != 1) { in parse_options()
223 TCID, optarg); in parse_options()
236 switch (optarg[0]) { in parse_options()
261 TCID, optarg); in parse_options()
268 cp = optarg; in parse_options()
273 "arg '%s'.\n", TCID, optarg); in parse_options()
[all...]

Completed in 25 milliseconds

12345678910>>...14