Searched refs:long_opts (Results 1 - 6 of 6) sorted by relevance

/linux-master/tools/testing/memblock/tests/
H A Dcommon.c17 static const struct option long_opts[] = { variable in typeref:struct:option
123 BUILD_BUG_ON(ARRAY_SIZE(help_opts) != ARRAY_SIZE(long_opts) - 1);
127 for (int i = 0; long_opts[i].name; i++) {
128 printf(" -%c, --%-12s\t%s\n", long_opts[i].val,
129 long_opts[i].name, help_opts[i]);
139 while ((c = getopt_long_only(argc, argv, short_opts, long_opts,
/linux-master/scripts/dtc/
H A Dutil.c428 struct option const long_opts[],
444 for (i = 0; long_opts[i].name; ++i) {
446 int l = strlen(long_opts[i].name) + 1;
447 if (long_opts[i].has_arg == a_argument)
453 for (i = 0; long_opts[i].name; ++i) {
458 if (long_opts[i].val > '~')
461 fprintf(fp, " -%c, ", long_opts[i].val);
464 if (long_opts[i].has_arg == no_argument)
465 fprintf(fp, "--%-*s", optlen, long_opts[i].name);
467 fprintf(fp, "--%s %s%*s", long_opts[
426 util_usage(const char *errmsg, const char *synopsis, const char *short_opts, struct option const long_opts[], const char * const opts_help[]) argument
[all...]
H A Dutil.h197 * @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 */
/linux-master/scripts/kconfig/
H A Dconf.c662 static const struct option long_opts[] = { variable in typeref:struct:option
722 while ((opt = getopt_long(ac, av, "hs", long_opts, NULL)) != -1) {
/linux-master/scripts/genksyms/
H A Dgenksyms.c736 struct option long_opts[] = { local
750 &long_opts[0], NULL)) != EOF)
/linux-master/tools/testing/selftests/net/
H A Dnettest.c1940 static struct option long_opts[] = { variable in typeref:struct:option
2032 while ((rc = getopt_long(argc, argv, GETOPT_STR, long_opts, NULL)) != -1) {

Completed in 135 milliseconds