/titanic_50/usr/src/grub/grub-0.97/lib/ |
H A D | getopt.c | 130 int optind = 1; variable 313 int top = optind; 383 first_nonopt += (optind - last_nonopt); 384 last_nonopt = optind; 402 first_nonopt = last_nonopt = optind; 525 if (optind == 0 || !__getopt_initialized) 527 if (optind == 0) 528 optind = 1; /* Don't scan ARGV[0], the program name. */ 538 # define NONOPTION_P (argv[optind][0] != '-' || argv[optind][1] == '\0' \ 539 || (optind < nonoption_flags_len \ [all …]
|
/titanic_50/usr/src/cmd/avs/nsctl/ |
H A D | nscadm.c | 85 extern int optind, opterr; in main() 107 if (optind == argc) { in main() 112 if (strcoll(argv[optind], gettext("freeze")) == 0 || in main() 113 strcmp(argv[optind], "freeze") == 0) { in main() 114 if (argc - optind != 2) { in main() 119 is_chr_dev(argv[optind+1], "freeze"); in main() 120 rc = nsc_isfrozen(argv[optind+1]); in main() 125 rc = nsc_freeze(argv[optind+1]); in main() 132 "already frozen\n"), argv[optind+1]); in main() 137 argv[optind+1]); in main() [all …]
|
/titanic_50/usr/src/cmd/mdb/common/libstand/ |
H A D | getopt.c | 33 int opterr = 1, optind = 1, optopt = 0; variable 43 optind = 1; in getopt_reset() 56 if (optind >= argc || argv[optind][0] != '-' || in getopt() 57 argv[optind] == NULL || argv[optind][1] == '\0') in getopt() 59 else if (strcmp(argv[optind], "--") == NULL) { in getopt() 60 optind++; in getopt() 64 optopt = c = (unsigned char)argv[optind][_sp]; in getopt() 68 if (argv[optind][++_sp] == '\0') { in getopt() 69 optind++; in getopt() 76 if (argv[optind][_sp+1] != '\0') in getopt() [all …]
|
/titanic_50/usr/src/cmd/bnu/ |
H A D | getopt.c | 43 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][sp+1] != '\0') 75 optarg = &argv[optind++][sp+1]; [all …]
|
/titanic_50/usr/src/lib/libc/port/gen/ |
H A D | getopt.c | 199 if (optind >= argc || argv[optind][0] != '-' || in getopt() 200 argv[optind] == NULL || argv[optind][1] == '\0') in getopt() 202 else if (strcmp(argv[optind], "--") == NULL) { in getopt() 203 optind++; in getopt() 227 optopt = c = (unsigned char)argv[optind][_sp]; in getopt() 231 ((cp = parselong(optstring, argv[optind]+2, &longoptarg)) != NULL) : in getopt() 234 c, (longopt ? optind : 0)); in getopt() 239 if (argv[optind][++_sp] == '\0' || longopt) { in getopt() 240 optind++; in getopt() 273 if (!longopt && argv[optind][_sp+1] != '\0') { in getopt() [all …]
|
H A D | getopt_long.c | 321 optind++; in parse_long_options() 396 if (optind < nargc) { in parse_long_options() 397 optarg = nargv[optind]; in parse_long_options() 399 ++optind; /* code below depends on this */ in parse_long_options() 421 --optind; in parse_long_options() 426 --optind; in parse_long_options() 505 if (optind == 0) { in getopt_internal() 506 optind = optreset = 1; in getopt_internal() 521 if ((optind == 1) && FLAG_IS_SET(FLAG_REQUIRE_EQUIVALENTS)) { in getopt_internal() 533 if (optind >= nargc) { /* end of argument vector */ in getopt_internal() [all …]
|
/titanic_50/usr/src/cmd/dtrace/test/cmd/jdtrace/ |
H A D | Getopt.java | 49 private int optind = 0; // args index field in Getopt 261 return optind; in getOptind() 331 if (optind >= argc || args[optind].equals("-")) { in getopt() 333 } else if (args[optind].equals("--")) { in getopt() 334 ++optind; in getopt() 336 } else if (args[optind].charAt(0) != '-') { in getopt() 341 String tmp = args[optind]; in getopt() 342 if (optind + 1 < args.length) { in getopt() 343 System.arraycopy(args, optind + 1, args, optind, in getopt() 344 args.length - (optind + 1)); in getopt() [all …]
|
/titanic_50/usr/src/cmd/sort/common/ |
H A D | options.c | 264 char *arg = argv[optind]; in parse_old_field_spec() 285 for (arg = argv[++optind]; optind < argc; arg = argv[optind]) { in parse_old_field_spec() 291 optind++; in parse_old_field_spec() 325 optind -= 1; in parse_old_field_spec() 338 if (optarg == argv[optind - 1] + 2) { in parse_old_field_spec() 339 optind -= 1; in parse_old_field_spec() 341 optind -= 2; in parse_old_field_spec() 364 optind = 1; in options() 365 while (optind < argc) { in options() 366 if (strncmp("-y", argv[optind], strlen("-y")) == 0) { in options() [all …]
|
/titanic_50/usr/src/cmd/env/ |
H A D | env.c | 92 while (argv[optind] != NULL && strchr(argv[optind], '=') != NULL) { in main() 93 if (putenv(argv[optind])) { in main() 94 (void) perror(argv[optind]); in main() 97 optind++; in main() 101 if (argv[optind] == NULL) { in main() 106 (void) execvp(argv[optind], &argv[optind]); in main() 107 (void) fprintf(stderr, "%s: %s: %s\n", argv[0], argv[optind], in main()
|
/titanic_50/usr/src/lib/libbc/libc/gen/common/ |
H A D | getopt.c | 37 extern int optind; /* index into parent argv vector */ 52 if (optind >= nargc || *(place = nargv[optind]) != '-') { in getopt() 57 ++optind; in getopt() 72 ++optind; in getopt() 86 ++optind; in getopt() 90 else if (nargc <= ++optind) { /* no arg */ in getopt() 102 optarg = nargv[optind]; in getopt() 104 ++optind; in getopt()
|
/titanic_50/usr/src/cmd/msgfmt/ |
H A D | xgettext.lx.l | 38 extern int optind; 134 if ((optind >= gargc) || (stdin_only == TRUE)) { 140 (void) freopen(gargv[optind], "r", stdin); 141 if ((fp = freopen(gargv[optind], "r", stdin)) == NULL) { 143 gargv[optind]); 147 optind, gargv[optind]); 152 (void) strcpy(curr_file, gargv[optind]); 156 optind++;
|
/titanic_50/usr/src/cmd/head/ |
H A D | head.c | 108 if ((strcmp(optarg, "--") == 0) || (optind > argc)) { in main() 134 fileCount = argc - optind; in main() 137 if ((argv[optind] == NULL) && around) in main() 140 if (argv[optind] != NULL) { in main() 143 if ((input = fopen(argv[optind], "r")) == NULL) { in main() 144 perror(argv[optind]); in main() 146 optind++; in main() 158 (void) printf("==> %s <==\n", argv[optind]); in main() 161 if (argv[optind] != NULL) in main() 162 optind++; in main() [all …]
|
/titanic_50/usr/src/cmd/fs.d/smbclnt/smbutil/ |
H A D | login.c | 136 if (optind < argc) { in cmd_login() 137 strcpy(tmp_arg, argv[optind]); in cmd_login() 140 errx(1, gettext("failed to parse %s"), argv[optind]); in cmd_login() 141 optind++; in cmd_login() 143 if (optind != argc) in cmd_login() 200 if (optind != argc) in cmd_logout() 216 if (optind < argc) { in cmd_logout() 217 strcpy(tmp_arg, argv[optind]); in cmd_logout() 220 errx(1, gettext("failed to parse %s"), argv[optind]); in cmd_logout() 221 optind++; in cmd_logout() [all …]
|
/titanic_50/usr/src/cmd/vi/port/ |
H A D | ex.c | 137 extern int optind; in main() 301 if (av[optind] && (c = av[optind][0]) && in main() 303 if ((strlen(av[optind])) >= in main() 311 rcvname = (unsigned char *)av[optind]; in main() 312 optind++; in main() 369 if (av[optind] && av[optind][0] == '+' && in main() 370 av[optind-1] && strcmp(av[optind-1], "--")) { in main() 371 firstpat = (unsigned char *)&av[optind][1]; in main() 372 optind++; in main() 374 } else if (av[optind] && av[optind][0] == '-' && in main() [all …]
|
/titanic_50/usr/src/cmd/svr4pkg/pkgadm/ |
H A D | main.c | 131 if (ci_streq(argv[optind], cmds[cur_cmd].c_name)) { in main() 133 newargc = argc - optind; in main() 134 newargv = argv + optind; in main() 135 opterr = optind = 1; optopt = 0; in main() 145 if (ci_streq(argv[optind], cert_cmds[cur_cmd].c_name)) { in main() 147 newargc = argc - optind; in main() 148 newargv = argv + optind; in main() 149 opterr = optind = 1; optopt = 0; in main() 155 log_msg(LOG_MSG_ERR, MSG_BAD_SUB, argv[optind]); in main()
|
/titanic_50/usr/src/cmd/sgs/size/common/ |
H A D | main.c | 108 extern int optind; in main() 171 if (errflag || (optind >= argc)) { in main() 176 if ((argc - optind) == 1) { in main() 185 for (; optind < argc; optind++) { in main() 186 fname = argv[optind]; in main() 187 if ((fd = open(argv[optind], O_RDONLY)) == -1) { in main() 201 archive = argv[optind]; in main()
|
/titanic_50/usr/src/cmd/print/bsd-sysv-commands/ |
H A D | lp.c | 231 if (((optind + 1) == ac) && (strcmp(av[optind], "-") == 0)) in main() 232 optind = ac; in main() 237 if (optind != ac) { in main() 243 document_format = magic_file(ms, av[optind]); in main() 247 if (is_postscript(av[optind]) == 1) in main() 280 else if (optind == ac) /* no file list, use stdin */ in main() 285 NULL, &av[optind], &job); in main() 288 NULL, &av[optind], &job); in main() 291 NULL, &av[optind], &job); in main() 318 if (ac != optind) in main() [all …]
|
H A D | lpr.c | 206 if (((optind + 1) == ac) && (strcmp(av[optind], "-") == 0)) in main() 207 optind = ac; in main() 209 if (optind != ac) { in main() 215 document_format = magic_file(ms, av[optind]); in main() 219 if (is_postscript(av[optind]) == 1) in main() 244 NULL, &av[optind], &job); in main() 245 else if (optind == ac) /* no file list, use stdin */ in main() 250 NULL, &av[optind], &job); in main() 253 NULL, &av[optind], &job); in main()
|
/titanic_50/usr/src/cmd/lastcomm/ |
H A D | lastcomm.c | 68 return (lc_exacct(filename, argc, argv, optind)); in main() 76 return (lc_exacct(buf, argc, argv, optind)); in main() 87 return (lc_pacct("/var/adm/pacct", argc, argv, optind)); in main() 89 return (lc_exacct(buf, argc, argv, optind)); in main() 101 return (lc_pacct(filename, argc, argv, optind)); in main() 103 return (lc_exacct(filename, argc, argv, optind)); in main()
|
/titanic_50/usr/src/cmd/fs.d/nfs/clear_locks/ |
H A D | clear_locks.c | 48 extern int optind; 133 i = argc - optind; in main() 143 myhostname, argv[optind]); in main() 144 ret = share_zap(myhostname, argv[optind]); in main() 148 argv[optind], myhostname); in main() 149 ret = share_zap(argv[optind], myhostname); in main() 150 ret += nfs4_clr_state(argv[optind]); in main()
|
/titanic_50/usr/src/cmd/sh/ |
H A D | ulimit.c | 62 extern int opterr, optind; in sysulimit() 76 savoptind = optind; in sysulimit() 80 optind = 1; in sysulimit() 139 if (optind == argc) { in sysulimit() 181 if (cnt > 1 || optind + 1 != argc) { in sysulimit() 186 if (eq(argv[optind], "unlimited")) { in sysulimit() 189 args = argv[optind]; in sysulimit() 241 "%s: %s", argv[0], argv[optind]); in sysulimit() 246 optind = savoptind; in sysulimit()
|
/titanic_50/usr/src/cmd/tcpd/ |
H A D | tcpdmatch.c | 34 extern int optind; 97 if (argc != optind + 2) 113 if ((server = split_at(argv[optind], '@')) == 0) 115 if (argv[optind][0] == '/') { 116 daemon = strrchr(argv[optind], '/') + 1; 117 tcpd_warn("%s: daemon name normalized to: %s", argv[optind], daemon); 119 daemon = argv[optind]; 126 if ((client = split_at(argv[optind + 1], '@')) != 0) { 127 user = argv[optind + 1]; 129 client = argv[optind + 1];
|
/titanic_50/usr/src/lib/libast/common/comp/ |
H A D | getopt.c | 40 int optind = 1; 52 opt_info.index = (optind > 1 || optind == lastoptind) ? optind : 0; 74 lastoptind = optind = opt_info.index;
|
/titanic_50/usr/src/cmd/devmgmt/cmds/ |
H A D | getvol.c | 42 extern int optind, 139 if ((optind+1) != argc) in main() 142 switch (n = getvol(argv[optind], label, options, prompt)) { in main() 149 prog, argv[optind]); in main() 154 prog, argv[optind]); in main() 164 prog, argv[optind]); in main()
|
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/kssl/ksslcfg/ |
H A D | ksslcfg_delete.c | 287 pcnt = argc - optind; in do_delete() 289 if (strlen(argv[optind]) < MAX_ADRPORT_LEN) { in do_delete() 290 (void) strcpy(address_port, argv[optind]); in do_delete() 294 argv[optind]); in do_delete() 298 if ((len = strlen(argv[optind])) + in do_delete() 299 (strlen(argv[optind + 1])) < MAX_ADRPORT_LEN) { in do_delete() 300 (void) strcpy(address_port, argv[optind]); in do_delete() 302 (void) strcpy(address_port + len + 1, argv[optind + 1]); in do_delete() 306 argv[optind], argv[optind + 1]); in do_delete()
|