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

1234

/osnet-11/usr/src/lib/libc/port/gen/
H A Dopt_data.c40 int optind = 1; variable
H A Dgetopt.c191 * argv[optind] is a null pointer
192 * *argv[optind] is not the character '-'
193 * argv[optind] points to the string "-"
194 * getopt() returns -1 without changing optind. If
195 * argv[optind] points to the string "--"
196 * getopt() returns -1 after incrementing optind.
199 if (optind >= argc || argv[optind][0] != '-' ||
200 argv[optind] == NULL || argv[optind][
[all...]
H A Dgetopt_long.c321 optind++;
368 --optind;
415 if (optind < nargc) {
416 optarg = nargv[optind];
418 ++optind; /* code below depends on this */
440 --optind;
505 * Some programs (like GNU cvs) set optind to 0 to restart
511 if (optind == 0) {
512 optind = optreset = 1;
527 if ((optind
[all...]
/osnet-11/usr/src/grub/grub-0.97/lib/
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. */
300 The other is elements [last_nonopt,optind), which contains all
316 int top = optind;
386 first_nonopt += (optind - last_nonopt);
387 last_nonopt = optind;
405 first_nonopt = last_nonopt = optind;
472 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++]);
H A Dgetopt.h46 Otherwise, `optind' communicates from one call to the next
49 extern int optind;
/osnet-11/usr/src/lib/libast/common/include/
H A Dast_getopt.h35 extern int optind;
/osnet-11/usr/src/lib/libast/common/comp/
H A Dgetopt.c40 int optind = 1;
52 opt_info.index = (optind > 1 || optind == lastoptind) ? optind : 0;
74 lastoptind = optind = opt_info.index;
H A Dgetoptl.c104 opt_info.index = (optind > 1 || optind == lastoptind) ? optind : 0;
137 lastoptind = optind = opt_info.index;
/osnet-11/usr/src/grub/grub2/util/
H A Dgrub-mkrelpath.c90 if (optind >= argc)
96 if (optind + 1 != argc)
98 fprintf (stderr, _("Unknown extra argument `%s'.\n"), argv[optind + 1]);
102 argument = argv[optind];
H A Dbin2h.c87 if (optind >= argc)
90 if (optind + 1 != argc)
93 sym = argv[optind];
H A Dgrub-script-check.c156 if (optind >= argc)
160 else if (optind + 1 != argc)
162 fprintf (stderr, _("Unknown extra argument `%s'.\n"), argv[optind + 1]);
167 argument = argv[optind];
/osnet-11/usr/src/grub/grub2/grub-core/gnulib/
H A Dgetopt1.c94 int this_option_optind = optind ? optind : 1;
161 if (optind < argc)
164 while (optind < argc)
165 printf ("%s ", argv[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...]
H A Dgetopt.in.h63 # undef optind macro
74 # define optind __GETOPT_ID (optind) macro
149 Otherwise, `optind' communicates from one call to the next
152 extern int optind;
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
/osnet-11/usr/src/lib/libast/amd64/include/ast/
H A Dast_getopt.h18 extern __MANGLE__ int optind;
/osnet-11/usr/src/lib/libast/i386/include/ast/
H A Dast_getopt.h18 extern __MANGLE__ int optind;
/osnet-11/usr/src/lib/libast/sparc/include/ast/
H A Dast_getopt.h18 extern __MANGLE__ int optind;
/osnet-11/usr/src/lib/libast/sparcv9/include/ast/
H A Dast_getopt.h18 extern __MANGLE__ int optind;
/osnet-11/usr/src/grub/grub-0.97/util/
H A Dmbchk.c217 if (optind < argc)
219 while (optind < argc)
223 fp = fopen (argv[optind], "r");
226 fprintf (stderr, "%s: No such file.\n", argv[optind]);
230 if (! check_multiboot (argv[optind], fp))
234 optind++;
/osnet-11/usr/src/cmd/ldap/common/
H A Dldapdelete.c71 int rc, deref, optind; local
92 optind = ldaptool_process_args( argc, argv, "c", 0, options_callback );
94 if ( optind == -1 ) {
98 if ( ldaptool_fp == NULL && optind >= argc ) {
118 for ( ; optind < argc; ++optind ) {
121 conv = ldaptool_local2UTF8( argv[ optind ] );
H A Dldapmodrdn.c42 int rc, havedn, deref, optind; local
60 optind = ldaptool_process_args( argc, argv, "cr", 0, options_callback);
62 if ( optind == -1 ) {
71 if (argc - optind == 3) /* accept as arguments: dn rdn newsuperior */
92 else if (argc - optind == 2) /* accept as arguments: dn rdn */
107 else if ( argc - optind != 0 )
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dsafechown.c101 if (argc - optind != 1)
104 if (safechown(argv[optind], uid, getgid(), mode)) {
/osnet-11/usr/src/lib/libbe/tbeadm/
H A Dtbeadm.c239 argc -= optind;
240 argv += optind;
511 argc -= optind;
512 argv += optind;
560 argc -= optind;
561 argv += optind;
675 argc -= optind;
676 argv += optind;
873 argc -= optind;
874 argv += optind;
[all...]

Completed in 68 milliseconds

1234