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

12

/external/c-ares/
H A Dares_getopt.h37 #undef optind macro
43 #define optind ares_optind macro
49 extern int optind;
H A Dares_getopt.c52 optind = 1; /* index into parent argv vector */ variable
73 if (optind >= nargc || *(place = nargv[optind]) != '-') {
78 ++optind;
92 ++optind;
101 ++optind;
106 else if (nargc <= ++optind) { /* no arg */
117 optarg = nargv[optind];
119 ++optind;
/external/ltp/testcases/kernel/io/disktest/
H A DGetopt.c90 int optind; variable
177 optind = iArg++;
/external/syslinux/com32/include/
H A Dunistd.h33 __extern int optind, opterr, optopt; variable
/external/iproute2/tipc/
H A Dcmdl.h20 int optind; member in struct:cmdl
/external/libpcap/missing/
H A Dgetopt.c45 optind = 1, /* index into parent argv vector */ variable
77 if (optind >= nargc || *(place = nargv[optind]) != '-') {
82 ++optind;
96 ++optind;
105 ++optind;
110 else if (nargc <= ++optind) { /* no arg */
121 optarg = nargv[optind];
123 ++optind;
/external/syslinux/com32/lib/
H A Dgetopt.c12 int optind, opterr, optopt; variable
33 optind < 1 || optind > argc) {
34 /* optind doesn't match the current query */
37 optind = 1;
41 carg = argv[optind];
50 optind++;
55 /* Someone frobbed optind, change to new opt. */
67 optind++;
71 if (argv[optind
[all...]
H A Dgetopt_long.c17 int optind, opterr, optopt; variable
53 optind < 1 || optind > argc) {
54 /* optind doesn't match the current query */
57 optind = 1;
61 carg = argv[optind];
72 optind++;
96 if (!(optarg = argv[optind]))
98 optind++;
110 /* Someone frobbed optind, chang
[all...]
/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/oslib/
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++;
128 if (!(optarg = argv[optind]))
130 optind++;
142 /* Someone frobbed optind, chang
[all...]
/external/syslinux/gpxe/src/core/
H A Dexec.c41 int optind; variable
H A Dgetopt.c44 * @c optind is the index to the first element that is not an option.
46 int optind; variable
76 if ( optind >= argc )
78 arg = argv[optind];
87 optind++;
121 optind++;
182 optind++;
187 optind++;
226 const char *opttext = argv[optind];
233 if ( optind >
[all...]
/external/syslinux/libinstaller/getopt/
H A Dgetopt_long.c17 int optind, opterr, optopt; variable
53 optind < 1 || optind > argc) {
54 /* optind doesn't match the current query */
57 optind = 1;
61 carg = argv[optind];
72 optind++;
96 if (!(optarg = argv[optind]))
98 optind++;
110 /* Someone frobbed optind, chang
[all...]
/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/libusb/examples/getopt/
H A Dgetopt.c125 Otherwise, `optind' communicates from one call to the next
129 int optind = 1;
131 /* Formerly, initialization of getopt depended on optind==0, which
184 `--' can cause `getopt' to return -1 with `optind' != ARGC. */
296 The other is elements [last_nonopt,optind), which contains all
312 int top = optind;
382 first_nonopt += (optind - last_nonopt);
383 last_nonopt = optind;
401 first_nonopt = last_nonopt = optind;
468 updating `optind' an
128 int optind = 1; variable
[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/tcpdump/missing/
H A Dgetopt_long.c83 int optind, opterr = 1, optopt; variable
220 optind++;
301 optarg = nargv[optind++];
323 --optind;
328 --optind;
384 * XXX Some GNU programs (like cvs) set optind to 0 instead of
387 if (optind == 0)
388 optind = 1;
393 if (optind >= nargc) { /* end of argument vector */
398 optind, narg
[all...]
/external/ltp/pan/
H A Dltp-pan.c102 static struct collection *get_collection(char *file, int optind, int argc,
150 extern int optind;
356 coll = get_collection(filename, optind, argc, argv);
1167 static struct collection *get_collection(char *file, int optind, int argc, argument
1214 if (optind < argc) {
1219 for (i = 0; optind < argc; ++optind, ++i) {
1220 strncat(workstr, argv[optind], workstr_left);
1221 workstr_left = workstr_left - strlen(argv[optind]);
/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...]

Completed in 2994 milliseconds

12