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

123

/freebsd-11-stable/contrib/gcclibs/libiberty/
H A Dgetopt1.c71 const struct option *long_options, int *opt_index)
73 return _getopt_internal (argc, argv, options, long_options, opt_index, 0);
83 const struct option *long_options, int *opt_index)
85 return _getopt_internal (argc, argv, options, long_options, opt_index, 1);
106 static struct option long_options[] =
118 long_options, &option_index);
125 printf ("option %s", long_options[option_index].name);
69 getopt_long(int argc, char *const *argv, const char *options, const struct option *long_options, int *opt_index) argument
81 getopt_long_only(int argc, char *const *argv, const char *options, const struct option *long_options, int *opt_index) argument
104 static struct option long_options[] = local
/freebsd-11-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-11-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
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-11-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-11-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-11-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...]
/freebsd-11-stable/contrib/llvm-project/lldb/include/lldb/Host/
H A DOptionParser.h50 static std::string GetShortOptionString(struct option *long_options);
/freebsd-11-stable/contrib/llvm-project/lldb/source/Interpreter/
H A DOptions.cpp945 static std::string BuildShortOptions(const Option *long_options) { argument
953 for (size_t i = 0; long_options[i].definition != nullptr; ++i) {
954 if (long_options[i].flag == nullptr) {
955 sstr << (char)long_options[i].val;
956 switch (long_options[i].definition->option_has_arg) {
975 Option *long_options = GetLongOptions(); local
977 if (long_options == nullptr) {
982 std::string short_options = BuildShortOptions(long_options);
992 val = OptionParser::Parse(argv, short_options, long_options,
1015 for (int j = 0; long_options[
1104 Option *long_options = GetLongOptions(); local
1293 Option *long_options = GetLongOptions(); local
[all...]
/freebsd-11-stable/contrib/groff/src/utils/lkbib/
H A Dlkbib.cpp50 static const struct option long_options[] = { local
55 while ((opt = getopt_long(argc, argv, "nvVi:t:p:", long_options, NULL))
/freebsd-11-stable/contrib/groff/src/utils/lookbib/
H A Dlookbib.cpp55 static const struct option long_options[] = { local
60 while ((opt = getopt_long(argc, argv, "vVi:t:", long_options, NULL)) != EOF)
/freebsd-11-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);
/freebsd-11-stable/contrib/binutils/binutils/
H A Dcxxfilt.c36 static const struct option long_options[] = variable in typeref:struct:option
183 while ((c = getopt_long (argc, argv, "_hinps:tv", long_options, (int *) 0)) != EOF)
H A Daddr2line.c49 static struct option long_options[] = variable in typeref:struct:option
348 while ((c = getopt_long (argc, argv, "b:Ce:sfHhij:Vv", long_options, (int *) 0))
H A Dcoffdump.c480 static struct option long_options[] = local
501 while ((opt = getopt_long (ac, av, "HhVv", long_options,
H A Dsize.c109 static struct option long_options[] =
145 while ((c = getopt_long (argc, argv, "ABHhVvdfotx", long_options,
107 static struct option long_options[] = variable in typeref:struct:option
/freebsd-11-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-11-stable/contrib/groff/src/utils/pfbtops/
H A Dpfbtops.c169 static const struct option long_options[] = { local
177 while ((opt = getopt_long(argc, argv, "v", long_options, NULL)) != EOF) {
/freebsd-11-stable/contrib/groff/src/preproc/soelim/
H A Dsoelim.cpp55 static const struct option long_options[] = { local
60 while ((opt = getopt_long(argc, argv, "CI:rtv", long_options, NULL)) != EOF)
/freebsd-11-stable/usr.bin/iconv/
H A Diconv.c50 static const struct option long_options[] = { variable in typeref:struct:option
171 long_options, NULL)) != -1) {
/freebsd-11-stable/contrib/gdb/gdb/
H A Dmain.c254 static struct option long_options[] = local
322 long_options, &option_index);
327 if (c == 0 && long_options[option_index].flag == 0)
328 c = long_options[option_index].val;
/freebsd-11-stable/contrib/groff/src/utils/xtotroff/
H A Dxtotroff.c229 static const struct option long_options[] = { local
237 while ((opt = getopt_long(argc, argv, "gr:s:v", long_options,
/freebsd-11-stable/contrib/groff/src/preproc/eqn/
H A Dmain.cpp263 static const struct option long_options[] = { local
268 while ((opt = getopt_long(argc, argv, "DCRvd:f:p:s:m:T:M:rN", long_options,
/freebsd-11-stable/contrib/binutils/opcodes/
H A Di386-gen.c325 struct option long_options[] = variable in typeref:struct:option
359 while ((c = getopt_long (argc, argv, "vVdh", long_options, 0)) != EOF)
/freebsd-11-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)) {

Completed in 270 milliseconds

123