/kernel/linux/linux-5.10/scripts/dtc/ |
H A D | util.c | 417 struct option const long_opts[], in util_usage() 433 for (i = 0; long_opts[i].name; ++i) { in util_usage() 435 int l = strlen(long_opts[i].name) + 1; in util_usage() 436 if (long_opts[i].has_arg == a_argument) in util_usage() 442 for (i = 0; long_opts[i].name; ++i) { in util_usage() 447 if (long_opts[i].val > '~') in util_usage() 450 fprintf(fp, " -%c, ", long_opts[i].val); in util_usage() 453 if (long_opts[i].has_arg == no_argument) in util_usage() 454 fprintf(fp, "--%-*s", optlen, long_opts[i].name); in util_usage() 456 fprintf(fp, "--%s %s%*s", long_opts[ in util_usage() 415 util_usage(const char *errmsg, const char *synopsis, const char *short_opts, struct option const long_opts[], const char * const opts_help[]) util_usage() argument [all...] |
H A D | util.h | 195 * @param long_opts The structure of long options 196 * @param opts_help An array of help strings (should align with long_opts) 200 struct option const long_opts[], 223 /* Helper for aligning long_opts array */
|
/kernel/linux/linux-6.6/scripts/dtc/ |
H A D | util.c | 428 struct option const long_opts[], in util_usage() 444 for (i = 0; long_opts[i].name; ++i) { in util_usage() 446 int l = strlen(long_opts[i].name) + 1; in util_usage() 447 if (long_opts[i].has_arg == a_argument) in util_usage() 453 for (i = 0; long_opts[i].name; ++i) { in util_usage() 458 if (long_opts[i].val > '~') in util_usage() 461 fprintf(fp, " -%c, ", long_opts[i].val); in util_usage() 464 if (long_opts[i].has_arg == no_argument) in util_usage() 465 fprintf(fp, "--%-*s", optlen, long_opts[i].name); in util_usage() 467 fprintf(fp, "--%s %s%*s", long_opts[ in util_usage() 426 util_usage(const char *errmsg, const char *synopsis, const char *short_opts, struct option const long_opts[], const char * const opts_help[]) util_usage() argument [all...] |
H A D | util.h | 197 * @param long_opts The structure of long options 198 * @param opts_help An array of help strings (should align with long_opts) 202 struct option const long_opts[], 225 /* Helper for aligning long_opts array */
|
/kernel/linux/linux-6.6/tools/testing/memblock/tests/ |
H A D | common.c | 17 static const struct option long_opts[] = { variable 123 BUILD_BUG_ON(ARRAY_SIZE(help_opts) != ARRAY_SIZE(long_opts) - 1); in usage() 127 for (int i = 0; long_opts[i].name; i++) { in usage() 128 printf(" -%c, --%-12s\t%s\n", long_opts[i].val, in usage() 129 long_opts[i].name, help_opts[i]); in usage() 139 while ((c = getopt_long_only(argc, argv, short_opts, long_opts, in parse_args()
|
/kernel/linux/linux-5.10/scripts/kconfig/ |
H A D | conf.c | 458 static struct option long_opts[] = { variable 509 while ((opt = getopt_long(ac, av, "s", long_opts, NULL)) != -1) { in main()
|
/kernel/linux/linux-6.6/scripts/kconfig/ |
H A D | conf.c | 667 static const struct option long_opts[] = { variable 727 while ((opt = getopt_long(ac, av, "hs", long_opts, NULL)) != -1) { in main()
|
/kernel/linux/linux-5.10/scripts/genksyms/ |
H A D | genksyms.c | 759 struct option long_opts[] = { in main() local 774 &long_opts[0], NULL)) != EOF) in main()
|
/kernel/linux/linux-6.6/scripts/genksyms/ |
H A D | genksyms.c | 753 struct option long_opts[] = { in main() local 767 &long_opts[0], NULL)) != EOF) in main()
|
/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | nettest.c | 1939 static struct option long_opts[] = { variable 2031 while ((rc = getopt_long(argc, argv, GETOPT_STR, long_opts, NULL)) != -1) { in main()
|