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

12

/freebsd-13-stable/contrib/llvm-project/lldb/source/Host/common/
H A DOptionParser.cpp55 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 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-13-stable/lib/libc/stdlib/
H A Dgetopt_long.c189 * 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 Dgetopt_long.c186 * 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 Dgetopt_long.c173 * 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 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...]
H A Dfile.c98 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 DOptionParser.h50 static std::string GetShortOptionString(struct option *long_options);
/freebsd-13-stable/contrib/llvm-project/lldb/source/Interpreter/
H A DOptions.cpp946 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 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 Duc_pingpong.c562 static struct option long_options[] = { local
577 long_options, NULL);
H A Dud_pingpong.c584 static struct option long_options[] = { local
598 long_options, NULL);
H A Drc_pingpong.c718 static struct option long_options[] = { local
735 long_options, NULL);
/freebsd-13-stable/contrib/kyua/utils/cmdline/
H A Dparser.cpp64 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 Dparser_test.cpp190 struct ::option long_options[] = { local
209 while ((opt = ::getopt_long(argc, argv, "+:", long_options, NULL)) != -1) {
/freebsd-13-stable/usr.bin/dc/
H A Ddc.c46 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 Diconv.c52 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 Dtablegen.c79 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 Dxargs.c104 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 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-13-stable/usr.bin/du/
H A Ddu.c90 static const struct option long_options[] = variable in typeref:struct:option
125 long_options, NULL)) != -1)
/freebsd-13-stable/usr.bin/grep/
H A Dgrep.c157 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 Ddf.c104 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 Dzpool_influxdb.c786 struct option long_options[] = { local
796 argc, argv, "ehinst:", long_options, NULL)) != -1) {

Completed in 286 milliseconds

12