/freebsd-13-stable/contrib/llvm-project/lldb/source/Host/common/ |
H A D | OptionParser.cpp | 55 std::string OptionParser::GetShortOptionString(struct option *long_options) { argument 60 if (long_options[i].name == nullptr && long_options[i].has_arg == 0 && 61 long_options[i].flag == nullptr && long_options[i].val == 0) { 64 if (long_options[i].flag == nullptr && isalpha(long_options[i].val)) { 65 s.append(1, (char)long_options[i].val); 66 switch (long_options[i].has_arg) {
|
H A D | GetOptInc.cpp | 110 * 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-13-stable/lib/libc/stdlib/ |
H A D | getopt_long.c | 189 * Returns -1 if short_too is set and the option does not match long_options. 193 const struct option *long_options, int *idx, int short_too, int flags) 232 for (i = 0; long_options[i].name; i++) { 234 if (strncmp(current_argv, long_options[i].name, 238 if (strlen(long_options[i].name) == current_argv_len) { 254 long_options[i].has_arg != 255 long_options[match].has_arg || 256 long_options[i].flag != long_options[match].flag || 257 long_options[ 192 parse_long_options(char * const *nargv, const char *options, const struct option *long_options, int *idx, int short_too, int flags) argument 357 getopt_internal(int nargc, char * const *nargv, const char *options, const struct option *long_options, int *idx, int flags) argument 595 getopt_long(int nargc, char * const *nargv, const char *options, const struct option *long_options, int *idx) argument 608 getopt_long_only(int nargc, char * const *nargv, const char *options, const struct option *long_options, int *idx) argument [all...] |
/freebsd-13-stable/contrib/tcpdump/missing/ |
H A D | getopt_long.c | 186 * Returns -1 if short_too is set and the option does not match long_options. 190 const struct option *long_options, int *idx, int short_too, int flags) 229 for (i = 0; long_options[i].name; i++) { 231 if (strncmp(current_argv, long_options[i].name, 235 if (strlen(long_options[i].name) == current_argv_len) { 251 long_options[i].has_arg != 252 long_options[match].has_arg || 253 long_options[i].flag != long_options[match].flag || 254 long_options[ 189 parse_long_options(char * const *nargv, const char *options, const struct option *long_options, int *idx, int short_too, int flags) argument 354 getopt_internal(int nargc, char * const *nargv, const char *options, const struct option *long_options, int *idx, int flags) argument 593 getopt_long(int nargc, char * const *nargv, const char *options, const struct option *long_options, int *idx) argument 606 getopt_long_only(int nargc, char * const *nargv, const char *options, const struct option *long_options, int *idx) argument [all...] |
/freebsd-13-stable/crypto/openssh/openbsd-compat/ |
H A D | getopt_long.c | 173 * Returns -1 if short_too is set and the option does not match long_options. 177 const struct option *long_options, int *idx, int short_too) 195 for (i = 0; long_options[i].name; i++) { 197 if (strncmp(current_argv, long_options[i].name, 201 if (strlen(long_options[i].name) == current_argv_len) { 225 if (long_options[match].has_arg == no_argument 233 if (long_options[match].flag == NULL) 234 optopt = long_options[match].val; 239 if (long_options[match].has_arg == required_argument || 240 long_options[matc 176 parse_long_options(char * const *nargv, const char *options, const struct option *long_options, int *idx, int short_too) argument 294 getopt_internal(int nargc, char * const *nargv, const char *options, const struct option *long_options, int *idx, int flags) argument [all...] |
/freebsd-13-stable/contrib/file/src/ |
H A D | getopt_long.c | 356 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...] |
H A D | file.c | 98 private const struct option long_options[] = { variable in typeref:struct:option 214 while ((c = getopt_long(argc, argv, OPTSTRING, long_options,
|
/freebsd-13-stable/contrib/llvm-project/lldb/include/lldb/Host/ |
H A D | OptionParser.h | 50 static std::string GetShortOptionString(struct option *long_options);
|
/freebsd-13-stable/contrib/llvm-project/lldb/source/Interpreter/ |
H A D | Options.cpp | 946 static std::string BuildShortOptions(const Option *long_options) { argument 954 for (size_t i = 0; long_options[i].definition != nullptr; ++i) { 955 if (long_options[i].flag == nullptr) { 956 sstr << (char)long_options[i].val; 957 switch (long_options[i].definition->option_has_arg) { 976 Option *long_options = GetLongOptions(); local 978 if (long_options == nullptr) { 983 std::string short_options = BuildShortOptions(long_options); 993 val = OptionParser::Parse(argv, short_options, long_options, 1016 for (int j = 0; long_options[ 1105 Option *long_options = GetLongOptions(); local 1294 Option *long_options = GetLongOptions(); local [all...] |
/freebsd-13-stable/contrib/ofed/libibverbs/examples/ |
H A D | asyncwatch.c | 102 static struct option long_options[] = { local 108 c = getopt_long(argc, argv, "d:h", long_options, NULL);
|
H A D | devinfo.c | 605 static struct option long_options[] = { local 613 c = getopt_long(argc, argv, "d:i:lv", long_options, NULL);
|
H A D | uc_pingpong.c | 562 static struct option long_options[] = { local 577 long_options, NULL);
|
H A D | ud_pingpong.c | 584 static struct option long_options[] = { local 598 long_options, NULL);
|
H A D | rc_pingpong.c | 718 static struct option long_options[] = { local 735 long_options, NULL);
|
/freebsd-13-stable/contrib/kyua/utils/cmdline/ |
H A D | parser.cpp | 64 utils::auto_array< ::option > long_options; member in struct:__anon993::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 D | parser_test.cpp | 190 struct ::option long_options[] = { local 209 while ((opt = ::getopt_long(argc, argv, "+:", long_options, NULL)) != -1) {
|
/freebsd-13-stable/usr.bin/dc/ |
H A D | dc.c | 46 static const struct option long_options[] = variable in typeref:struct:option 89 while ((ch = getopt_long(argc, argv, "e:f:hVx", long_options, NULL)) != -1) {
|
/freebsd-13-stable/usr.bin/iconv/ |
H A D | iconv.c | 52 static const struct option long_options[] = { variable in typeref:struct:option 166 long_options, NULL)) != -1) {
|
/freebsd-13-stable/tools/test/iconv/tablegen/ |
H A D | tablegen.c | 79 struct option long_options[] = variable in typeref:struct:option 205 while (((c = getopt_long(argc, argv, optstr, long_options, NULL)) != -1)) {
|
/freebsd-13-stable/usr.bin/xargs/ |
H A D | xargs.c | 104 static const struct option long_options[] = variable in typeref:struct:option 157 while ((ch = getopt_long(argc, argv, optstr, long_options, NULL)) != -1)
|
/freebsd-13-stable/contrib/diff/src/ |
H A D | cmp.c | 95 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-13-stable/usr.bin/du/ |
H A D | du.c | 90 static const struct option long_options[] = variable in typeref:struct:option 125 long_options, NULL)) != -1)
|
/freebsd-13-stable/usr.bin/grep/ |
H A D | grep.c | 157 static const struct option long_options[] = variable in typeref:struct:option 387 while (((c = getopt_long(aargc, aargv, optstr, long_options, NULL)) !=
|
/freebsd-13-stable/bin/df/ |
H A D | df.c | 104 static const struct option long_options[] = variable in typeref:struct:option 135 while ((ch = getopt_long(argc, argv, "+abcgHhiklmnPt:T,", long_options,
|
/freebsd-13-stable/sys/contrib/openzfs/cmd/zpool_influxdb/ |
H A D | zpool_influxdb.c | 786 struct option long_options[] = { local 796 argc, argv, "ehinst:", long_options, NULL)) != -1) {
|