Searched refs:long_options (Results 1 - 25 of 35) sorted by relevance

12

/freebsd-current/contrib/llvm-project/lldb/source/Host/common/
H A DOptionParser.cpp56 std::string OptionParser::GetShortOptionString(struct option *long_options) { argument
61 if (long_options[i].name == nullptr && long_options[i].has_arg == 0 &&
62 long_options[i].flag == nullptr && long_options[i].val == 0) {
65 if (long_options[i].flag == nullptr && isalpha(long_options[i].val)) {
66 s.append(1, (char)long_options[i].val);
67 switch (long_options[i].has_arg) {
H A DGetOptInc.cpp110 * Returns -1 if short_too is set and the option does not match long_options.
113 const struct option *long_options, int *idx,
131 for (i = 0; long_options[i].name; i++) {
133 if (strncmp(current_argv, long_options[i].name, current_argv_len))
136 if (strlen(long_options[i].name) == current_argv_len) {
159 if (long_options[match].has_arg == no_argument && has_equal) {
165 if (long_options[match].flag == NULL)
166 optopt = long_options[match].val;
171 if (long_options[match].has_arg == required_argument ||
172 long_options[matc
112 parse_long_options(char *const *nargv, const char *options, const struct option *long_options, int *idx, int short_too) argument
223 getopt_internal(int nargc, char *const *nargv, const char *options, const struct option *long_options, int *idx, int flags) argument
431 getopt_long(int nargc, char *const *nargv, const char *options, const struct option *long_options, int *idx) argument
443 getopt_long_only(int nargc, char *const *nargv, const char *options, const struct option *long_options, int *idx) argument
[all...]
/freebsd-current/contrib/tcpdump/missing/
H A Dgetopt_long.c206 * Returns -1 if short_too is set and the option does not match long_options.
210 const struct option *long_options, int *idx, int short_too, int flags)
249 for (i = 0; long_options[i].name; i++) {
251 if (strncmp(current_argv, long_options[i].name,
255 if (strlen(long_options[i].name) == current_argv_len) {
271 long_options[i].has_arg !=
272 long_options[match].has_arg ||
273 long_options[i].flag != long_options[match].flag ||
274 long_options[
209 parse_long_options(char * const *nargv, const char *options, const struct option *long_options, int *idx, int short_too, int flags) argument
376 getopt_internal(int nargc, char * const *nargv, const char *options, const struct option *long_options, int *idx, int flags) argument
617 getopt_long(int nargc, char * const *nargv, const char *options, const struct option *long_options, int *idx) argument
630 getopt_long_only(int nargc, char * const *nargv, const char *options, const struct option *long_options, int *idx) argument
[all...]
/freebsd-current/lib/libc/stdlib/
H A Dgetopt_long.c181 * Returns -1 if short_too is set and the option does not match long_options.
185 const struct option *long_options, int *idx, int short_too, int flags)
224 for (i = 0; long_options[i].name; i++) {
226 if (strncmp(current_argv, long_options[i].name,
230 if (strlen(long_options[i].name) == current_argv_len) {
246 long_options[i].has_arg !=
247 long_options[match].has_arg ||
248 long_options[i].flag != long_options[match].flag ||
249 long_options[
184 parse_long_options(char * const *nargv, const char *options, const struct option *long_options, int *idx, int short_too, int flags) argument
349 getopt_internal(int nargc, char * const *nargv, const char *options, const struct option *long_options, int *idx, int flags) argument
587 getopt_long(int nargc, char * const *nargv, const char *options, const struct option *long_options, int *idx) argument
600 getopt_long_only(int nargc, char * const *nargv, const char *options, const struct option *long_options, int *idx) argument
[all...]
/freebsd-current/contrib/ntp/sntp/libevent/WIN32-Code/
H A Dgetopt_long.c160 getopt_long(nargc, nargv, options, long_options, index)
164 const struct option * long_options;
171 _DIAGASSERT(long_options != NULL);
188 for (i = 0; long_options[i].name; i++) {
189 if (strncmp(current_argv, long_options[i].name, current_argv_len))
192 if (strlen(long_options[i].name) == current_argv_len) {
200 if (long_options[match].has_arg == required_argument ||
201 long_options[match].has_arg == optional_argument) {
207 if ((long_options[match].has_arg == required_argument)
225 if (long_options[matc
[all...]
/freebsd-current/contrib/libevent/WIN32-Code/
H A Dgetopt_long.c160 getopt_long(nargc, nargv, options, long_options, index)
164 const struct option * long_options;
171 _DIAGASSERT(long_options != NULL);
188 for (i = 0; long_options[i].name; i++) {
189 if (strncmp(current_argv, long_options[i].name, current_argv_len))
192 if (strlen(long_options[i].name) == current_argv_len) {
200 if (long_options[match].has_arg == required_argument ||
201 long_options[match].has_arg == optional_argument) {
207 if ((long_options[match].has_arg == required_argument)
225 if (long_options[matc
[all...]
/freebsd-current/contrib/libfido2/openbsd-compat/
H A Dgetopt_long.c164 * Returns -1 if short_too is set and the option does not match long_options.
168 const struct option *long_options, int *idx, int short_too)
186 for (i = 0; long_options[i].name; i++) {
188 if (strncmp(current_argv, long_options[i].name,
192 if (strlen(long_options[i].name) == current_argv_len) {
216 if (long_options[match].has_arg == no_argument
224 if (long_options[match].flag == NULL)
225 optopt = long_options[match].val;
230 if (long_options[match].has_arg == required_argument ||
231 long_options[matc
167 parse_long_options(char * const *nargv, const char *options, const struct option *long_options, int *idx, int short_too) argument
285 getopt_internal(int nargc, char * const *nargv, const char *options, const struct option *long_options, int *idx, int flags) argument
[all...]
/freebsd-current/crypto/openssh/openbsd-compat/
H A Dgetopt_long.c187 * Returns -1 if short_too is set and the option does not match long_options.
191 const struct option *long_options, int *idx, int short_too)
209 for (i = 0; long_options[i].name; i++) {
211 if (strncmp(current_argv, long_options[i].name,
215 if (strlen(long_options[i].name) == current_argv_len) {
239 if (long_options[match].has_arg == no_argument
247 if (long_options[match].flag == NULL)
248 optopt = long_options[match].val;
253 if (long_options[match].has_arg == required_argument ||
254 long_options[matc
190 parse_long_options(char * const *nargv, const char *options, const struct option *long_options, int *idx, int short_too) argument
308 getopt_internal(int nargc, char * const *nargv, const char *options, const struct option *long_options, int *idx, int flags) argument
[all...]
/freebsd-current/contrib/file/src/
H A Dgetopt_long.c356 getopt_long(nargc, nargv, options, long_options, idx)
360 const struct option *long_options;
366 (long_options[(_x)].has_arg == long_options[(_y)].has_arg && \
367 long_options[(_x)].flag == long_options[(_y)].flag && \
368 long_options[(_x)].val == long_options[(_y)].val)
372 _DIAGASSERT(long_options != NULL);
408 for (i = 0; long_options[
[all...]
/freebsd-current/contrib/llvm-project/lldb/include/lldb/Host/
H A DOptionParser.h50 static std::string GetShortOptionString(struct option *long_options);
/freebsd-current/contrib/llvm-project/lldb/source/Interpreter/
H A DOptions.cpp901 static std::string BuildShortOptions(const Option *long_options) {
909 for (size_t i = 0; long_options[i].definition != nullptr; ++i) {
910 if (long_options[i].flag == nullptr) {
911 sstr << (char)long_options[i].val;
912 switch (long_options[i].definition->option_has_arg) {
931 Option *long_options = GetLongOptions();
933 if (long_options == nullptr) {
938 std::string short_options = BuildShortOptions(long_options);
948 val = OptionParser::Parse(argv, short_options, long_options,
971 for (int j = 0; long_options[
[all...]
/freebsd-current/contrib/ofed/libibverbs/examples/
H A Dasyncwatch.c102 static struct option long_options[] = { local
108 c = getopt_long(argc, argv, "d:h", long_options, NULL);
H A Ddevinfo.c605 static struct option long_options[] = { local
613 c = getopt_long(argc, argv, "d:i:lv", long_options, NULL);
H A Dud_pingpong.c584 static struct option long_options[] = { local
598 long_options, NULL);
H A Duc_pingpong.c562 static struct option long_options[] = { local
577 long_options, NULL);
/freebsd-current/contrib/kyua/utils/cmdline/
H A Dparser.cpp64 utils::auto_array< ::option > long_options; member in struct:__anon917::getopt_data
81 data.long_options.reset(new ::option[options.size() + 1]);
87 ::option& long_option = data.long_options[i];
109 ::option& last_long_option = data.long_options[options.size()];
189 for (const ::option* opt = &data.long_options[0]; opt->name != NULL;
340 data.long_options.get(), NULL)) != -1) {
H A Dparser_test.cpp190 struct ::option long_options[] = { local
209 while ((opt = ::getopt_long(argc, argv, "+:", long_options, NULL)) != -1) {
/freebsd-current/usr.bin/dc/
H A Ddc.c44 static const struct option long_options[] = variable in typeref:struct:option
87 while ((ch = getopt_long(argc, argv, "e:f:hVx", long_options, NULL)) != -1) {
/freebsd-current/usr.bin/iconv/
H A Diconv.c50 static const struct option long_options[] = { variable in typeref:struct:option
171 long_options, NULL)) != -1) {
/freebsd-current/tools/test/iconv/tablegen/
H A Dtablegen.c77 struct option long_options[] = variable in typeref:struct:option
203 while (((c = getopt_long(argc, argv, optstr, long_options, NULL)) != -1)) {
/freebsd-current/usr.bin/xargs/
H A Dxargs.c92 static const struct option long_options[] = variable in typeref:struct:option
145 while ((ch = getopt_long(argc, argv, optstr, long_options, NULL)) != -1)
/freebsd-current/contrib/diff/src/
H A Dcmp.c95 static struct option const long_options[] =
210 while ((c = getopt_long (argc, argv, "bci:ln:sv", long_options, 0))
94 static struct option const long_options[] = variable
/freebsd-current/usr.bin/grep/
H A Dgrep.c154 static const struct option long_options[] = variable in typeref:struct:option
384 while (((c = getopt_long(aargc, aargv, optstr, long_options, NULL)) !=
/freebsd-current/usr.bin/du/
H A Ddu.c77 static const struct option long_options[] = variable in typeref:struct:option
116 long_options, NULL)) != -1)
/freebsd-current/sys/contrib/openzfs/cmd/zpool_influxdb/
H A Dzpool_influxdb.c787 struct option long_options[] = { local
797 argc, argv, "ehinst:", long_options, NULL)) != -1) {

Completed in 375 milliseconds

12