| /freebsd/contrib/bc/src/ |
| H A D | opt.c | 57 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 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() 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 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()
|
| /freebsd/usr.bin/runat/ |
| H A D | runat.c | 20 static struct option longopts[] = { variable 45 while (!done_args && (ch = getopt_long(argc, argv, "h-", longopts, in main()
|
| /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.bin/ident/ |
| H A D | ident.c | 232 static struct option longopts[] = { variable 249 while ((opt = getopt_long(argc, argv, "+qV", 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 | 77 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 D | etdump.c | 233 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 D | OptionParser.h | 44 llvm::StringRef optstring, const Option *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/contrib/bc/include/ |
| H A D | opt.h | 116 bc_opt_parse(BcOpt* o, const BcOptLong* longopts);
|
| /freebsd/sbin/md5/ |
| H A D | md5.c | 424 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 D | buf_ring_test.c | 191 static struct option longopts[] = { variable 228 while ((ch = getopt_long(argc, argv, "bf:", longopts, NULL)) != -1) { in main()
|
| /freebsd/usr.sbin/watchdogd/ |
| H A D | watchdogd.c | 105 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 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/efivar/ |
| H A D | efivar.c | 44 static struct option longopts[] = { variable 314 longopts, NULL)) != -1) { in parse_args()
|
| /freebsd/sbin/mount_fusefs/ |
| H A D | mount_fusefs.c | 132 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 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()
|