Home
last modified time | relevance | path

Searched refs:long_opts (Results 1 – 25 of 87) sorted by relevance

1234

/external/u-boot/scripts/dtc/
Dutil.c423 struct option const long_opts[], in util_usage() argument
439 for (i = 0; long_opts[i].name; ++i) { in util_usage()
441 int l = strlen(long_opts[i].name) + 1; in util_usage()
442 if (long_opts[i].has_arg == a_argument) in util_usage()
448 for (i = 0; long_opts[i].name; ++i) { in util_usage()
453 if (long_opts[i].val > '~') in util_usage()
456 fprintf(fp, " -%c, ", long_opts[i].val); in util_usage()
459 if (long_opts[i].has_arg == no_argument) in util_usage()
460 fprintf(fp, "--%-*s", optlen, long_opts[i].name); in util_usage()
462 fprintf(fp, "--%s %s%*s", long_opts[i].name, a_arg, in util_usage()
[all …]
/external/dtc/
Dutil.c423 struct option const long_opts[], in util_usage() argument
439 for (i = 0; long_opts[i].name; ++i) { in util_usage()
441 int l = strlen(long_opts[i].name) + 1; in util_usage()
442 if (long_opts[i].has_arg == a_argument) in util_usage()
448 for (i = 0; long_opts[i].name; ++i) { in util_usage()
453 if (long_opts[i].val > '~') in util_usage()
456 fprintf(fp, " -%c, ", long_opts[i].val); in util_usage()
459 if (long_opts[i].has_arg == no_argument) in util_usage()
460 fprintf(fp, "--%-*s", optlen, long_opts[i].name); in util_usage()
462 fprintf(fp, "--%s %s%*s", long_opts[i].name, a_arg, in util_usage()
[all …]
/external/u-boot/arch/sandbox/cpu/
Dos.c211 static struct option *long_opts; variable
224 if (short_opts || long_opts) in os_parse_args()
232 long_opts = os_malloc(sizeof(*long_opts) * num_options); in os_parse_args()
233 if (!short_opts || !long_opts) in os_parse_args()
245 long_opts[i].name = sb_opt[i]->flag; in os_parse_args()
246 long_opts[i].has_arg = sb_opt[i]->has_arg ? in os_parse_args()
248 long_opts[i].flag = NULL; in os_parse_args()
251 short_opts[si++] = long_opts[i].val = sb_opt[i]->flag_short; in os_parse_args()
252 if (long_opts[i].has_arg == required_argument) in os_parse_args()
255 long_opts[i].val = sb_opt[i]->flag_short = hidden_short_opt++; in os_parse_args()
[all …]
/external/libnl/lib/cli/qdisc/
Dhtb.c41 static struct option long_opts[] = { in htb_parse_qdisc_argv() local
48 c = getopt_long(argc, argv, "hv", long_opts, &optidx); in htb_parse_qdisc_argv()
102 static struct option long_opts[] = { in htb_parse_class_argv() local
113 c = getopt_long(argc, argv, "h", long_opts, &optidx); in htb_parse_class_argv()
Dblackhole.c32 static struct option long_opts[] = { in blackhole_parse_argv() local
37 c = getopt_long(argc, argv, "h", long_opts, &optidx); in blackhole_parse_argv()
Dingress.c33 static struct option long_opts[] = { in ingress_parse_argv() local
38 c = getopt_long(argc, argv, "h", long_opts, &optidx); in ingress_parse_argv()
Dpfifo.c40 static struct option long_opts[] = { in pfifo_parse_argv() local
46 c = getopt_long(argc, argv, "h", long_opts, &optidx); in pfifo_parse_argv()
Dbfifo.c40 static struct option long_opts[] = { in bfifo_parse_argv() local
46 c = getopt_long(argc, argv, "h", long_opts, &optidx); in bfifo_parse_argv()
Dplug.c61 static struct option long_opts[] = { in plug_parse_argv() local
70 c = getopt_long(argc, argv, "h", long_opts, &optidx); in plug_parse_argv()
Dfq_codel.c49 static struct option long_opts[] = { in fq_codel_parse_argv() local
59 c = getopt_long(argc, argv, "h", long_opts, &optidx); in fq_codel_parse_argv()
/external/u-boot/tools/
Dfdtgrep.c1001 const char *short_opts, struct option const long_opts[], in util_usage() argument
1017 for (i = 0; long_opts[i].name; ++i) { in util_usage()
1019 int l = strlen(long_opts[i].name) + 1; in util_usage()
1020 if (long_opts[i].has_arg == a_argument) in util_usage()
1026 for (i = 0; long_opts[i].name; ++i) { in util_usage()
1031 if (long_opts[i].val > '~') in util_usage()
1034 fprintf(fp, " -%c, ", long_opts[i].val); in util_usage()
1037 if (long_opts[i].has_arg == no_argument) { in util_usage()
1038 fprintf(fp, "--%-*s", optlen, long_opts[i].name); in util_usage()
1040 fprintf(fp, "--%s %s%*s", long_opts[i].name, a_arg, in util_usage()
[all …]
/external/python/cpython2/Lib/distutils/
Dfancy_getopt.py76 self.long_opts = []
151 self.long_opts = []
180 self.long_opts.append(long)
198 self.long_opts[-1] = long # XXX redundant?!
257 opts, args = getopt.getopt(args, short_opts, self.long_opts)
/external/python/cpython3/Lib/distutils/
Dfancy_getopt.py71 self.long_opts = []
138 self.long_opts = []
165 self.long_opts.append(long)
182 self.long_opts[-1] = long # XXX redundant?!
233 opts, args = getopt.getopt(args, short_opts, self.long_opts)
/external/libnl/lib/cli/cls/
Dcgroup.c37 static struct option long_opts[] = { in parse_argv() local
43 c = getopt_long(argc, argv, "he:", long_opts, &optidx); in parse_argv()
Dbasic.c46 static struct option long_opts[] = { in parse_argv() local
53 c = getopt_long(argc, argv, "ht:e:", long_opts, &optidx); in parse_argv()
/external/libnl/src/
Dnl-neightbl-list.c45 static struct option long_opts[] = { in main() local
52 c = getopt_long(argc, argv, "f:hv", long_opts, &optidx); in main()
Dgenl-ctrl-list.c48 static struct option long_opts[] = { in main() local
56 c = getopt_long(argc, argv, "df:hv", long_opts, &optidx); in main()
Dnl-rule-list.c54 static struct option long_opts[] = { in main() local
62 c = getopt_long(argc, argv, "f:hv", long_opts, &optidx); in main()
Dnl-classid-lookup.c44 static struct option long_opts[] = { in main() local
52 c = getopt_long(argc, argv, "hvr", long_opts, &optidx); in main()
Dnl-neigh-list.c58 static struct option long_opts[] = { in main() local
70 c = getopt_long(argc, argv, "f:hva:l:d:", long_opts, &optidx); in main()
Didiag-socket-details.c52 static struct option long_opts[] = { in main() local
61 c = getopt_long(argc, argv, "hv", long_opts, &optidx); in main()
Dnl-link-list.c60 static struct option long_opts[] = { in main() local
74 c = getopt_long(argc, argv, "hvn:i:", long_opts, &optidx); in main()
Dnl-neigh-add.c67 static struct option long_opts[] = { in main() local
80 c = getopt_long(argc, argv, "qhva:l:d:", long_opts, &optidx); in main()
Dnl-class-list.c83 static struct option long_opts[] = { in main() local
95 c = getopt_long(argc, argv, "hvd:p:i:k:", long_opts, &optidx); in main()
/external/vboot_reference/futility/
Dcmd_dump_kernel_config.c20 static const struct option long_opts[] = { variable
41 while (((i = getopt_long(argc, argv, ":", long_opts, NULL)) != -1) && in do_dump_kernel_config()

1234