Home
last modified time | relevance | path

Searched refs:longopts (Results 1 – 25 of 26) sorted by relevance

12

/third_party/musl/src/misc/
Dgetopt_long.c22 …nt argc, char *const *argv, const char *optstring, const struct option *longopts, int *idx, int lo…
24 …nt argc, char *const *argv, const char *optstring, const struct option *longopts, int *idx, int lo… in __getopt_long() argument
43 ret = __getopt_long_core(argc, argv, optstring, longopts, idx, longonly); in __getopt_long()
53 …nt argc, char *const *argv, const char *optstring, const struct option *longopts, int *idx, int lo… in __getopt_long_core() argument
56 if (longopts && argv[optind][0] == '-' && in __getopt_long_core()
63 for (cnt=i=0; longopts[i].name; i++) { in __getopt_long_core()
64 const char *name = longopts[i].name; in __getopt_long_core()
94 if (!longopts[i].has_arg) { in __getopt_long_core()
95 optopt = longopts[i].val; in __getopt_long_core()
100 longopts[i].name, in __getopt_long_core()
[all …]
/third_party/python/Lib/
Dgetopt.py56 def getopt(args, shortopts, longopts = []): argument
84 if type(longopts) == type(""):
85 longopts = [longopts]
87 longopts = list(longopts)
93 opts, args = do_longs(opts, args[0][2:], longopts, args[1:])
99 def gnu_getopt(args, shortopts, longopts = []): argument
116 if isinstance(longopts, str):
117 longopts = [longopts]
119 longopts = list(longopts)
136 opts, args = do_longs(opts, args[0][2:], longopts, args[1:])
[all …]
/third_party/ninja/src/
Dgetopt.c147 GETOPT_LONG_OPTION_T * longopts, int *longind, int only) in getopt_internal() argument
162 if (argc == 0 || argv == NULL || (shortopts == NULL && longopts == NULL)) in getopt_internal()
230 if (longopts != NULL in getopt_internal()
248 for (optindex = 0; longopts[optindex].name != NULL; optindex++) in getopt_internal()
251 longopts[optindex].name, match_chars) == 0) in getopt_internal()
254 if (match_chars == strlen (longopts[optindex].name)) in getopt_internal()
272 longopts[longopt_match].name, in getopt_internal()
273 longopts[optindex].name); in getopt_internal()
280 has_arg = longopts[longopt_match].has_arg; in getopt_internal()
335 fprintf (stderr, "--%s'\n", longopts[longopt_match].name); in getopt_internal()
[all …]
Dgetopt.h46 const GETOPT_LONG_OPTION_T * longopts, int *longind);
48 const GETOPT_LONG_OPTION_T * longopts, int *longind);
/third_party/toybox/lib/
Dargs.c114 struct longopts { struct
115 struct longopts *next; argument
127 struct longopts *longopts; argument
189 struct longopts *lo; in gotflag()
193 for (lo = gof->longopts; lo->opt != opt; lo = lo->next); in gotflag()
274 struct longopts *lo; in parse_optflaglist()
281 lo = xmalloc(sizeof(struct longopts)); in parse_optflaglist()
282 lo->next = gof->longopts; in parse_optflaglist()
286 gof->longopts = lo; in parse_optflaglist()
417 struct longopts *lo; in get_optflags()
[all …]
/third_party/python/Python/
Dgetopt.c46 static const _PyOS_LongOption longopts[] = { variable
111 for (opt = &longopts[*longindex]; opt->name; opt = &longopts[++(*longindex)]) { in _PyOS_GetOpt()
/third_party/python/Lib/test/
Dtest_getopt.py178 longopts, shortopts = getopt.getopt(['--help='], '', ['help='])
179 self.assertEqual(longopts, [('--help', '')])
180 longopts, shortopts = getopt.getopt(['--help=x'], '', ['help='])
181 self.assertEqual(longopts, [('--help', 'x')])
/third_party/glfw/deps/
Dgetopt.c159 const struct option* longopts, int* longindex) { in getopt_long() argument
160 const struct option* o = longopts; in getopt_long()
190 *longindex = (int) (match - longopts); in getopt_long()
Dgetopt.h51 const char* optstring, const struct option* longopts, int* longindex);
/third_party/fsverity-utils/programs/
Dcmd_enable.c51 static const struct option longopts[] = { variable
70 while ((c = getopt_long(argc, argv, "", longopts, NULL)) != -1) { in fsverity_cmd_enable()
Dcmd_digest.c17 static const struct option longopts[] = { variable
40 while ((c = getopt_long(argc, argv, "", longopts, NULL)) != -1) { in fsverity_cmd_digest()
Dcmd_dump_metadata.c19 static const struct option longopts[] = { variable
74 while ((c = getopt_long(argc, argv, "", longopts, NULL)) != -1) { in fsverity_cmd_dump_metadata()
Dcmd_sign.c29 static const struct option longopts[] = { variable
57 while ((c = getopt_long(argc, argv, "", longopts, NULL)) != -1) { in fsverity_cmd_sign()
/third_party/skia/third_party/externals/harfbuzz/util/
Dhb-fc-list.c55 const struct option longopts[] = { variable
115 while ((c = getopt_long (argc, argv, "vf:qVh", longopts, NULL)) != -1) in main()
/third_party/python/Doc/library/
Dgetopt.rst30 .. function:: getopt(args, shortopts, longopts=[])
44 *longopts*, if specified, must be a list of strings with the names of the
51 accepted options. For example, if *longopts* is ``['foo', 'frob']``, the
66 .. function:: gnu_getopt(args, shortopts, longopts=[])
/third_party/ltp/testcases/realtime/perf/latency/
Dpthread_cond_many.c285 struct option longopts[] = { in main() local
293 rt_init_long("ahi:n:r", longopts, parse_args, argc, argv); in main()
/third_party/mesa3d/src/freedreno/computerator/
Dmain.c100 static const struct option longopts[] = { variable
212 while ((opt = getopt_long_only(argc, argv, shortopts, longopts, NULL)) != in main()
/third_party/ltp/testcases/realtime/lib/
Dlibrttest.c105 int rt_init_long(const char *options, const struct option *longopts, in rt_init_long() argument
142 cur_opt = longopts; in rt_init_long()
169 while ((c = getopt_long(argc, argv, all_options, longopts, NULL)) != -1) { in rt_init_long()
/third_party/mesa3d/src/panfrost/bifrost/
Dcmdline.c270 static struct option longopts[] = { in main() local
295 while ((c = getopt_long(argc, argv, "v:", longopts, NULL)) != -1) { in main()
/third_party/mesa3d/src/gallium/drivers/freedreno/ir3/
Dir3_cmdline.c267 static const struct option longopts[] = { variable
298 while ((opt = getopt_long_only(argc, argv, shortopts, longopts, NULL)) != in main()
/third_party/ltp/testcases/realtime/include/
Dlibrttest.h224 int rt_init_long(const char *options, const struct option *longopts,
/third_party/rust/crates/libc/src/unix/bsd/
Dmod.rs898 longopts: *const option, in getopt_long()
/third_party/rust/crates/libc/src/unix/haiku/
Dmod.rs1984 longopts: *const option, in getopt_long()
/third_party/rust/crates/libc/src/unix/solarish/
Dmod.rs3196 longopts: *const option, in getopt_long()
/third_party/rust/crates/libc/src/unix/linux_like/android/
Dmod.rs3506 longopts: *const option, in getopt_long()

12