Searched refs:optind (Results 1 - 25 of 258) sorted by relevance

1234567891011

/haiku-fatelf/src/bin/gdb/gdb/mi/
H A Dmi-getopt.c30 int *optind, char **optarg)
35 if (*optind > argc || *optind < 0)
37 "mi_getopt_long: optind out of bounds");
38 if (*optind == argc)
40 arg = argv[*optind];
44 *optind += 1;
62 if (argc < *optind + 2)
64 *optarg = argv[(*optind) + 1];
65 *optind
27 mi_getopt(const char *prefix, int argc, char **argv, struct mi_opt *opts, int *optind, char **optarg) argument
81 int optind = 0; local
[all...]
H A Dmi-getopt.h46 struct mi_opt *opt, int *optind, char **optarg);
H A Dmi-cmd-break.c98 int optind = 0; local
102 int opt = mi_getopt ("mi_cmd_break_insert", argc, argv, opts, &optind, &optarg);
130 if (optind >= argc)
132 if (optind < argc - 1)
134 address = argv[optind];
201 int optind = 0; local
205 int opt = mi_getopt ("mi_cmd_break_watch", argc, argv, opts, &optind, &optarg);
218 if (optind >= argc)
220 if (optind < argc - 1)
222 expr = argv[optind];
[all...]
/haiku-fatelf/src/bin/bc/lib/
H A Dgetopt.c100 Otherwise, `optind' communicates from one call to the next
104 int optind = 0;
153 `--' can cause `getopt' to return EOF with `optind' != ARGC. */
219 The other is elements [last_nonopt,optind), which contains all
231 int top = optind;
277 first_nonopt += (optind - last_nonopt);
278 last_nonopt = optind;
291 first_nonopt = last_nonopt = optind = 1;
328 updating `optind' and `nextchar' so that the next call to `getopt' can
332 Then `optind' i
103 int optind = 0; variable
[all...]
H A Dgetopt1.c108 int this_option_optind = optind ? optind : 1;
175 if (optind < argc)
178 while (optind < argc)
179 printf ("%s ", argv[optind++]);
/haiku-fatelf/src/bin/sharutils/lib/
H A Dgetopt.c100 Otherwise, `optind' communicates from one call to the next
104 int optind = 0;
153 `--' can cause `getopt' to return EOF with `optind' != ARGC. */
219 The other is elements [last_nonopt,optind), which contains all
231 int top = optind;
277 first_nonopt += (optind - last_nonopt);
278 last_nonopt = optind;
291 first_nonopt = last_nonopt = optind = 1;
328 updating `optind' and `nextchar' so that the next call to `getopt' can
332 Then `optind' i
103 int optind = 0; variable
[all...]
/haiku-fatelf/src/bin/gzip/
H A Dgetopt.c99 Otherwise, `optind' communicates from one call to the next
103 int optind = 0;
153 `--' can cause `getopt' to return EOF with `optind' != ARGC. */
224 The other is elements [last_nonopt,optind), which contains all
250 /* Reverse all the elements [first_nonopt, optind) */
252 last = &argv[optind-1];
258 first_nonopt += (optind - last_nonopt);
266 last_nonopt = optind;
284 updating `optind' and `nextchar' so that the next call to `getopt' can
288 Then `optind' i
102 int optind = 0; variable
[all...]
/haiku-fatelf/src/tools/stubgen/
H A Dgetopt.c122 Otherwise, `optind' communicates from one call to the next
126 int optind = 0;
175 `--' can cause `getopt' to return EOF with `optind' != ARGC. */
247 The other is elements [last_nonopt,optind), which contains all
263 int top = optind;
309 first_nonopt += (optind - last_nonopt);
310 last_nonopt = optind;
326 first_nonopt = last_nonopt = optind = 1;
378 updating `optind' and `nextchar' so that the next call to `getopt' can
382 Then `optind' i
125 int optind = 0; variable
[all...]
/haiku-fatelf/src/bin/diffutils/lib/
H A Dgetopt.c124 Otherwise, `optind' communicates from one call to the next
128 int optind = 1;
130 /* Formerly, initialization of getopt depended on optind==0, which
183 `--' can cause `getopt' to return -1 with `optind' != ARGC. */
303 The other is elements [last_nonopt,optind), which contains all
319 int top = optind;
389 first_nonopt += (optind - last_nonopt);
390 last_nonopt = optind;
408 first_nonopt = last_nonopt = optind;
475 updating `optind' an
127 int optind = 1; variable
[all...]
H A Dgetopt1.c111 int this_option_optind = optind ? optind : 1;
178 if (optind < argc)
181 while (optind < argc)
182 printf ("%s ", argv[optind++]);
/haiku-fatelf/src/bin/gdb/libiberty/
H A Dgetopt.c127 Otherwise, `optind' communicates from one call to the next
131 int optind = 1;
133 /* Formerly, initialization of getopt depended on optind==0, which
186 `--' can cause `getopt' to return -1 with `optind' != ARGC. */
302 The other is elements [last_nonopt,optind), which contains all
318 int top = optind;
388 first_nonopt += (optind - last_nonopt);
389 last_nonopt = optind;
407 first_nonopt = last_nonopt = optind;
474 updating `optind' an
130 int optind = 1; variable
[all...]
H A Dgetopt1.c114 int this_option_optind = optind ? optind : 1;
181 if (optind < argc)
184 while (optind < argc)
185 printf ("%s ", argv[optind++]);
/haiku-fatelf/src/bin/coreutils/src/
H A Dlink.c75 if (argc < optind + 2)
77 if (argc < optind + 1)
80 error (0, 0, _("missing operand after %s"), quote (argv[optind]));
84 if (optind + 2 < argc)
86 error (0, 0, _("extra operand %s"), quote (argv[optind + 2]));
90 if (link (argv[optind], argv[optind + 1]) != 0)
92 quote_n (0, argv[optind + 1]), quote_n (1, argv[optind]));
H A Denv.c109 if (optind < argc && STREQ (argv[optind], "-"))
118 optind = 0; /* Force GNU getopt to re-initialize. */
123 if (optind < argc && STREQ (argv[optind], "-"))
124 ++optind;
126 while (optind < argc && strchr (argv[optind], '='))
127 if (putenv (argv[optind++]))
129 char *name = argv[optind
[all...]
H A Dmknod.c140 expected_operands = (argc <= optind
141 || (optind + 1 < argc && argv[optind + 1][0] == 'p')
144 if (argc - optind < expected_operands)
146 if (argc <= optind)
150 if (expected_operands == 4 && argc - optind == 2)
156 if (expected_operands < argc - optind)
159 quote (argv[optind + expected_operands]));
160 if (expected_operands == 2 && argc - optind == 4)
174 switch (argv[optind
[all...]
H A Dhostname.c89 if (argc == optind + 1)
93 char const *name = argv[optind];
102 if (argc <= optind)
110 if (optind + 1 < argc)
112 error (0, 0, _("extra operand %s"), quote (argv[optind + 1]));
H A Dunlink.c74 if (argc < optind + 1)
80 if (optind + 1 < argc)
82 error (0, 0, _("extra operand %s"), quote (argv[optind + 1]));
86 if (unlink (argv[optind]) != 0)
87 error (EXIT_FAILURE, errno, _("cannot unlink %s"), quote (argv[optind]));
/haiku-fatelf/src/bin/network/tcpdump/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;
/haiku-fatelf/src/bin/network/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;
/haiku-fatelf/src/libs/pdflib/progs/pdflib/
H A Dgetopt.c45 optind = 1, /* index into parent argv vector */ variable
60 if (optind >= nargc || *(place = nargv[optind]) != '-') {
65 ++optind;
79 ++optind;
93 ++optind;
98 else if (nargc <= ++optind) { /* no arg */
111 optarg = nargv[optind];
113 ++optind;
/haiku-fatelf/src/bin/gawk/
H A Dgetopt.c132 Otherwise, `optind' communicates from one call to the next
136 int optind = 1;
138 /* Formerly, initialization of getopt depended on optind==0, which
191 `--' can cause `getopt' to return -1 with `optind' != ARGC. */
298 The other is elements [last_nonopt,optind), which contains all
314 int top = optind;
384 first_nonopt += (optind - last_nonopt);
385 last_nonopt = optind;
403 first_nonopt = last_nonopt = optind;
470 updating `optind' an
135 int optind = 1; variable
[all...]
H A Dgetopt1.c112 int this_option_optind = optind ? optind : 1;
179 if (optind < argc)
182 while (optind < argc)
183 printf ("%s ", argv[optind++]);
/haiku-fatelf/src/system/libroot/posix/glibc/extensions/
H A Dgetopt.c135 Otherwise, `optind' communicates from one call to the next
139 int optind = 1;
141 /* Formerly, initialization of getopt depended on optind==0, which
194 `--' can cause `getopt' to return -1 with `optind' != ARGC. */
301 The other is elements [last_nonopt,optind), which contains all
317 int top = optind;
387 first_nonopt += (optind - last_nonopt);
388 last_nonopt = optind;
406 first_nonopt = last_nonopt = optind;
473 updating `optind' an
138 int optind = 1; variable
[all...]
/haiku-fatelf/src/bin/coreutils/lib/
H A Dgetopt1.c94 int this_option_optind = optind ? optind : 1;
161 if (optind < argc)
164 while (optind < argc)
165 printf ("%s ", argv[optind++]);
/haiku-fatelf/src/bin/findutils/gnulib/lib/
H A Dgetopt1.c94 int this_option_optind = optind ? optind : 1;
161 if (optind < argc)
164 while (optind < argc)
165 printf ("%s ", argv[optind++]);

Completed in 143 milliseconds

1234567891011