Home
last modified time | relevance | path

Searched refs:long_options (Results 1 – 25 of 68) sorted by relevance

123

/third_party/mesa3d/src/getopt/
Dgetopt_long.c160 const struct option *long_options, int *idx, int short_too) in parse_long_options() argument
178 for (i = 0; long_options[i].name; i++) { in parse_long_options()
180 if (strncmp(current_argv, long_options[i].name, in parse_long_options()
184 if (strlen(long_options[i].name) == current_argv_len) { in parse_long_options()
208 if (long_options[match].has_arg == no_argument in parse_long_options()
216 if (long_options[match].flag == NULL) in parse_long_options()
217 optopt = long_options[match].val; in parse_long_options()
222 if (long_options[match].has_arg == required_argument || in parse_long_options()
223 long_options[match].has_arg == optional_argument) { in parse_long_options()
226 else if (long_options[match].has_arg == in parse_long_options()
[all …]
/third_party/libwebsockets/win32port/win32helpers/
Dgetopt_long.c167 getopt_long(nargc, nargv, options, long_options, index) in getopt_long() argument
171 struct option * long_options;
178 _DIAGASSERT(long_options != NULL);
194 for (i = 0; long_options[i].name; i++) {
195 if (strncmp(current_argv, long_options[i].name, current_argv_len))
198 if (strlen(long_options[i].name) == (unsigned)current_argv_len) {
206 if (long_options[match].has_arg == required_argument ||
207 long_options[match].has_arg == optional_argument) {
213 if ((long_options[match].has_arg == required_argument)
231 if (long_options[match].flag) {
[all …]
/third_party/libusb/msvc/getopt/
Dgetopt1.c67 getopt_long (argc, argv, options, long_options, opt_index) in getopt_long() argument
71 const struct option *long_options;
74 return _getopt_internal (argc, argv, options, long_options, opt_index, 0);
83 getopt_long_only (argc, argv, options, long_options, opt_index) in getopt_long_only() argument
87 const struct option *long_options;
90 return _getopt_internal (argc, argv, options, long_options, opt_index, 1);
112 static struct option long_options[] = local
124 long_options, &option_index);
131 printf ("option %s", long_options[option_index].name);
/third_party/musl/libc-test/src/functionalext/supplement/misc/
Dgetopt_long.c49 struct option long_options[] = { in main() local
56 c = getopt_long(argc, argv, short_options, long_options, NULL); in main()
Dgetopt_long_only.c49 struct option long_options[] = { in main() local
56 c = getopt_long_only(argc, argv, short_options, long_options, NULL); in main()
/third_party/mesa3d/src/microsoft/spirv_to_dxil/
Dspirv2dxil.c72 static struct option long_options[] = { in main() local
78 while ((ch = getopt_long(argc, argv, "s:e:o:", long_options, NULL)) != in main()
/third_party/ltp/tools/sparse/sparse-src/
Dsemind.c251 static const struct option long_options[] = { in parse_cmdline() local
265 while ((c = getopt_long(argc, argv, "+B:D:vh", long_options, NULL)) != -1) { in parse_cmdline()
295 static const struct option long_options[] = { in parse_cmdline_add() local
305 while ((c = getopt_long(argc, argv, "+vh", long_options, NULL)) != -1) { in parse_cmdline_add()
336 static const struct option long_options[] = { in parse_cmdline_rm() local
343 while ((c = getopt_long(argc, argv, "+vh", long_options, NULL)) != -1) { in parse_cmdline_rm()
361 static const struct option long_options[] = { in parse_cmdline_search() local
374 while ((c = getopt_long(argc, argv, "+ef:m:k:p:lvh", long_options, NULL)) != -1) { in parse_cmdline_search()
/third_party/alsa-utils/alsamixer/
Dcli.c61 static const struct option long_options[] = { in parse_options() local
79 long_options, NULL)) != -1) { in parse_options()
/third_party/mesa3d/src/compiler/spirv/
Dspirv2nir.c95 static struct option long_options[] = in main() local
104 while ((ch = getopt_long(argc, argv, "hs:e:g", long_options, NULL)) != -1) in main()
/third_party/mesa3d/src/compiler/glsl/glcpp/
Dglcpp.c127 long_options[] = { variable
146 while ((c = getopt_long(argc, argv, "d", long_options, NULL)) != -1) { in main()
/third_party/gettext/gettext-tools/tests/
Dtstngettext.c52 static const struct option long_options[] = variable
94 while ((optchar = getopt_long (argc, argv, "+d:hV", long_options, NULL)) in main()
Dtstgettext.c62 static const struct option long_options[] = variable
105 while ((optchar = getopt_long (argc, argv, "+d:eEhnsV", long_options, NULL)) in main()
/third_party/gettext/gettext-runtime/src/
Dngettext.c47 static const struct option long_options[] = variable
90 while ((optchar = getopt_long (argc, argv, "+c:d:eEhV", long_options, NULL)) in main()
Dgettext.c52 static const struct option long_options[] = variable
95 while ((optchar = getopt_long (argc, argv, "+c:d:eEhnsV", long_options, NULL)) in main()
/third_party/nghttp2/src/
Dnghttpd.cc205 constexpr static option long_options[] = { in main() local
233 int c = getopt_long(argc, argv, "DVb:c:d:ehm:n:p:va:w:W:", long_options, in main()
328 util::show_candidates(argv[optind - 1], long_options); in main()
Dinflatehd.cc256 constexpr static struct option long_options[] = { variable
263 int c = getopt_long(argc, argv, "dh", long_options, &option_index); in main()
/third_party/ltp/testcases/kernel/io/writetest/
Dwritetest.c179 static struct option long_options[] = { in parse_args() local
187 c = getopt_long(argc, argv, "hvb:o:s:", long_options, in parse_args()
/third_party/skia/third_party/externals/microhttpd/src/examples/
Dmhd2spdy.c260 struct option long_options[] = { in main() local
271 getopt_ret = getopt_long( argc, argv, "p:b:vos", long_options, &option_index); in main()
/third_party/gettext/gettext-tools/src/
Dmsgconv.c64 static const struct option long_options[] = variable
131 while ((opt = getopt_long (argc, argv, "D:eEFhin:o:pPst:Vw:", long_options, in main()
Dmsgen.c61 static const struct option long_options[] = variable
130 long_options, NULL)) != EOF) in main()
Drecode-sr-latin.c52 static const struct option long_options[] = variable
86 while ((opt = getopt_long (argc, argv, "hV", long_options, NULL)) != EOF) in main()
Dmsguniq.c64 static const struct option long_options[] = variable
139 long_options, NULL)) != EOF) in main()
Durlget.c74 static const struct option long_options[] = variable
115 while ((optchar = getopt_long (argc, argv, "hqV", long_options, NULL)) != EOF) in main()
/third_party/pulseaudio/src/daemon/
Dcmdline.c74 static const struct option long_options[] = { variable
185 while ((c = getopt_long(argc, argv, "L:F:ChDnp:kv", long_options, NULL)) != -1) { in pa_cmdline_parse()
/third_party/pulseaudio/src/utils/
Dpasuspender.c245 static const struct option long_options[] = { in main() local
259 while ((c = getopt_long(argc, argv, "s:h", long_options, NULL)) != -1) { in main()

123