/openbsd/gnu/usr.sbin/mkhybrid/src/ |
H A D | getopt.c | 291 _getopt_initialize (optstring) in _getopt_initialize() argument 292 const char *optstring; in _getopt_initialize() 304 if (optstring[0] == '-') 307 ++optstring; 309 else if (optstring[0] == '+') 312 ++optstring; 319 return optstring; 382 const char *optstring; 390 optstring = _getopt_initialize (optstring); 660 if (optstring[0] == ':') [all …]
|
/openbsd/gnu/usr.bin/cvs/lib/ |
H A D | getopt.c | 284 _getopt_initialize (optstring) in _getopt_initialize() argument 285 const char *optstring; in _getopt_initialize() 299 if (optstring[0] == '-') 302 ++optstring; 304 else if (optstring[0] == '+') 307 ++optstring; 314 return optstring; 377 const char *optstring; 385 optstring = _getopt_initialize (optstring); 655 if (optstring[0] == ':') [all …]
|
/openbsd/gnu/lib/libiberty/src/ |
H A D | getopt.c | 403 const char *optstring) in _getopt_initialize() argument 417 if (optstring[0] == '-') in _getopt_initialize() 420 ++optstring; in _getopt_initialize() 422 else if (optstring[0] == '+') in _getopt_initialize() 425 ++optstring; in _getopt_initialize() 462 return optstring; in _getopt_initialize() 532 optstring = _getopt_initialize (argc, argv, optstring); in _getopt_internal() 735 return optstring[0] == ':' ? ':' : '?'; in _getopt_internal() 778 char *temp = my_index (optstring, c); in _getopt_internal() 827 if (optstring[0] == ':') in _getopt_internal() [all …]
|
/openbsd/regress/lib/libc/getopt/ |
H A D | getopt-test.c | 34 char *optstring; in main() local 37 if ((optstring = getenv("OPTS")) == NULL) in main() 38 optstring = ""; in main() 41 while ((ch = getopt(argc, argv, optstring)) != -1) { in main()
|
/openbsd/gnu/usr.bin/texinfo/lib/ |
H A D | getopt.c | 268 if (optstring[0] == '-') in _getopt_initialize() 271 ++optstring; in _getopt_initialize() 273 else if (optstring[0] == '+') in _getopt_initialize() 276 ++optstring; in _getopt_initialize() 313 return optstring; in _getopt_initialize() 378 if (optstring[0] == ':') in _getopt_internal_r() 390 optstring = _getopt_initialize (argc, argv, optstring, d); in _getopt_internal_r() 695 return optstring[0] == ':' ? ':' : '?'; in _getopt_internal_r() 777 char *temp = strchr (optstring, c); in _getopt_internal_r() 887 if (optstring[0] == ':') in _getopt_internal_r() [all …]
|
/openbsd/gnu/llvm/lldb/include/lldb/Host/common/ |
H A D | GetOptInc.h | 38 int getopt(int argc, char *const argv[], const char *optstring); 54 int getopt_long(int argc, char *const *argv, const char *optstring, 59 int getopt_long_only(int argc, char *const *argv, const char *optstring,
|
/openbsd/bin/pax/ |
H A D | getoldopt.c | 22 getoldopt(int argc, char **argv, const char *optstring) in getoldopt() argument 42 return (getopt(argc, argv, optstring)); in getoldopt() 49 place = strchr(optstring, c); in getoldopt()
|
/openbsd/regress/lib/libfuse/ |
H A D | fuse-opt-parse.c | 28 char *optstring; member 51 DATA_OPT("optstring=%s", optstring, 0), 114 assert(data.optstring == NULL); in test_null_args() 150 assert(data.optstring == NULL); in test_null_opts() 203 assert(strcmp(data.optstring, "optstring") == 0); in test_null_proc() 262 assert(strcmp(data.optstring, "optstring") == 0); in test_all_args()
|
/openbsd/sbin/kbd/ |
H A D | main.c | 55 char *optstring = "lq"; in main() local 58 while ((ch = getopt(argc, argv, optstring)) != -1) in main()
|
/openbsd/usr.sbin/eeprom/ |
H A D | main.c | 60 char *optstring = "f:pv-"; in main() local 62 while ((ch = getopt(argc, argv, optstring)) != -1) in main()
|
/openbsd/usr.sbin/pkg_add/OpenBSD/ |
H A D | Getopt.pod | 20 This is similar to L<getopt(3)>. One call to C<getopts($optstring, $h)> parses 21 all the options using the C<$optstring> as a list of simple switches
|
/openbsd/gnu/llvm/lldb/source/Host/common/ |
H A D | OptionParser.cpp | 32 llvm::StringRef optstring, const Option *longopts, in Parse() argument 45 std::string opt_cstr = std::string(optstring); in Parse()
|
/openbsd/usr.bin/less/ |
H A D | option.c | 27 static char *optstring(char *, char **, char *, char *, int); 150 s = optstring(s, &str, propt('+'), NULL, 0); in scan_option() 293 s = optstring(s, &str, printopt, o->odesc[1], env); in scan_option() 562 optstring(char *s, char **p_str, char *printopt, char *validchars, int env) in optstring() function
|
/openbsd/usr.bin/tput/ |
H A D | tput.c | 79 usage(const char *optstring) in usage() argument 100 if (optstring != NULL) { in usage() 105 if (strchr(optstring, s[3]) == NULL) in usage()
|
/openbsd/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.brendan/ |
H A D | crash39.C | 25 GetOpt (int argc, char **argv, const char *optstring);
|
/openbsd/gnu/llvm/lldb/include/lldb/Host/ |
H A D | OptionParser.h | 44 llvm::StringRef optstring, const Option *longopts,
|
/openbsd/gnu/usr.bin/perl/ext/SDBM_File/ |
H A D | dbe.c | 52 getopt(int argc, char **argv, char *optstring) in getopt() argument 77 place = strchr(optstring, c); in getopt()
|
/openbsd/usr.bin/dig/ |
H A D | host.c | 550 static const char * optstring = "46ac:dilnrst:vVwCDN:R:TW:"; variable 562 while ((c = getopt(argc, argv, optstring)) != -1) { in pre_parse_args() 625 while ((c = getopt(argc, argv, optstring)) != -1) { in parse_args()
|
/openbsd/usr.sbin/vmd/ |
H A D | parse.y | 140 %type <v.string> optstring 426 | local INTERFACE optstring iface_opts_o { 714 optstring : STRING { $$ = $1; }
|
/openbsd/usr.bin/snmp/ |
H A D | snmpc.c | 69 const char *optstring; member 158 if (snmp_app->optstring != NULL) { in main() 159 if (strlcpy(optstr, snmp_app->optstring, in main()
|
/openbsd/usr.sbin/httpd/ |
H A D | parse.y | 151 %type <v.string> numberstring optstring 1152 filter : block RETURN NUMBER optstring { 1196 optstring : /* empty */ { $$ = NULL; }
|
/openbsd/usr.sbin/nsd/doc/ |
H A D | ChangeLog | 5182 - getopt optstring in nsd-checkconf updated ("v" only option).
|