/freebsd/contrib/ofed/infiniband-diags/src/ |
H A D | ibdiag_common.c | 82 static struct option *long_opts = NULL; variable 186 struct option *o = long_opts; in ibdiag_show_usage() 192 if (long_opts[0].name) in ibdiag_show_usage() 194 for (o = long_opts; o->name; o++) { in ibdiag_show_usage() 340 struct option *long_opts, *l; in make_long_opts() local 348 long_opts = malloc((sizeof(common_opts) / sizeof(common_opts[0]) + n) * in make_long_opts() 349 sizeof(*long_opts)); in make_long_opts() 350 if (!long_opts) in make_long_opts() 353 l = long_opts; in make_long_opts() 367 return long_opts; in make_long_opts() [all …]
|
/freebsd/contrib/byacc/ |
H A D | main.c | 216 } long_opts[] = { variable 272 for (n = 0; n < SIZEOF(long_opts); ++n) in usage() 275 long_opts[n].long_opt, in usage() 276 long_opts[n].yacc_opt); in usage() 392 for (lc = 0; lc < SIZEOF(long_opts); ++lc) in getargs() 394 if (!strncmp(long_opts[lc].long_opt, a + 2, len - 2)) in getargs() 396 if (eqls != NULL && !long_opts[lc].yacc_arg) in getargs() 399 *a++ = long_opts[lc].yacc_opt; in getargs()
|
/freebsd/bin/nproc/ |
H A D | nproc.c | 34 static struct option long_opts[] = { variable 85 while ((ch = getopt_long(argc, argv, "", long_opts, NULL)) != -1) { in main()
|
/freebsd/usr.bin/mktemp/ |
H A D | mktemp.c | 50 static const struct option long_opts[] = { variable 73 while ((c = getopt_long(argc, argv, "dp:qt:u", long_opts, NULL)) != -1) in main()
|
/freebsd/usr.bin/head/ |
H A D | head.c | 62 static const struct option long_opts[] = variable 89 while ((ch = getopt_long(argc, argv, "+n:c:qv", long_opts, NULL)) != -1) { in main()
|
/freebsd/contrib/libxo/xopo/ |
H A D | xopo.c | 103 static struct option long_opts[] = { variable 128 long_opts, NULL)) != -1) { in main()
|
/freebsd/usr.bin/cmp/ |
H A D | cmp.c | 53 static const struct option long_opts[] = variable 107 while ((ch = getopt_long(argc, argv, "+bhi:ln:sxz", long_opts, NULL)) != -1) in main()
|
/freebsd/usr.bin/tail/ |
H A D | tail.c | 62 static const struct option long_opts[] = variable 122 while ((ch = getopt_long(argc, argv, "+Fb:c:fn:qrv", long_opts, NULL)) != in main()
|
/freebsd/usr.bin/showmount/ |
H A D | showmount.c | 92 static const struct option long_opts[] = { variable 117 while ((ch = getopt_long(argc, argv, "+adEe13", long_opts, NULL)) != -1) in main()
|
/freebsd/usr.bin/seq/ |
H A D | seq.c | 58 static const struct option long_opts[] = { variable 110 (c = getopt_long(argc, argv, "+f:hs:t:w", long_opts, NULL)) != -1) { in main()
|
/freebsd/usr.bin/uniq/ |
H A D | uniq.c | 59 static const struct option long_opts[] = variable 93 while ((ch = getopt_long(argc, argv, "+D::cdif:s:u", long_opts, in main()
|
/freebsd/usr.bin/elfctl/ |
H A D | elfctl.c | 73 static struct option long_opts[] = { variable 106 while ((ch = getopt_long(argc, argv, "hile:", long_opts, NULL)) != -1) { in main()
|
/freebsd/contrib/libxo/xo/ |
H A D | xo.c | 241 static struct option long_opts[] = { variable 289 long_opts, NULL)) != -1) { in main()
|
/freebsd/bin/ls/ |
H A D | ls.c | 102 static const struct option long_opts[] = variable 279 "+1ABCD:FGHILPRSTUWXZabcdfghiklmnopqrstuvwxy,", long_opts, in main()
|
/freebsd/sys/contrib/openzfs/cmd/ |
H A D | ztest.c | 825 static struct option *long_opts = NULL; variable 831 ASSERT3P(long_opts, ==, NULL); in init_options() 835 long_opts = umem_alloc(sizeof (struct option) * count, UMEM_NOFAIL); in init_options() 841 long_opts[i].val = option_table[i].short_opt; in init_options() 842 long_opts[i].name = option_table[i].long_opt; in init_options() 843 long_opts[i].has_arg = option_table[i].long_opt_param != NULL in init_options() 845 long_opts[i].flag = NULL; in init_options() 858 umem_free(long_opts, sizeof (struct option) * count); in fini_options() 861 long_opts = NULL; in fini_options() 969 while ((opt = getopt_long(argc, argv, short_opts, long_opts, in process_options()
|