/third_party/musl/src/misc/ |
D | getopt_long.c | 22 …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/ |
D | getopt.py | 56 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/ |
D | getopt.c | 147 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 …]
|
D | getopt.h | 46 const GETOPT_LONG_OPTION_T * longopts, int *longind); 48 const GETOPT_LONG_OPTION_T * longopts, int *longind);
|
/third_party/toybox/lib/ |
D | args.c | 114 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/ |
D | getopt.c | 46 static const _PyOS_LongOption longopts[] = { variable 111 for (opt = &longopts[*longindex]; opt->name; opt = &longopts[++(*longindex)]) { in _PyOS_GetOpt()
|
/third_party/python/Lib/test/ |
D | test_getopt.py | 178 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/ |
D | getopt.c | 159 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()
|
D | getopt.h | 51 const char* optstring, const struct option* longopts, int* longindex);
|
/third_party/fsverity-utils/programs/ |
D | cmd_enable.c | 51 static const struct option longopts[] = { variable 70 while ((c = getopt_long(argc, argv, "", longopts, NULL)) != -1) { in fsverity_cmd_enable()
|
D | cmd_digest.c | 17 static const struct option longopts[] = { variable 40 while ((c = getopt_long(argc, argv, "", longopts, NULL)) != -1) { in fsverity_cmd_digest()
|
D | cmd_dump_metadata.c | 19 static const struct option longopts[] = { variable 74 while ((c = getopt_long(argc, argv, "", longopts, NULL)) != -1) { in fsverity_cmd_dump_metadata()
|
D | cmd_sign.c | 29 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/ |
D | hb-fc-list.c | 55 const struct option longopts[] = { variable 115 while ((c = getopt_long (argc, argv, "vf:qVh", longopts, NULL)) != -1) in main()
|
/third_party/python/Doc/library/ |
D | getopt.rst | 30 .. 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/ |
D | pthread_cond_many.c | 285 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/ |
D | main.c | 100 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/ |
D | librttest.c | 105 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/ |
D | cmdline.c | 270 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/ |
D | ir3_cmdline.c | 267 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/ |
D | librttest.h | 224 int rt_init_long(const char *options, const struct option *longopts,
|
/third_party/rust/crates/libc/src/unix/bsd/ |
D | mod.rs | 898 longopts: *const option, in getopt_long()
|
/third_party/rust/crates/libc/src/unix/haiku/ |
D | mod.rs | 1984 longopts: *const option, in getopt_long()
|
/third_party/rust/crates/libc/src/unix/solarish/ |
D | mod.rs | 3196 longopts: *const option, in getopt_long()
|
/third_party/rust/crates/libc/src/unix/linux_like/android/ |
D | mod.rs | 3506 longopts: *const option, in getopt_long()
|