Home
last modified time | relevance | path

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

/freebsd-12-stable/contrib/dtc/
Dutil.c422 const char *short_opts, struct option const long_opts[], in util_usage() argument
438 for (i = 0; long_opts[i].name; ++i) { in util_usage()
440 int l = strlen(long_opts[i].name) + 1; in util_usage()
441 if (long_opts[i].has_arg == a_argument) in util_usage()
447 for (i = 0; long_opts[i].name; ++i) { in util_usage()
452 if (long_opts[i].val > '~') in util_usage()
455 fprintf(fp, " -%c, ", long_opts[i].val); in util_usage()
458 if (long_opts[i].has_arg == no_argument) in util_usage()
459 fprintf(fp, "--%-*s", optlen, long_opts[i].name); in util_usage()
461 fprintf(fp, "--%s %s%*s", long_opts[i].name, a_arg, in util_usage()
[all …]
Dutil.h218 const char *short_opts, struct option const long_opts[],
/freebsd-12-stable/contrib/ofed/infiniband-diags/src/
Dibdiag_common.c82 static struct option *long_opts = NULL; variable
178 struct option *o = long_opts; in ibdiag_show_usage()
184 if (long_opts[0].name) in ibdiag_show_usage()
186 for (o = long_opts; o->name; o++) { in ibdiag_show_usage()
332 struct option *long_opts, *l; in make_long_opts() local
340 long_opts = malloc((sizeof(common_opts) / sizeof(common_opts[0]) + n) * in make_long_opts()
341 sizeof(*long_opts)); in make_long_opts()
342 if (!long_opts) in make_long_opts()
345 l = long_opts; in make_long_opts()
359 return long_opts; in make_long_opts()
[all …]
/freebsd-12-stable/usr.bin/head/
Dhead.c68 static const struct option long_opts[] = variable
85 while ((ch = getopt_long(argc, argv, "+n:c:", long_opts, NULL)) != -1) in main()
/freebsd-12-stable/contrib/xz/src/lzmainfo/
Dlzmainfo.c65 static const struct option long_opts[] = { in parse_args() local
72 while ((c = getopt_long(argc, argv, "", long_opts, NULL)) != -1) { in parse_args()
/freebsd-12-stable/usr.bin/cmp/
Dcmp.c67 static const struct option long_opts[] = variable
110 while ((ch = getopt_long(argc, argv, "+bhi:ln:sxz", long_opts, NULL)) != -1) in main()
/freebsd-12-stable/contrib/libxo/xopo/
Dxopo.c103 static struct option long_opts[] = { variable
128 long_opts, NULL)) != -1) { in main()
/freebsd-12-stable/contrib/xz/src/xzdec/
Dxzdec.c99 static const struct option long_opts[] = { in parse_options() local
114 while ((c = getopt_long(argc, argv, short_opts, long_opts, NULL)) in parse_options()
/freebsd-12-stable/usr.bin/tail/
Dtail.c69 static const struct option long_opts[] = variable
125 while ((ch = getopt_long(argc, argv, "+Fb:c:fn:qr", long_opts, NULL)) != in main()
/freebsd-12-stable/usr.bin/uniq/
Duniq.c77 static const struct option long_opts[] = variable
111 while ((ch = getopt_long(argc, argv, "+D::cdif:s:u", long_opts, in main()
/freebsd-12-stable/usr.bin/seq/
Dseq.c60 static const struct option long_opts[] = variable
113 (c = getopt_long(argc, argv, "+f:hs:t:w", long_opts, NULL)) != -1) { in main()
/freebsd-12-stable/usr.bin/showmount/
Dshowmount.c106 static const struct option long_opts[] = { variable
131 while ((ch = getopt_long(argc, argv, "+adEe13", long_opts, NULL)) != -1) in main()
/freebsd-12-stable/contrib/libxo/xo/
Dxo.c227 static struct option long_opts[] = { variable
264 long_opts, NULL)) != -1) { in main()
/freebsd-12-stable/usr.bin/elfctl/
Delfctl.c80 static struct option long_opts[] = { variable
113 while ((ch = getopt_long(argc, argv, "hile:", long_opts, NULL)) != -1) { in main()
/freebsd-12-stable/contrib/xz/src/xz/
Dargs.c151 static const struct option long_opts[] = { in parse_real() local
215 while ((c = getopt_long(argc, argv, short_opts, long_opts, NULL)) in parse_real()
/freebsd-12-stable/bin/ls/
Dls.c105 static const struct option long_opts[] = variable
278 "+1ABCD:FGHILPRSTUWXZabcdfghiklmnopqrstuwxy,", long_opts, in main()