Home
last modified time | relevance | path

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

/u-boot/scripts/dtc/
A 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 …]
A Dutil.h219 struct option const long_opts[],
/u-boot/arch/sandbox/cpu/
A Dos.c326 static struct option *long_opts; variable
339 if (short_opts || long_opts) in os_parse_args()
347 long_opts = malloc(sizeof(*long_opts) * (num_options + 1)); in os_parse_args()
348 if (!short_opts || !long_opts) in os_parse_args()
360 long_opts[i].name = sb_opt[i]->flag; in os_parse_args()
361 long_opts[i].has_arg = sb_opt[i]->has_arg ? in os_parse_args()
363 long_opts[i].flag = NULL; in os_parse_args()
366 short_opts[si++] = long_opts[i].val = sb_opt[i]->flag_short; in os_parse_args()
367 if (long_opts[i].has_arg == required_argument) in os_parse_args()
370 long_opts[i].val = sb_opt[i]->flag_short = hidden_short_opt++; in os_parse_args()
[all …]
/u-boot/tools/
A Dfdtgrep.c1006 const char *short_opts, struct option const long_opts[], in util_usage() argument
1022 for (i = 0; long_opts[i].name; ++i) { in util_usage()
1024 int l = strlen(long_opts[i].name) + 1; in util_usage()
1025 if (long_opts[i].has_arg == a_argument) in util_usage()
1031 for (i = 0; long_opts[i].name; ++i) { in util_usage()
1036 if (long_opts[i].val > '~') in util_usage()
1039 fprintf(fp, " -%c, ", long_opts[i].val); in util_usage()
1042 if (long_opts[i].has_arg == no_argument) { in util_usage()
1043 fprintf(fp, "--%-*s", optlen, long_opts[i].name); in util_usage()
1045 fprintf(fp, "--%s %s%*s", long_opts[i].name, a_arg, in util_usage()
[all …]
/u-boot/scripts/kconfig/
A Dconf.c450 static struct option long_opts[] = { variable
503 while ((opt = getopt_long(ac, av, "s", long_opts, NULL)) != -1) { in main()

Completed in 44 milliseconds