/freebsd/contrib/bc/src/ |
H A D | opt.c | 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() 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 D | h_getopt_long.c | 63 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 D | OptionParser.cpp | 32 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 D | GetOptInc.h | 55 const struct option *longopts, int *longindex); 60 const struct option *longopts, int *longindex);
|
/freebsd/usr.sbin/pnfsdskill/ |
H A D | pnfsdskill.c | 46 static struct option longopts[] = { variable 66 while ((ch = getopt_long(argc, argv, "f", longopts, NULL)) != -1) { in main()
|
/freebsd/usr.sbin/pmc/ |
H A D | cmd_pmc_list.c | 68 static struct option longopts[] = { variable 93 while ((option = getopt_long(argc, argv, "Uuf", longopts, NULL)) != -1) { in cmd_pmc_list_events()
|
H A D | cmd_pmc_summary.cc | 174 static struct option longopts[] = { variable 188 while ((option = getopt_long(argc, argv, "k:f", longopts, NULL)) != -1) { in cmd_pmc_summary()
|
H A D | cmd_pmc_filter.cc | 79 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 D | cxxfilt.c | 54 static struct option longopts[] = variable 140 while ((opt = getopt_long(argc, argv, "_nps:V", longopts, NULL)) != in main()
|
/freebsd/contrib/elftoolchain/ar/ |
H A D | ar.c | 82 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 D | ar.c | 82 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 D | efidp.c | 42 static struct option longopts[] = { variable 90 longopts, NULL)) != -1) { in parse_args()
|
/freebsd/usr.sbin/efitable/ |
H A D | efitable.c | 74 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 D | etdump.c | 231 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 D | OptionParser.h | 44 llvm::StringRef optstring, const Option *longopts,
|
/freebsd/sbin/md5/ |
H A D | md5.c | 405 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 D | opt.h | 116 bc_opt_parse(BcOpt* o, const BcOptLong* longopts);
|
/freebsd/usr.bin/look/ |
H A D | look.c | 80 static struct option longopts[] = { variable 102 while ((ch = getopt_long(argc, argv, "+adft:", longopts, NULL)) != -1) in main()
|
/freebsd/bin/timeout/ |
H A D | timeout.c | 189 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 D | pnfsdscopymr.c | 56 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 D | watchdogd.c | 105 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 D | efivar.c | 45 static struct option longopts[] = { variable 315 longopts, NULL)) != -1) { in parse_args()
|
/freebsd/usr.sbin/pnfsdsfile/ |
H A D | pnfsdsfile.c | 49 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 D | mount_fusefs.c | 131 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 D | runconsoles.c | 100 static const struct option longopts[] = { variable 599 while ((ch = getopt_long(argc, argv, "+h", longopts, NULL)) != -1) { in main()
|