Home
last modified time | relevance | path

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

12

/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/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/bison/lib/
Dgetopt1.c41 const struct option *long_options, int *opt_index) in getopt_long() argument
43 return _getopt_internal (argc, (char **) argv, options, long_options, in getopt_long()
49 const struct option *long_options, int *opt_index, in _getopt_long_r() argument
52 return _getopt_internal_r (argc, argv, options, long_options, opt_index, in _getopt_long_r()
64 const struct option *long_options, int *opt_index) in getopt_long_only() argument
66 return _getopt_internal (argc, (char **) argv, options, long_options, in getopt_long_only()
72 const struct option *long_options, int *opt_index, in _getopt_long_only_r() argument
75 return _getopt_internal_r (argc, argv, options, long_options, opt_index, in _getopt_long_only_r()
94 static const struct option long_options[] = in main() local
106 long_options, &option_index); in main()
[all …]
/external/gptfdisk/
Dandroid_popt.cc32 struct option *long_options = (struct option *) in poptGetContext() local
35 long_options[i].name = options[i].longName; in poptGetContext()
36 long_options[i].flag = 0; in poptGetContext()
42 long_options[i].val = options[i].val; in poptGetContext()
46 long_options[i].has_arg = no_argument; in poptGetContext()
54 long_options[i].has_arg = required_argument; in poptGetContext()
66 con->long_options = long_options; in poptGetContext()
71 free(con->long_options); in poptFreeContext()
97 con->long_options, &i); in poptGetNextOpt()
Dpopt.h51 struct option *long_options; member
/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/tlsdate/src/
Dtlsdate.c135 static struct option long_options[] = in main() local
154 long_options, &option_index); 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/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()
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/bin/
Dglacier131 long_options = ['access_key=', 'secret_key=', 'region=']
133 opts, args = getopt(argv, options, long_options)
/external/libmtp/examples/
Dconnect.c112 static struct option long_options[] = { in main() local
121 int c = getopt_long (argc, argv, "d:f:g:n:t:", long_options, &option_index); in main()
/external/autotest/client/site_tests/camera_V4L2/src/
Dmedia_v4l2_test.cc31 long_options[] = { variable
60 int32_t c = getopt_long(argc, argv, short_options, long_options, &index); in main()
Dmedia_v4l2_unittest.cc245 static const struct option long_options[] = { variable
258 int32_t c = getopt_long(argc, argv, short_options, long_options, &index); in main()
/external/avahi/avahi-utils/
Davahi-set-host-name.c83 static const struct option long_options[] = { in parse_command_line() local
95 while ((o = getopt_long(argc, argv, "hVv", long_options, NULL)) >= 0) { in parse_command_line()
Davahi-resolve.c173 static const struct option long_options[] = { in parse_command_line() local
188 while ((o = getopt_long(argc, argv, "hVnav46", long_options, NULL)) >= 0) { in parse_command_line()
Davahi-publish.c239 static const struct option long_options[] = { in parse_command_line() local
261 while ((o = getopt_long(argc, argv, "hVsavRd:H:f", long_options, NULL)) >= 0) { in parse_command_line()
/external/rmi4utils/rmi4update/
Dmain.cpp108 static struct option long_options[] = { in main() local
122 while ((opt = getopt_long(argc, argv, RMI4UPDATE_GETOPTS, long_options, &index)) != -1) { in main()
/external/libmicrohttpd/src/examples/
Dmhd2spdy.c260 struct option long_options[] = { in main() local
271 getopt_ret = getopt_long( argc, argv, "p:b:vos", long_options, &option_index); in main()
/external/avahi/avahi-ui/
Dbssh.c67 static const struct option long_options[] = { in parse_command_line() local
76 while ((o = getopt_long(argc, argv, "hVd:svS", long_options, NULL)) >= 0) { in parse_command_line()
/external/selinux/checkpolicy/
Dcheckmodule.c154 struct option long_options[] = { in main() local
165 while ((ch = getopt_long(argc, argv, "ho:bVU:mMC", long_options, NULL)) != -1) { in main()
/external/rmi4utils/rmihidtool/
Dmain.cpp208 static struct option long_options[] = { in main() local
236 while ((opt = getopt_long(argc, argv, RMI4UPDATE_GETOPTS, long_options, &index)) != -1) { in main()
/external/bison/src/
Dgetargs.c527 static struct option const long_options[] = variable
601 while ((c = getopt_long (argc, argv, short_options, long_options, NULL)) in getargs()
/external/autotest/client/tests/signaltest/src/
Dsignaltest.c235 static struct option long_options[] = { in process_options() local
247 long_options, &option_index); in process_options()
/external/fio/
Doptions.c3643 struct option *long_options, in options_to_lopts() argument
3648 add_to_lopt(&long_options[i], o, o->name, option_type); in options_to_lopts()
3651 add_to_lopt(&long_options[i], o, o->alias, option_type); in options_to_lopts()
3660 void fio_options_set_ioengine_opts(struct option *long_options, in fio_options_set_ioengine_opts() argument
3666 while (long_options[i].name) { in fio_options_set_ioengine_opts()
3667 if (long_options[i].val == FIO_GETOPT_IOENGINE) { in fio_options_set_ioengine_opts()
3668 memset(&long_options[i], 0, sizeof(*long_options)); in fio_options_set_ioengine_opts()
3680 options_to_lopts(td->io_ops->options, long_options, i, in fio_options_set_ioengine_opts()
3684 void fio_options_dup_and_init(struct option *long_options) in fio_options_dup_and_init() argument
3691 while (long_options[i].name) in fio_options_dup_and_init()
[all …]
/external/avahi/avahi-dnsconfd/
Dmain.c389 static const struct option long_options[] = { in parse_command_line() local
400 while ((c = getopt_long(argc, argv, "hDkVrcs", long_options, NULL)) >= 0) { in parse_command_line()

12