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

12

/freebsd-head/contrib/gdb/gdb/mi/
H A Dmi-cmd-file.c36 int optind = 0; local
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-cmd-disas.c75 int optind = 0; local
95 &optind, &optarg);
122 argv += optind;
123 argc -= optind;
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;
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...]
/freebsd-head/stand/libsa/
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-head/lib/libc/stdlib/
H A Dgetopt.c50 optind = 1, /* index into parent argv vector */ variable
71 place = nargv[optind];
72 if (optind >= nargc || *place++ != '-') {
80 ++optind;
98 ++optind;
111 ++optind;
123 else if (nargc > ++optind)
124 optarg = nargv[optind];
137 ++optind;
/freebsd-head/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-head/contrib/bmake/
H A Dgetopt.c48 optind = 1, /* index into parent argv vector */ variable
75 place = nargv[optind];
76 if (optind >= nargc || *place++ != '-') {
84 ++optind;
102 ++optind;
114 ++optind;
126 else if (nargc > ++optind)
127 optarg = nargv[optind];
140 ++optind;
179 if (optind < arg
[all...]
/freebsd-head/contrib/libpcap/missing/
H A Dgetopt.c45 optind = 1, /* index into parent argv vector */ variable
74 if (optind >= nargc || *(place = nargv[optind]) != '-') {
79 ++optind;
93 ++optind;
102 ++optind;
107 else if (nargc <= ++optind) { /* no arg */
118 optarg = nargv[optind];
120 ++optind;
/freebsd-head/crypto/heimdal/appl/afsutil/
H A Dpagsh.c107 int optind = 0; local
110 if(getarg(getargs, num_args, argc, argv, &optind))
119 argc -= optind;
120 argv += optind;
H A Dafslog.c214 int optind = 0; local
223 if(getarg(args, num_args, argc, argv, &optind))
280 for(i = optind; i < argc; i++){
/freebsd-head/crypto/heimdal/lib/gssapi/
H A Dtest_ntlm.c312 int ret = 0, optind = 0; local
316 if(getarg(args, sizeof(args) / sizeof(args[0]), argc, argv, &optind))
327 argc -= optind;
328 argv += optind;
/freebsd-head/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-head/crypto/heimdal/appl/test/
H A Dcommon.c130 int optind = *argc; local
131 int port = common_setup(context, &optind, argv, client_usage);
132 if(*argc - optind != 1)
134 *argc = optind;
/freebsd-head/crypto/heimdal/kpasswd/
H A Dkpasswd-generator.c183 int optind = 0; local
188 if(getarg(args, sizeof(args) / sizeof(args[0]), argc, argv, &optind))
196 argc -= optind;
197 argv += optind;
/freebsd-head/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...]
/freebsd-head/crypto/heimdal/appl/ftp/ftp/
H A Dmain.c94 int optind = 0; local
111 if(getarg(getargs, num_args, argc, argv, &optind))
125 argc -= optind;
126 argv += optind;
/freebsd-head/crypto/heimdal/appl/kf/
H A Dkf.c70 int optind = 0; local
85 if (getarg (args, num_args, *argc, argv, &optind))
112 if(*argc - optind < 1)
114 *argc = optind;
/freebsd-head/crypto/heimdal/appl/su/
H A Dsu.c330 int i, optind = 0; local
343 if(getarg(args, sizeof(args) / sizeof(args[0]), argc, argv, &optind))
346 for (i=0; i < optind; i++)
358 if(optind >= argc)
361 su_user = argv[optind++];
489 args = malloc(((cmd ? 2 : 0) + 1 + argc - optind + 1 + csh_f_flag) * sizeof(*args));
506 for (argv += optind; *argv; ++argv)
/freebsd-head/crypto/heimdal/kcm/
H A Dconfig.c331 int optind = 0; local
334 while(getarg(args, num_args, argc, argv, &optind))
335 warnx("error at argument `%s'", argv[optind]);
345 argc -= optind;
346 argv += optind;
/freebsd-head/crypto/heimdal/lib/ntlm/
H A Dtest_ntlm.c345 int ret = 0, optind = 0; local
349 if(getarg(args, sizeof(args) / sizeof(args[0]), argc, argv, &optind))
360 argc -= optind;
361 argv += optind;
/freebsd-head/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...]
/freebsd-head/contrib/file/src/
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-head/contrib/llvm/tools/lldb/source/Host/common/
H A DGetOptInc.cpp21 int optind = 1; /* index into parent argv vector */ variable
122 optind++;
179 optarg = nargv[optind++];
197 --optind;
202 --optind;
234 * XXX Some GNU programs (like cvs) set optind to 0 instead of
237 if (optind == 0)
238 optind = optreset = 1;
259 if (optind >= nargc) { /* end of argument vector */
263 permute_args(nonopt_start, nonopt_end, optind, narg
[all...]

Completed in 280 milliseconds

12