Home
last modified time | relevance | path

Searched refs:long_options (Results 1 – 25 of 85) sorted by relevance

1234

/external/tcpdump/missing/
Dgetopt_long.c190 const struct option *long_options, int *idx, int short_too, int flags) in parse_long_options() argument
229 for (i = 0; long_options[i].name; i++) { in parse_long_options()
231 if (strncmp(current_argv, long_options[i].name, in parse_long_options()
235 if (strlen(long_options[i].name) == current_argv_len) { in parse_long_options()
251 long_options[i].has_arg != in parse_long_options()
252 long_options[match].has_arg || in parse_long_options()
253 long_options[i].flag != long_options[match].flag || in parse_long_options()
254 long_options[i].val != long_options[match].val) in parse_long_options()
270 if (long_options[match].has_arg == no_argument in parse_long_options()
282 if (long_options[match].flag == NULL) in parse_long_options()
[all …]
/external/openssh/openbsd-compat/
Dgetopt_long.c177 const struct option *long_options, int *idx, int short_too) in parse_long_options() argument
195 for (i = 0; long_options[i].name; i++) { in parse_long_options()
197 if (strncmp(current_argv, long_options[i].name, in parse_long_options()
201 if (strlen(long_options[i].name) == current_argv_len) { in parse_long_options()
225 if (long_options[match].has_arg == no_argument in parse_long_options()
233 if (long_options[match].flag == NULL) in parse_long_options()
234 optopt = long_options[match].val; in parse_long_options()
239 if (long_options[match].has_arg == required_argument || in parse_long_options()
240 long_options[match].has_arg == optional_argument) { in parse_long_options()
243 else if (long_options[match].has_arg == in parse_long_options()
[all …]
/external/mesa3d/src/getopt/
Dgetopt_long.c160 const struct option *long_options, int *idx, int short_too) in parse_long_options() argument
178 for (i = 0; long_options[i].name; i++) { in parse_long_options()
180 if (strncmp(current_argv, long_options[i].name, in parse_long_options()
184 if (strlen(long_options[i].name) == current_argv_len) { in parse_long_options()
208 if (long_options[match].has_arg == no_argument in parse_long_options()
216 if (long_options[match].flag == NULL) in parse_long_options()
217 optopt = long_options[match].val; in parse_long_options()
222 if (long_options[match].has_arg == required_argument || in parse_long_options()
223 long_options[match].has_arg == optional_argument) { in parse_long_options()
226 else if (long_options[match].has_arg == in parse_long_options()
[all …]
/external/llvm-project/lldb/source/Host/common/
DGetOptInc.cpp113 const struct option *long_options, int *idx, in parse_long_options() argument
131 for (i = 0; long_options[i].name; i++) { in parse_long_options()
133 if (strncmp(current_argv, long_options[i].name, current_argv_len)) in parse_long_options()
136 if (strlen(long_options[i].name) == current_argv_len) { in parse_long_options()
159 if (long_options[match].has_arg == no_argument && has_equal) { in parse_long_options()
165 if (long_options[match].flag == NULL) in parse_long_options()
166 optopt = long_options[match].val; in parse_long_options()
171 if (long_options[match].has_arg == required_argument || in parse_long_options()
172 long_options[match].has_arg == optional_argument) { in parse_long_options()
175 else if (long_options[match].has_arg == required_argument) { in parse_long_options()
[all …]
DOptionParser.cpp56 std::string OptionParser::GetShortOptionString(struct option *long_options) { in GetShortOptionString() argument
61 if (long_options[i].name == nullptr && long_options[i].has_arg == 0 && in GetShortOptionString()
62 long_options[i].flag == nullptr && long_options[i].val == 0) { in GetShortOptionString()
65 if (long_options[i].flag == nullptr && isalpha(long_options[i].val)) { in GetShortOptionString()
66 s.append(1, (char)long_options[i].val); in GetShortOptionString()
67 switch (long_options[i].has_arg) { in GetShortOptionString()
/external/libevent/WIN32-Code/
Dgetopt_long.c160 getopt_long(nargc, nargv, options, long_options, index) in getopt_long() argument
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[match].flag) {
[all …]
/external/libwebsockets/win32port/win32helpers/
Dgetopt_long.c167 getopt_long(nargc, nargv, options, long_options, index) in getopt_long() argument
171 struct option * long_options;
178 _DIAGASSERT(long_options != NULL);
194 for (i = 0; long_options[i].name; i++) {
195 if (strncmp(current_argv, long_options[i].name, current_argv_len))
198 if (strlen(long_options[i].name) == (unsigned)current_argv_len) {
206 if (long_options[match].has_arg == required_argument ||
207 long_options[match].has_arg == optional_argument) {
213 if ((long_options[match].has_arg == required_argument)
231 if (long_options[match].flag) {
[all …]
/external/libusb/msvc/getopt/
Dgetopt1.c67 getopt_long (argc, argv, options, long_options, opt_index) in getopt_long() argument
71 const struct option *long_options;
74 return _getopt_internal (argc, argv, options, long_options, opt_index, 0);
83 getopt_long_only (argc, argv, options, long_options, opt_index) in getopt_long_only() argument
87 const struct option *long_options;
90 return _getopt_internal (argc, argv, options, long_options, opt_index, 1);
112 static struct option long_options[] = local
124 long_options, &option_index);
131 printf ("option %s", long_options[option_index].name);
/external/flac/src/share/getopt/
Dgetopt1.c83 share__getopt_long (argc, argv, options, long_options, opt_index) in share__getopt_long() argument
87 const struct share__option *long_options;
90 return share___getopt_internal (argc, argv, options, long_options, opt_index, 0);
99 share__getopt_long_only (argc, argv, options, long_options, opt_index) in share__getopt_long_only() argument
103 const struct share__option *long_options;
106 return share___getopt_internal (argc, argv, options, long_options, opt_index, 1);
128 static struct share__option long_options[] = local
140 long_options, &option_index);
147 printf ("option %s", long_options[option_index].name);
/external/gptfdisk/
Dandroid_popt.cc34 struct option *long_options = (struct option *) in poptGetContext() local
37 long_options[i].name = options[i].longName; in poptGetContext()
38 long_options[i].flag = 0; in poptGetContext()
44 long_options[i].val = options[i].val; in poptGetContext()
48 long_options[i].has_arg = no_argument; in poptGetContext()
56 long_options[i].has_arg = required_argument; in poptGetContext()
68 con->long_options = long_options; in poptGetContext()
73 free(con->long_options); in poptFreeContext()
99 con->long_options, &i); in poptGetNextOpt()
/external/igt-gpu-tools/lib/tests/
Digt_conflicting_args.c37 static struct option long_options[2]; variable
65 igt_subtest_init_parse_opts(&argc, argv, short_options, long_options, in do_fork()
74 long_options[0] = (struct option) { "iterations", required_argument, NULL, 'i'}; in main()
79 long_options[0] = (struct option) { "iterations", required_argument, NULL, 'i'}; in main()
84 long_options[0] = (struct option) { "help", required_argument, NULL, 'i'}; in main()
89 long_options[0] = (struct option) { "iterations", required_argument, NULL, 'h'}; in main()
94 long_options[0] = (struct option) { "iterations", required_argument, NULL, 500}; in main()
/external/zstd/tests/regression/
Dtest.c87 static struct option long_options[] = { variable
98 static size_t const nargs = sizeof(long_options) / sizeof(long_options[0]);
133 size_t const nargs = sizeof(long_options) / sizeof(long_options[0]); in print_help()
135 if (long_options[i].val < 128) { in print_help()
140 long_options[i].name, in print_help()
141 long_options[i].val, in print_help()
149 long_options[i].name, in print_help()
162 c = getopt_long(argc, argv, short_options, long_options, &option_index); in parse_args()
197 long_options[i].name); in parse_args()
/external/llvm-project/lldb/source/Interpreter/
DOptions.cpp944 static std::string BuildShortOptions(const Option *long_options) { in BuildShortOptions() argument
952 for (size_t i = 0; long_options[i].definition != nullptr; ++i) { in BuildShortOptions()
953 if (long_options[i].flag == nullptr) { in BuildShortOptions()
954 sstr << (char)long_options[i].val; in BuildShortOptions()
955 switch (long_options[i].definition->option_has_arg) { in BuildShortOptions()
974 Option *long_options = GetLongOptions(); in ParseAlias() local
976 if (long_options == nullptr) { in ParseAlias()
981 std::string short_options = BuildShortOptions(long_options); in ParseAlias()
991 val = OptionParser::Parse(argv, short_options, long_options, in ParseAlias()
1014 for (int j = 0; long_options[j].definition || long_options[j].flag || in ParseAlias()
[all …]
/external/iproute2/tipc/
Dtipc.c54 struct option long_options[] = { in main() local
72 i = getopt_long(argc, argv, "h", long_options, &option_index); in main()
/external/perfetto/src/perfetto_cmd/
Dtrigger_perfetto.cc42 static const option long_options[] = {{"help", no_argument, nullptr, 'h'}, in TriggerPerfettoMain() local
62 int option = getopt_long(argc, argv, "h", long_options, nullptr); in TriggerPerfettoMain()
/external/perfetto/src/traced/probes/
Dprobes.cc45 static const option long_options[] = { in ProbesMain() local
52 int option = getopt_long(argc, argv, "", long_options, nullptr); in ProbesMain()
/external/perfetto/src/profiling/memory/
Dmain.cc64 static option long_options[] = { in HeapprofdMain() local
68 while ((c = getopt_long(argc, argv, "", long_options, nullptr)) != -1) { in HeapprofdMain()
/external/adhd/cras/src/server/
Dcras.c21 static struct option long_options[] = { variable
51 c = getopt_long(argc, argv, "", long_options, &option_index); in main()
/external/llvm-project/llvm/utils/lit/lit/builtin_commands/
Dcat.py34 long_options = ["show-nonprinting"]
38 options, filenames = getopt.gnu_getopt(arguments, short_options, long_options)
/external/minijail/
Dparse_seccomp_policy.cc51 const struct option long_options[] = { in main() local
60 while ((opt = getopt_long(argc, argv, optstring, long_options, NULL)) != -1) { in main()
/external/marisa-trie/tools/
Dmarisa-reverse-lookup.cc81 ::cmdopt_option long_options[] = { in main()
88 ::cmdopt_init(&cmdopt, argc, argv, "mrh", long_options); in main()
Dmarisa-lookup.cc81 ::cmdopt_option long_options[] = { in main()
88 ::cmdopt_init(&cmdopt, argc, argv, "mrh", long_options); in main()
/external/rootdev/
Dmain.c57 static const struct option long_options[] = { in parse_args() local
70 c = getopt_long_only(argc, argv, "", long_options, &option_index); in parse_args()
/external/mesa3d/src/compiler/spirv/
Dspirv2nir.c88 static struct option long_options[] = in main() local
96 while ((ch = getopt_long(argc, argv, "hs:e:", long_options, NULL)) != -1) in main()
/external/rmi4utils/f54test/
Dmain.cpp106 static struct option long_options[] = { in main() local
120 while ((opt = getopt_long(argc, argv, F54TEST_GETOPTS, long_options, &index)) != -1) { in main()

1234