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

1234567891011>>

/freebsd-current/stand/libsa/
H A Dgetopt.c34 optind = 1, /* index into parent argv vector */ variable
55 if (optind >= nargc || *(place = nargv[optind]) != '-') {
60 ++optind;
74 ++optind;
82 ++optind;
87 else if (nargc <= ++optind) { /* no arg */
96 optarg = nargv[optind];
98 ++optind;
/freebsd-current/contrib/libpcap/missing/
H A Dgetopt.h5 extern int optind, opterr, optreset, optopt;
H A Dgetopt.c45 optind = 1, /* index into parent argv vector */ variable
74 if (optind >= nargc || *(place = nargv[optind]) != '-') {
79 ++optind;
87 ++optind;
102 ++optind;
111 ++optind;
116 else if (nargc <= ++optind) { /* no arg */
127 optarg = nargv[optind];
129 ++optind;
[all...]
/freebsd-current/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-current/lib/libsecureboot/tests/
H A Dtvo.c103 for ( ; optind < argc; optind++) {
109 fd = open(argv[optind], O_RDONLY);
116 x = verify_file(fd, argv[optind], 0, VE_GUESS, __func__);
117 printf("verify_file(%s) = %d\n", argv[optind], x);
123 if (strstr(argv[optind], "asc")) {
124 cp = (char *)verify_asc(argv[optind], 1);
127 argv[optind], cp);
129 fingerprint_info_add(argv[optind],
133 argv[optind], ve_error_ge
[all...]
/freebsd-current/usr.bin/getopt/
H A Dgetopt.c23 optind = 2; /* Past the program name and the option letters. */
37 for (; optind < argc; optind++)
38 printf(" %s", argv[optind]);
/freebsd-current/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-current/contrib/ntp/sntp/libevent/WIN32-Code/
H A Dgetopt.c50 optind = 1, /* index into parent argv vector */ variable
98 if (optind >= nargc || *(place = nargv[optind]) != '-') {
104 ++optind;
118 ++optind;
127 ++optind;
132 else if (nargc <= ++optind) { /* no arg */
143 optarg = nargv[optind];
145 ++optind;
H A Dgetopt.h9 extern int optind; /* index into parent argv vector */
/freebsd-current/contrib/unifdef/FreeBSD/
H A Dgetopt.c33 optind = 1, /* index into parent argv vector */ variable
55 place = nargv[optind];
56 if (optind >= nargc || *place++ != '-') {
64 ++optind;
82 ++optind;
95 ++optind;
101 else if (nargc > ++optind)
102 optarg = nargv[optind];
115 ++optind;
/freebsd-current/contrib/libevent/WIN32-Code/
H A Dgetopt.c50 optind = 1, /* index into parent argv vector */ variable
98 if (optind >= nargc || *(place = nargv[optind]) != '-') {
104 ++optind;
118 ++optind;
127 ++optind;
132 else if (nargc <= ++optind) { /* no arg */
143 optarg = nargv[optind];
145 ++optind;
H A Dgetopt.h9 extern int optind; /* index into parent argv vector */
/freebsd-current/lib/libc/stdlib/
H A Dgetopt.c44 optind = 1, /* index into parent argv vector */ variable
64 place = nargv[optind];
65 if (optind >= nargc || *place++ != '-') {
73 ++optind;
91 ++optind;
104 ++optind;
116 else if (nargc > ++optind)
117 optarg = nargv[optind];
130 ++optind;
H A Dgetopt_long.c66 int optind = 1; /* index into parent argv vector */ variable
215 optind++;
296 optarg = nargv[optind++];
318 --optind;
323 --optind;
360 * XXX Some GNU programs (like cvs) set optind to 0 instead of
363 if (optind == 0)
364 optind = optreset = 1;
385 if (optind >= nargc) { /* end of argument vector */
390 optind, narg
[all...]
/freebsd-current/contrib/llvm-project/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...]
/freebsd-current/sbin/veriexec/
H A Dveriexec.c146 n = (argc - optind);
147 for (; optind < argc; optind++) {
148 cp = veriexec_get_path_label(argv[optind], buf, sizeof(buf));
151 printf("%s: %s\n", argv[optind], cp);
168 for (; optind < argc; optind++) {
169 if (veriexec_check_path(argv[optind])) {
170 warn("%s", argv[optind]);
243 if (optind >
[all...]
/freebsd-current/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-current/contrib/tcpdump/missing/
H A Dgetopt_long.h64 extern int optind, opterr, optopt;
H A Dgetopt_long.c85 int optind, opterr = 1, optopt; variable
240 optind++;
322 optarg = nargv[optind++];
345 --optind;
350 --optind;
406 * XXX Some GNU programs (like cvs) set optind to 0 instead of
409 if (optind == 0)
410 optind = 1;
415 if (optind >= nargc) { /* end of argument vector */
420 optind, narg
[all...]
/freebsd-current/bin/pax/
H A Dgetoldopt.c38 optind = 2;
58 if (optind < argc) {
59 optarg = argv[optind];
60 optind++;
/freebsd-current/contrib/libfido2/openbsd-compat/
H A Dgetopt_long.c67 int optind = 1; /* index into parent argv vector */ variable
177 optind++;
239 optarg = nargv[optind++];
258 --optind;
263 --optind;
296 * XXX Some GNU programs (like cvs) set optind to 0 instead of
299 if (optind == 0)
300 optind = optreset = 1;
321 if (optind >= nargc) { /* end of argument vector */
326 optind, narg
[all...]
/freebsd-current/crypto/openssh/openbsd-compat/
H A Dgetopt_long.c59 * getopt opterr optind optopt optreset optarg are all in defines.h which is
90 int optind = 1; /* index into parent argv vector */ variable
200 optind++;
262 optarg = nargv[optind++];
281 --optind;
286 --optind;
319 * XXX Some GNU programs (like cvs) set optind to 0 instead of
322 if (optind == 0)
323 optind = optreset = 1;
344 if (optind >
[all...]
/freebsd-current/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-current/lib/libveriexec/
H A Dgbl_check.c113 for (; optind < argc; optind++) {
116 pid = atoi(argv[optind]);
119 gbl = gbl_check_path(argv[optind]);
121 printf("arg=%s, gbl=%#o\n", argv[optind], gbl);
/freebsd-current/stand/common/
H A Dnvstore.c67 optind = 1;
82 argc -= optind;
83 argv += optind;
112 optind = 1;
152 argc -= optind;
153 argv += optind;

Completed in 193 milliseconds

1234567891011>>