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.c59 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()
159 type = bc_opt_type(longopts, option[0]); in bc_opt_parseShort()
330 const char* name = longopts[i].name; in bc_opt_parse()
[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()
80 free(longopts); in main()
94 longopts = in main()
97 if (longopts == NULL) in main()
103 if (longopts == NULL) in main()
147 longopts[nlongopts].val = in main()
204 switch (longopts[li].has_arg) { in main()
207 longopts[li].name); 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()
H A Dcmd_pmc_filter.cc79 static struct option longopts[] = { variable
310 while ((option = getopt_long(argc, argv, "e:jp:t:xP:T:", longopts, NULL)) != -1) { in cmd_pmc_filter()
/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.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.c74 struct option longopts[] = { in main() local
84 while ((ch = getopt_long(argc, argv, "u:t:", longopts, NULL)) != -1) { in main()
/freebsd/usr.bin/etdump/
H A Detdump.c231 static struct option longopts[] = { in main() local
237 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/sbin/md5/
H A Dmd5.c405 const struct option *longopts; in main() local
441 longopts = perl_longopts; in main()
455 longopts = gnu_longopts; in main()
461 longopts = bsd_longopts; in main()
478 while ((opt = getopt_long(argc, argv, shortopts, longopts, NULL)) != opt_end) in main()
/freebsd/contrib/bc/include/
H A Dopt.h116 bc_opt_parse(BcOpt* o, const BcOptLong* 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/bin/timeout/
H A Dtimeout.c189 const struct option longopts[] = { in main() local
198 while ((ch = getopt_long(argc, argv, "+k:s:h", longopts, NULL)) != -1) { in main()
/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/watchdogd/
H A Dwatchdogd.c105 static struct option longopts[] = { variable
702 while ((c = getopt_long(argc, argv, getopt_shortopts, longopts, in parseargs()
748 lopt = longopts[longindex].name; in parseargs()
/freebsd/usr.sbin/efivar/
H A Defivar.c45 static struct option longopts[] = { variable
315 longopts, NULL)) != -1) { in parse_args()
/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()
/freebsd/sbin/mount_fusefs/
H A Dmount_fusefs.c131 static struct option longopts[] = { in main() local
250 } while ((ch = getopt_long(argc, argv, "AvVho:SD:O:s:m:", longopts, NULL)) != -1); in main()
/freebsd/usr.sbin/bsdinstall/runconsoles/
H A Drunconsoles.c100 static const struct option longopts[] = { variable
599 while ((ch = getopt_long(argc, argv, "+h", longopts, NULL)) != -1) { in main()

123