Home
last modified time | relevance | path

Searched refs:optstring (Results 1 – 17 of 17) sorted by relevance

/freebsd-12.1/cddl/contrib/opensolaris/cmd/dtrace/test/cmd/jdtrace/
H A DGetopt.java48 private String optstring; field in Getopt
74 optstring = optionString; in Getopt()
91 if (optstring == null) { in validate()
145 int len = optstring.length(); in parseshort()
147 ch = optstring.charAt(i); in parseshort()
198 il = optstring.length(); in parselong()
201 ic = optstring.charAt(ip); in parselong()
204 ic = optstring.charAt(ip); in parselong()
207 ic = optstring.charAt(ip); in parselong()
232 ic = optstring.charAt(ip); in parselong()
[all …]
/freebsd-12.1/contrib/netbsd-tests/lib/libc/stdlib/
H A Dh_getopt.c52 char *line, *ptr, *optstring = NULL, *result = NULL; in main() local
61 if (optstring) in main()
62 free(optstring); in main()
63 optstring = strtok(&line[6], WS); in main()
64 if (optstring == NULL) in main()
67 optstring = strdup(optstring); in main()
69 fprintf(stderr, "optstring = %s\n", optstring); in main()
103 while ((c = getopt(nargs, args, optstring)) != -1) { in main()
106 if ((ptr = strchr(optstring, c)) == NULL) { in main()
H A Dh_getopt_long.c54 char *line, *eptr, *longopt, *ptr, *optstring = NULL, *result = NULL; in main() local
67 if (optstring) in main()
68 free(optstring); in main()
69 optstring = strtok(&line[11], WS); in main()
70 if (optstring == NULL) in main()
73 optstring = strdup(optstring); in main()
177 if (optstring == NULL) in main()
185 while ((c = getopt_long(nargs, args, optstring, in main()
190 ptr = strchr(optstring, c); in main()
/freebsd-12.1/tools/regression/netinet/msocket/
H A Dmsocket.c99 socktype, optstring); in test_u_char()
102 socktype, optstring); in test_u_char()
114 socktype, optstring); in test_u_char()
117 socktype, optstring); in test_u_char()
124 socktype, optstring); in test_u_char()
127 socktype, optstring); in test_u_char()
155 socktype, optstring); in test_in_addr()
158 socktype, optstring); in test_in_addr()
171 socktype, optstring); in test_in_addr()
174 socktype, optstring); in test_in_addr()
[all …]
/freebsd-12.1/contrib/gcclibs/libiberty/
H A Dgetopt.c403 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 …]
/freebsd-12.1/contrib/llvm/tools/lldb/include/lldb/Host/common/
H A DGetOptInc.h29 int getopt(int argc, char *const argv[], const char *optstring);
45 int getopt_long(int argc, char *const *argv, const char *optstring,
50 int getopt_long_only(int argc, char *const *argv, const char *optstring,
/freebsd-12.1/bin/pax/
H A Dgetoldopt.c25 getoldopt(int argc, char **argv, const char *optstring) in getoldopt() argument
45 return (getopt(argc, argv, optstring)); in getoldopt()
52 place = strchr(optstring, c); in getoldopt()
/freebsd-12.1/contrib/ntp/libntp/
H A Dgetopt.c56 const char *optstring in ntp_getopt() argument
87 for (place = optstring; place != NULL && *place != '\0'; ++place) in ntp_getopt()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Host/common/
H A DOptionParser.cpp31 int OptionParser::Parse(int argc, char *const argv[], llvm::StringRef optstring, in Parse() argument
44 std::string opt_cstr = optstring; in Parse()
/freebsd-12.1/contrib/less/
H A Doption.c26 static char *optstring();
149 s = optstring(s, &str, propt('+'), NULL);
269 s = optstring(s, &str, printopt, o->odesc[1]);
565 optstring(s, p_str, printopt, validchars) in optstring() function
/freebsd-12.1/contrib/llvm/tools/lldb/include/lldb/Host/
H A DOptionParser.h41 static int Parse(int argc, char *const argv[], llvm::StringRef optstring,
/freebsd-12.1/bin/sh/
H A Doptions.c565 nextopt(const char *optstring) in nextopt() argument
580 for (q = optstring ; *q != c ; ) { in nextopt()
/freebsd-12.1/usr.sbin/usbdump/
H A Dusbdump.c828 const char *optstring; in main() local
831 optstring = "b:hi:r:s:vw:f:"; in main()
832 while ((o = getopt(argc, argv, optstring)) != -1) { in main()
/freebsd-12.1/usr.sbin/kbdcontrol/
H A Dkbdcontrol.c1219 const char *optstring = "A:a:b:df:iKk:Fl:L:P:r:x"; in main() local
1223 while ((opt = getopt(argc, argv, optstring)) != -1) in main()
1228 while ((opt = getopt(argc, argv, optstring)) != -1) in main()
/freebsd-12.1/contrib/wpa/src/utils/
H A Dcommon.c381 int getopt(int argc, char *const argv[], const char *optstring) in getopt() argument
405 cp = os_strchr(optstring, optopt); in getopt()
H A Dcommon.h372 int getopt(int argc, char *const argv[], const char *optstring);
/freebsd-12.1/usr.sbin/bsdconfig/share/
H A Dcommon.subr80 # Define standard optstring arguments that should be supported by all programs
94 # following variable can be appended to your optstring argument to getopts,