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

12

/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Doptind.c29 int optind = 1; variable
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dopt_data.c40 int optind = 1; variable
/illumos-gate/usr/src/cmd/bnu/
H A Dgetopt.c43 int optind = 1; variable
57 if(optind >= argc ||
58 argv[optind][0] != '-' || argv[optind][1] == '\0')
60 else if(strcmp(argv[optind], "--") == NULL) {
61 optind++;
64 optopt = c = argv[optind][sp];
67 if(argv[optind][++sp] == '\0') {
68 optind++;
74 if(argv[optind][s
[all...]
/illumos-gate/usr/src/cmd/mdb/common/libstand/
H A Dgetopt.c31 int opterr = 1, optind = 1, optopt = 0; variable
41 optind = 1;
54 if (optind >= argc || argv[optind][0] != '-' ||
55 argv[optind] == NULL || argv[optind][1] == '\0')
57 else if (strcmp(argv[optind], "--") == 0) {
58 optind++;
62 optopt = c = (unsigned char)argv[optind][_sp];
66 if (argv[optind][
[all...]
/illumos-gate/usr/src/boot/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;
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/
H A Dilbadm.c153 unknown_opt(char **argv, int optind) argument
155 ilbadm_err(gettext("bad or misplaced option %s"), argv[optind]);
199 default: unknown_opt(argv, optind - 1);
205 if (optind >= argc)
232 * re-set optind for next callers of getopt() - they all believe they're
235 optind = 1;
/illumos-gate/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 )
H A Dldapmodify.c146 int optind, i; local
165 optind = ldaptool_process_args( argc, argv, "aAbcFe:B:qrl:", 0,
168 optind = ldaptool_process_args( argc, argv, "aAbcFe:B:q", 0,
173 if ( optind == -1 ) {
185 if ( argc - optind != 0 ) {
H A Dldapsearch.c158 int rc, optind, i, first, free_filtpattern; local
190 optind = ldaptool_process_args( argc, argv, "ABLTU1etuxra:b:F:G:l:S:s:z:C:",
193 optind = ldaptool_process_args( argc, argv, "ABLTU1etuxa:b:F:G:l:S:s:z:C:c:",
197 optind = ldaptool_process_args( argc, argv, "ABLTU1eotuxa:b:F:G:l:S:s:z:C:c:",
201 if ( optind == -1 ) {
225 if ( argc - optind < 1 ) {
232 if ( ldaptool_fp == NULL || strstr( argv[ optind ], "%s" ) != NULL ) {
233 filtpattern = ldaptool_local2UTF8( argv[ optind ] );
236 ++optind;
241 if ( argv[ optind ]
[all...]
/illumos-gate/usr/src/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...]
/illumos-gate/usr/src/cmd/idmap/nltest/
H A Dnltest.c253 int optind = 1; local
258 while (optind < argc) {
259 arg = argv[optind];
266 optind++;
277 optind++;
300 if (optval == NULL && optind < argc)
301 optval = argv[optind++];
317 for (i = optind; i < argc; i++) {
/illumos-gate/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...]
/illumos-gate/usr/src/cmd/lp/model/
H A Dlp.tsol_separator.c68 int optind; /* Used by getopt */ variable
430 optind = 1;
464 argc -= optind; /* Number of remaining(non-switch) args */
465 argv += optind; /* argv[0] is first(non-switch) args */
/illumos-gate/usr/src/cmd/rctladm/
H A Drctladm.c433 rctladm_list_rctls(int optind, int argc, char *argv[]) argument
435 if (optind >= argc) {
440 for (; optind < argc; optind++)
441 (void) rctl_walk_cb(argv[optind], NULL);
498 rctladm_list_rctls(optind, argc, argv);
504 if (optind >= argc) {
510 for (; optind < argc; optind++) {
511 rctl = argv[optind];
[all...]
/illumos-gate/usr/src/cmd/fs.d/nfs/nfsref/
H A Dnfsref.c95 addref(char *sl_path, char *svc_type, int optind, int argc, char *argv[]) argument
135 for (i = optind; i < argc; i++) {
317 extern int optind, optopt;
346 if (optind + 1 >= argc) {
373 command = argv[optind++];
374 sl_path = argv[optind++];
378 if (optind >= argc) {
383 err = addref(sl_path, svc_type, optind, argc, argv);
/illumos-gate/usr/src/cmd/idmap/idmap/
H A Didmap_engine.c75 extern int optind, optopt, opterr;
83 optind = 1;
93 argv[optind - 1]);
103 return (optind);
125 int optind; local
133 optind = options_parse(argc, argv, my_comv[i].options);
134 if (optind < 0) {
139 argc - optind,
140 argv + optind,
533 optind
[all...]
/illumos-gate/usr/src/lib/libxcurses/h/
H A Dmks.h665 int optind; /* Index into argv */ member in struct:getopt_state
668 int index; /* argv[optind] index */
670 mbstate_t st; /* State of argv[optind][index] */
/illumos-gate/usr/src/cmd/cpc/common/
H A Dcputrack.c87 static int cputrack(int argc, char *argv[], int optind);
203 (argc == optind && opts->pid == 0) ||
204 (argc > optind && opts->pid != 0) ||
246 ret = cputrack(argc, argv, optind);
689 cputrack(int argc, char *argv[], int optind) argument
698 if (argc <= optind) {
704 pctx = pctx_create(argv[optind],
705 &argv[optind], state, 1, cputrack_pctx_errfn);
710 argv[optind]);
/illumos-gate/usr/src/cmd/stat/fsstat/
H A Dfsstat.c513 int optind,
521 if (argc == optind)
525 * to be: argc - optind
527 if ((*entityp = calloc((argc - optind), sizeof (entity_t))) == NULL) {
532 for (/* void */; argc > optind; optind++) {
536 if ((argc - optind) > 2) {
537 (*entityp)[nentities++].e_name = strdup(argv[optind]);
544 *interval = strtol(argv[optind], &endptr, 10);
547 (*entityp)[nentities++].e_name = strdup(argv[optind]);
510 parse_operands( int argc, char **argv, int optind, long *interval, long *count, entity_t **entityp) argument
[all...]
/illumos-gate/usr/src/lib/libast/amd64/include/ast/
H A Dast_map.h149 #undef optind macro
150 #define optind _ast_optind macro
/illumos-gate/usr/src/lib/libast/amd64/src/lib/libast/
H A Dast_map.h128 #undef optind macro
129 #define optind _ast_optind macro
/illumos-gate/usr/src/lib/libast/i386/include/ast/
H A Dast_map.h149 #undef optind macro
150 #define optind _ast_optind macro
/illumos-gate/usr/src/lib/libast/i386/src/lib/libast/
H A Dast_map.h128 #undef optind macro
129 #define optind _ast_optind macro
/illumos-gate/usr/src/lib/libast/sparc/include/ast/
H A Dast_map.h149 #undef optind macro
150 #define optind _ast_optind macro

Completed in 300 milliseconds

12