Searched defs:optind (Results 1 - 19 of 19) sorted by relevance

/external/libpcap/Win32/Src/
H A Dgetopt.c43 optind = 1, /* index into parent argv vector */ variable
72 if (optind >= nargc || *(place = nargv[optind]) != '-') {
77 ++optind;
91 ++optind;
100 ++optind;
105 else if (nargc <= ++optind) { /* no arg */
116 optarg = nargv[optind];
118 ++optind;
/external/tcpdump/win32/Src/
H A Dgetopt.c43 optind = 1, /* index into parent argv vector */ variable
68 if (optind >= nargc || *(place = nargv[optind]) != '-') {
73 ++optind;
87 ++optind;
96 ++optind;
101 else if (nargc <= ++optind) { /* no arg */
112 optarg = nargv[optind];
114 ++optind;
/external/bison/lib/
H A Dgetopt_int.h61 '--' can cause 'getopt' to return -1 with 'optind' != ARGC. */
74 int optind;
73 int optind; member in struct:_getopt_data
H A Dgetopt.in.h62 # undef optind macro
73 # define optind __GETOPT_ID (optind) macro
148 Otherwise, 'optind' communicates from one call to the next
151 extern int optind;
H A Dgetopt.c79 Otherwise, 'optind' communicates from one call to the next
83 int optind = 1;
140 The other is elements [last_nonopt,optind), which contains all
151 int top = d->optind;
221 d->__first_nonopt += (d->optind - d->__last_nonopt);
222 d->__last_nonopt = d->optind;
236 d->__first_nonopt = d->__last_nonopt = d->optind;
303 updating 'optind' and 'nextchar' so that the next call to 'getopt' can
307 Then 'optind' is the index in ARGV of the first ARGV-element
361 if (d->optind
82 int optind = 1; variable
[all...]
/external/bison/darwin-lib/
H A Dgetopt.h63 # undef optind macro
74 # define optind __GETOPT_ID (optind) macro
159 Otherwise, 'optind' communicates from one call to the next
162 extern int optind;
/external/fio/lib/
H A Dgetopt_long.c20 int optind = 0, opterr = 0, optopt = 0; variable
59 optind < 1 || optind > argc) {
60 /* optind doesn't match the current query */
63 optind = 1;
67 carg = argv[optind];
78 optind++;
102 if (!(optarg = argv[optind]))
104 optind++;
116 /* Someone frobbed optind, chang
[all...]
/external/marisa-trie/tools/
H A Dcmdopt.h37 int optind; // Index of the next argument. member in struct:cmdopt_t_
/external/marisa-trie/v0_1_5/tools/
H A Dcmdopt.h37 int optind; // Index of the next argument. member in struct:cmdopt_t_
/external/libunwind/tests/
H A Dtest-ptrace.c173 int status, pid, pending_sig, optind = 1, state = 1; local
187 while (argv[optind][0] == '-')
189 if (strcmp (argv[optind], "-v") == 0)
190 ++optind, verbose = 1;
191 else if (strcmp (argv[optind], "-i") == 0)
192 ++optind, trace_mode = INSTRUCTION; /* backtrace at each insn */
193 else if (strcmp (argv[optind], "-s") == 0)
194 ++optind, trace_mode = SYSCALL; /* backtrace at each syscall */
195 else if (strcmp (argv[optind], "-t") == 0)
198 ++optind, trace_mod
[all...]
/external/mesa3d/src/getopt/
H A Dgetopt_long.c59 int optind = 1; /* index into parent argv vector */ variable
169 optind++;
231 optarg = nargv[optind++];
250 --optind;
255 --optind;
301 * XXX Some GNU programs (like cvs) set optind to 0 instead of
304 if (optind == 0)
305 optind = optreset = 1;
313 if (optind >= nargc) { /* end of argument vector */
318 optind, narg
[all...]
/external/openssh/openbsd-compat/
H A Dgetopt_long.c59 * getopt opterr optind optopt optreset optarg are all in defines.h which is
76 int optind = 1; /* index into parent argv vector */ variable
186 optind++;
248 optarg = nargv[optind++];
267 --optind;
272 --optind;
305 * XXX Some GNU programs (like cvs) set optind to 0 instead of
308 if (optind == 0)
309 optind = optreset = 1;
330 if (optind >
[all...]
/external/wpa_supplicant_8/hostapd/src/utils/
H A Dcommon.c367 int optind = 1; variable
377 if (optind >= argc) {
382 if (argv[optind][0] != '-' || argv[optind][1] == '\0') {
388 if (os_strcmp(argv[optind], "--") == 0) {
390 optind++;
394 optopt = argv[optind][optchr];
397 if (argv[optind][++optchr] == '\0') {
399 optind++;
407 if (argv[optind][optch
[all...]
/external/wpa_supplicant_8/src/utils/
H A Dcommon.c367 int optind = 1; variable
377 if (optind >= argc) {
382 if (argv[optind][0] != '-' || argv[optind][1] == '\0') {
388 if (os_strcmp(argv[optind], "--") == 0) {
390 optind++;
394 optopt = argv[optind][optchr];
397 if (argv[optind][++optchr] == '\0') {
399 optind++;
407 if (argv[optind][optch
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/utils/
H A Dcommon.c367 int optind = 1; variable
377 if (optind >= argc) {
382 if (argv[optind][0] != '-' || argv[optind][1] == '\0') {
388 if (os_strcmp(argv[optind], "--") == 0) {
390 optind++;
394 optopt = argv[optind][optchr];
397 if (argv[optind][++optchr] == '\0') {
399 optind++;
407 if (argv[optind][optch
[all...]
/external/openssh/
H A Ddefines.h578 # undef optind macro
584 # define optind BSDoptind macro
/external/netperf/
H A Dnetlib.c272 optind = 1, /* index into parent argv vector */ variable
359 if (optind >= argc || *(place = argv[optind]) != '-' || !*++place) {
364 ++optind;
374 ++optind;
383 ++optind;
388 } else if (argc <= ++optind) {
394 optarg = argv[optind]; /* white space */
397 ++optind;
/external/mksh/src/
H A Dsh.h962 #undef optind macro
966 int optind; member in struct:__anon12861
970 unsigned int p; /* 0 or index into argv[optind - 1] */
/external/valgrind/perf/
H A Dtinycc.c21439 int optind;
21444 optind = 0;
21446 if (optind >= argc) {
21452 r = argv[optind++];
21457 optind--;
21484 if (optind >= argc)
21486 optarg = argv[optind++];
21636 return optind;
21644 int nb_objfiles, ret, optind;
21677 optind
21437 int optind; local
21642 int nb_objfiles, ret, optind; local
[all...]

Completed in 6955 milliseconds