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

1234567891011>>

/freebsd-10.0-release/contrib/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...]
H A Dmi-cmd-env.c119 int optind = 0; local
145 &optind, &optarg);
155 argv += optind;
156 argc -= optind;
191 int optind = 0; local
217 &optind, &optarg);
227 argv += optind;
228 argc -= optind;
/freebsd-10.0-release/contrib/top/
H A Dgetopt.c41 int optind = 1; variable
55 if(optind >= argc ||
56 argv[optind][0] != '-' || argv[optind][1] == '\0')
58 else if(strcmp(argv[optind], "--") == 0) {
59 optind++;
62 optopt = c = argv[optind][sp];
65 if(argv[optind][++sp] == '\0') {
66 optind++;
72 if(argv[optind][s
[all...]
/freebsd-10.0-release/lib/libstand/
H A Dgetopt.c41 optind = 1, /* index into parent argv vector */ variable
62 if (optind >= nargc || *(place = nargv[optind]) != '-') {
67 ++optind;
81 ++optind;
89 ++optind;
94 else if (nargc <= ++optind) { /* no arg */
103 optarg = nargv[optind];
105 ++optind;
/freebsd-10.0-release/usr.bin/getopt/
H A Dgetopt.c19 optind = 2; /* Past the program name and the option letters. */
33 for (; optind < argc; optind++)
34 printf(" %s", argv[optind]);
/freebsd-10.0-release/contrib/bmake/
H A Dgetopt.c54 optind = 1, /* index into parent argv vector */ variable
84 if (optind >= nargc || *(place = nargv[optind]) != '-') {
90 ++optind;
104 ++optind;
113 ++optind;
118 else if (nargc <= ++optind) { /* no arg */
129 optarg = nargv[optind];
131 ++optind;
170 if (optind < arg
[all...]
/freebsd-10.0-release/contrib/gcclibs/libiberty/
H A Dgetopt.c128 Otherwise, `optind' communicates from one call to the next
132 int optind = 1;
134 /* Formerly, initialization of getopt depended on optind==0, which
187 `--' can cause `getopt' to return -1 with `optind' != ARGC. */
309 The other is elements [last_nonopt,optind), which contains all
324 int top = optind;
394 first_nonopt += (optind - last_nonopt);
395 last_nonopt = optind;
412 first_nonopt = last_nonopt = optind;
479 updating `optind' an
131 int optind = 1; variable
[all...]
H A Dgetopt1.c104 int this_option_optind = optind ? optind : 1;
171 if (optind < argc)
174 while (optind < argc)
175 printf ("%s ", argv[optind++]);
/freebsd-10.0-release/crypto/heimdal/lib/roken/
H A Dgetopt.c48 ROKEN_LIB_VARIABLE int optind = 1; /* index into parent argv vector */ variable
66 if (optind >= nargc || *(place = nargv[optind]) != '-') {
71 ++optind;
85 ++optind;
99 ++optind;
104 else if (nargc <= ++optind) { /* no arg */
119 optarg = nargv[optind];
121 ++optind;
/freebsd-10.0-release/lib/libc/stdlib/
H A Dgetopt.c48 optind = 1, /* index into parent argv vector */ variable
72 place = nargv[optind];
73 if (optind >= nargc || *place++ != '-') {
81 ++optind;
99 ++optind;
112 ++optind;
118 else if (nargc > ++optind)
119 optarg = nargv[optind];
132 ++optind;
H A Dgetopt_long.c74 int optind = 1; /* index into parent argv vector */ variable
223 optind++;
304 optarg = nargv[optind++];
326 --optind;
331 --optind;
387 * XXX Some GNU programs (like cvs) set optind to 0 instead of
390 if (optind == 0)
391 optind = optreset = 1;
399 if (optind >= nargc) { /* end of argument vector */
404 optind, narg
[all...]
/freebsd-10.0-release/sbin/nvmecontrol/
H A Dreset.c63 if (optind >= argc)
66 open_dev(argv[optind], &fd, 1, 1);
68 err(1, "reset request to %s failed", argv[optind]);
/freebsd-10.0-release/cddl/contrib/opensolaris/cmd/dtrace/test/cmd/jdtrace/
H A DGetopt.java49 private int optind = 0; // args index field in class:Getopt
261 return optind;
321 * - the first character of argv[optind] is not '-'
322 * - argv[optind] is the string "-"
323 * getopt() returns -1 without changing optind if
324 * - argv[optind] is the string "--"
325 * getopt() returns -1 after incrementing optind
331 if (optind >= argc || args[optind].equals("-")) {
333 } else if (args[optind]
[all...]
/freebsd-10.0-release/bin/pax/
H A Dgetoldopt.c42 optind = 2;
62 if (optind < argc) {
63 optarg = argv[optind];
64 optind++;
/freebsd-10.0-release/contrib/file/
H A Dgetopt_long.c64 int optind = 1; /* index into parent argv vector */ variable
192 * XXX re-initialize optind to 0 and have getopt_long(3)
195 if (optind == 0)
196 optind = 1;
203 if (optind >= nargc) { /* end of argument vector */
208 optind, nargv);
209 optind -= nonopt_end - nonopt_start;
213 * If we skipped non-options, set optind
216 optind = nonopt_start;
221 if ((*(place = nargv[optind]) !
[all...]
/freebsd-10.0-release/crypto/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...]
H A Dgetopt.h68 extern int optind;
/freebsd-10.0-release/usr.bin/dirname/
H A Ddirname.c62 argc -= optind;
63 argv += optind;
/freebsd-10.0-release/usr.sbin/accton/
H A Daccton.c64 argc -= optind;
65 argv += optind;
/freebsd-10.0-release/include/
H A Dgetopt.h70 extern int optind, opterr, optopt;
/freebsd-10.0-release/usr.bin/c89/
H A Dc89.c82 if (argv[optind - 1][0] == '-') /* -llib */
83 optind -= 1;
85 optind -= 2;
89 if (argc == optind) {
/freebsd-10.0-release/usr.bin/c99/
H A Dc99.c64 if (argv[optind - 1][0] == '-')
65 optind -= 1;
67 optind -= 2;
76 for (i = 1; i < optind; i++)
/freebsd-10.0-release/usr.sbin/getpmac/
H A Dgetpmac.c73 labellist = argv[optind - 1];
78 pid = atoi(argv[optind - 1]);
87 argc -= optind;
88 argv += optind;

Completed in 150 milliseconds

1234567891011>>