Home
last modified time | relevance | path

Searched refs:longopts (Results 1 – 25 of 52) sorted by relevance

123

/freebsd/contrib/bc/src/
H A Dopt.c57 bc_opt_longoptsEnd(const BcOptLong* longopts, size_t i) in bc_opt_longoptsEnd() argument
59 return !longopts[i].name && !longopts[i].val; in bc_opt_longoptsEnd()
69 bc_opt_longopt(const BcOptLong* longopts, int c) in bc_opt_longopt() argument
73 for (i = 0; !bc_opt_longoptsEnd(longopts, i); ++i) in bc_opt_longopt()
75 if (longopts[i].val == c) return longopts[i].name; in bc_opt_longopt()
120 bc_opt_type(const BcOptLong* longopts, char c) in bc_opt_type() argument
126 for (i = 0; !bc_opt_longoptsEnd(longopts, i) && longopts[i].val != c; ++i) in bc_opt_type()
131 if (bc_opt_longoptsEnd(longopts, i)) return -1; in bc_opt_type()
133 return (int) longopts[i].type; in bc_opt_type()
143 bc_opt_parseShort(BcOpt* o, const BcOptLong* longopts) in bc_opt_parseShort() argument
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/stdlib/
H A Dh_getopt_long.c63 struct option *longopts = NULL; in main() local
75 if (longopts) { in main()
78 if (longopts[i].name != NULL) in main()
79 free(__UNCONST(longopts[i].name)); in main()
80 free(longopts); in main()
94 longopts = in main()
97 if (longopts == NULL) in main()
103 if (longopts == NULL) in main()
116 longopts[nlongopts].name = strdup(longopt); in main()
123 longopts[nlongopts].has_arg = no_argument; in main()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Host/common/
H A DOptionParser.cpp32 llvm::StringRef optstring, const Option *longopts, in Parse() argument
35 while (longopts->definition != nullptr) { in Parse()
37 opt.flag = longopts->flag; in Parse()
38 opt.val = longopts->val; in Parse()
39 opt.name = longopts->definition->long_option; in Parse()
40 opt.has_arg = longopts->definition->option_has_arg; in Parse()
42 ++longopts; in Parse()
/freebsd/contrib/llvm-project/lldb/include/lldb/Host/common/
H A DGetOptInc.h55 const struct option *longopts, int *longindex);
60 const struct option *longopts, int *longindex);
/freebsd/usr.sbin/pnfsdskill/
H A Dpnfsdskill.c46 static struct option longopts[] = { variable
66 while ((ch = getopt_long(argc, argv, "f", longopts, NULL)) != -1) { in main()
/freebsd/usr.sbin/pmc/
H A Dcmd_pmc_list.c68 static struct option longopts[] = { variable
93 while ((option = getopt_long(argc, argv, "Uuf", longopts, NULL)) != -1) { in cmd_pmc_list_events()
H A Dcmd_pmc_summary.cc174 static struct option longopts[] = { variable
188 while ((option = getopt_long(argc, argv, "k:f", longopts, NULL)) != -1) { in cmd_pmc_summary()
/freebsd/usr.bin/runat/
H A Drunat.c20 static struct option longopts[] = { variable
45 while (!done_args && (ch = getopt_long(argc, argv, "h-", longopts, in main()
/freebsd/contrib/elftoolchain/cxxfilt/
H A Dcxxfilt.c54 static struct option longopts[] = variable
140 while ((opt = getopt_long(argc, argv, "_nps:V", longopts, NULL)) != in main()
/freebsd/contrib/elftoolchain/ar/
H A Dar.c82 static struct option longopts[] = variable
127 while ((opt = getopt_long(argc, argv, "tDUV", longopts, in main()
177 longopts, NULL)) != -1) { in main()
/freebsd/usr.bin/ar/
H A Dar.c82 static struct option longopts[] = variable
119 while ((opt = getopt_long(argc, argv, "tDUV", longopts, in main()
172 longopts, NULL)) != -1) { in main()
/freebsd/usr.bin/ident/
H A Dident.c232 static struct option longopts[] = { variable
249 while ((opt = getopt_long(argc, argv, "+qV", longopts, NULL)) != -1) { in main()
/freebsd/usr.sbin/efidp/
H A Defidp.c42 static struct option longopts[] = { variable
90 longopts, NULL)) != -1) { in parse_args()
/freebsd/usr.sbin/efitable/
H A Defitable.c77 struct option longopts[] = { in main() local
87 while ((ch = getopt_long(argc, argv, "g:t:u:", longopts, NULL)) != -1) { in main()
/freebsd/usr.bin/etdump/
H A Detdump.c233 static struct option longopts[] = { in main() local
239 while ((ch = getopt_long(argc, argv, "f:o:", longopts, NULL)) != -1) { in main()
/freebsd/contrib/llvm-project/lldb/include/lldb/Host/
H A DOptionParser.h44 llvm::StringRef optstring, const Option *longopts,
/freebsd/usr.bin/look/
H A Dlook.c80 static struct option longopts[] = { variable
102 while ((ch = getopt_long(argc, argv, "+adft:", longopts, NULL)) != -1) in main()
/freebsd/contrib/bc/include/
H A Dopt.h116 bc_opt_parse(BcOpt* o, const BcOptLong* longopts);
/freebsd/sbin/md5/
H A Dmd5.c424 const struct option *longopts; in main() local
460 longopts = perl_longopts; in main()
474 longopts = gnu_longopts; in main()
480 longopts = bsd_longopts; in main()
497 while ((opt = getopt_long(argc, argv, shortopts, longopts, NULL)) != opt_end) in main()
/freebsd/tools/test/buf_ring/
H A Dbuf_ring_test.c191 static struct option longopts[] = { variable
228 while ((ch = getopt_long(argc, argv, "bf:", longopts, NULL)) != -1) { in main()
/freebsd/usr.sbin/watchdogd/
H A Dwatchdogd.c105 static struct option longopts[] = { variable
660 while ((c = getopt_long(argc, argv, getopt_shortopts, longopts, in parseargs()
706 lopt = longopts[longindex].name; in parseargs()
/freebsd/usr.sbin/pnfsdscopymr/
H A Dpnfsdscopymr.c56 static struct option longopts[] = { variable
88 while ((ch = getopt_long(argc, argv, "m:r:", longopts, NULL)) != -1) { in main()
/freebsd/usr.sbin/efivar/
H A Defivar.c44 static struct option longopts[] = { variable
314 longopts, NULL)) != -1) { in parse_args()
/freebsd/sbin/mount_fusefs/
H A Dmount_fusefs.c132 static struct option longopts[] = { in main() local
251 } while ((ch = getopt_long(argc, argv, "AvVho:SD:O:s:m:", longopts, NULL)) != -1); in main()
/freebsd/usr.sbin/pnfsdsfile/
H A Dpnfsdsfile.c49 static struct option longopts[] = { variable
85 while ((ch = getopt_long(argc, argv, "c:m:qr:s:z", longopts, NULL)) != in main()

123