/third_party/musl/src/misc/ |
H A D | getopt_long.c | 22 static int __getopt_long_core(int argc, char *const *argv, const char *optstring, const struct option *longopts, int *idx, int longonly); 24 static int __getopt_long(int argc, char *const *argv, const char *optstring, const struct option *longopts, int *idx, int longonly) in __getopt_long() argument 43 ret = __getopt_long_core(argc, argv, optstring, longopts, idx, longonly); in __getopt_long() 53 static int __getopt_long_core(int argc, char *const *argv, const char *optstring, const struct option *longopts, int *idx, int longonly) 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[ in __getopt_long_core() 140 getopt_long(int argc, char *const *argv, const char *optstring, const struct option *longopts, int *idx) getopt_long() argument 145 getopt_long_only(int argc, char *const *argv, const char *optstring, const struct option *longopts, int *idx) getopt_long_only() argument [all...] |
/third_party/python/Lib/ |
H A D | getopt.py | 56 def getopt(args, shortopts, longopts = []): 65 specified, longopts is a list of strings with the names of the 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 = []): 116 if isinstance(longopts, st [all...] |
/third_party/ninja/src/ |
H A D | getopt.c | 32 It takes the additional arguments longopts which is a pointer to the first 37 to longopts if it is non-NULL. 147 GETOPT_LONG_OPTION_T * longopts, int *longind, int only) in getopt_internal() 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[optinde in getopt_internal() 146 getopt_internal(int argc, char **argv, char *shortopts, GETOPT_LONG_OPTION_T * longopts, int *longind, int only) getopt_internal() argument 397 getopt_long(int argc, char **argv, const char *shortopts, const GETOPT_LONG_OPTION_T * longopts, int *longind) getopt_long() argument 404 getopt_long_only(int argc, char **argv, const char *shortopts, const GETOPT_LONG_OPTION_T * longopts, int *longind) getopt_long_only() argument [all...] |
H A 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/ |
H A D | args.c | 114 struct longopts { struct 115 struct longopts *next; 127 struct longopts *longopts; member 189 struct longopts *lo; in gotflag() 193 for (lo = gof->longopts; lo->opt != opt; lo = lo->next); in gotflag() 271 // longopts only come at the start of the string.) in parse_optflaglist() 274 struct longopts *lo; in parse_optflaglist() 280 // init a new struct longopts in parse_optflaglist() 281 lo = xmalloc(sizeof(struct longopts)); in parse_optflaglist() [all...] |
/third_party/python/Python/ |
H A D | getopt.c | 46 static const _PyOS_LongOption longopts[] = { variable 115 for (opt = &longopts[*longindex]; opt->name; opt = &longopts[++(*longindex)]) { in _PyOS_GetOpt()
|
/third_party/python/Lib/test/ |
H A D | test_getopt.py | 174 longopts, shortopts = getopt.getopt(['--help='], '', ['help=']) 175 self.assertEqual(longopts, [('--help', '')]) 176 longopts, shortopts = getopt.getopt(['--help=x'], '', ['help=']) 177 self.assertEqual(longopts, [('--help', 'x')])
|
/third_party/glfw/deps/ |
H A D | getopt.c | 159 const struct option* longopts, int* longindex) { in getopt_long() 160 const struct option* o = longopts; in getopt_long() 188 index of the long option relative to longopts. */ in getopt_long() 190 *longindex = (int) (match - longopts); in getopt_long() 158 getopt_long(int argc, char* const argv[], const char* optstring, const struct option* longopts, int* longindex) getopt_long() argument
|
H A D | getopt.h | 51 const char* optstring, const struct option* longopts, int* longindex);
|
/third_party/fsverity-utils/programs/ |
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
/third_party/backends/lib/ |
H A D | getopt.c | 520 _getopt_internal (argc, argv, optstring, longopts, longind, long_only) 524 const struct option *longopts; 631 + (longopts != NULL && argv[optind][1] == '-')); 649 if (longopts != NULL 666 for (p = longopts, option_index = 0; p->name; p++, option_index++) 997 table of longopts. */ 1004 for (p = longopts, option_index = 0; p->name; p++, option_index++)
|
/third_party/skia/third_party/externals/harfbuzz/util/ |
H A 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/mesa3d/src/freedreno/computerator/ |
H A 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/perf/latency/ |
H A 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/ltp/testcases/realtime/lib/ |
H A 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/ |
H A 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/ |
H A 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/ |
H A D | librttest.h | 194 * longopts: a pointer to the first element of an array of struct option, the 224 int rt_init_long(const char *options, const struct option *longopts,
|
/third_party/rust/crates/libc/src/unix/bsd/ |
H A D | mod.rs | 898 longopts: *const option, in getopt_long()
|
/third_party/rust/crates/libc/src/unix/haiku/ |
H A D | mod.rs | 1984 longopts: *const option, in getopt_long()
|
/third_party/rust/crates/libc/src/unix/linux_like/android/ |
H A D | mod.rs | 3506 longopts: *const option, in getopt_long()
|
/third_party/rust/crates/libc/src/unix/solarish/ |
H A D | mod.rs | 3196 longopts: *const option, in getopt_long()
|