/netbsd-src/external/gpl2/mkhybrid/dist/ |
H A D | getopt.c | 116 int optind = 0; variable 237 int top = optind; in exchange() 283 first_nonopt += (optind - last_nonopt); in exchange() 284 last_nonopt = optind; in exchange() 296 first_nonopt = last_nonopt = optind = 1; in _getopt_initialize() 387 if (optind == 0) 402 if (first_nonopt != last_nonopt && last_nonopt != optind) 404 else if (last_nonopt != optind) 405 first_nonopt = optind; 410 while (optind < argc [all …]
|
/netbsd-src/external/gpl3/binutils/dist/libiberty/ |
H A D | getopt.c | 130 int optind = 1; variable 320 int top = optind; in exchange() 390 first_nonopt += (optind - last_nonopt); in exchange() 391 last_nonopt = optind; in exchange() 408 first_nonopt = last_nonopt = optind; in _getopt_initialize() 527 if (optind == 0 || !__getopt_initialized) in _getopt_internal() 529 if (optind == 0) in _getopt_internal() 530 optind = 1; /* Don't scan ARGV[0], the program name. */ in _getopt_internal() 540 # define NONOPTION_P (argv[optind][0] != '-' || argv[optind][1] == '\0' \ in _getopt_internal() 541 || (optind < nonoption_flags_len \ in _getopt_internal() [all …]
|
/netbsd-src/external/gpl3/gcc/dist/libiberty/ |
H A D | getopt.c | 130 int optind = 1; variable 320 int top = optind; in exchange() 390 first_nonopt += (optind - last_nonopt); in exchange() 391 last_nonopt = optind; in exchange() 408 first_nonopt = last_nonopt = optind; in _getopt_initialize() 527 if (optind == 0 || !__getopt_initialized) in _getopt_internal() 529 if (optind == 0) in _getopt_internal() 530 optind = 1; /* Don't scan ARGV[0], the program name. */ in _getopt_internal() 540 # define NONOPTION_P (argv[optind][0] != '-' || argv[optind][1] == '\0' \ in _getopt_internal() 541 || (optind < nonoption_flags_len \ in _getopt_internal() [all …]
|
/netbsd-src/external/gpl3/gcc.old/dist/libiberty/ |
H A D | getopt.c | 130 int optind = 1; variable 320 int top = optind; in exchange() 390 first_nonopt += (optind - last_nonopt); in exchange() 391 last_nonopt = optind; in exchange() 408 first_nonopt = last_nonopt = optind; in _getopt_initialize() 527 if (optind == 0 || !__getopt_initialized) in _getopt_internal() 529 if (optind == 0) in _getopt_internal() 530 optind = 1; /* Don't scan ARGV[0], the program name. */ in _getopt_internal() 540 # define NONOPTION_P (argv[optind][0] != '-' || argv[optind][1] == '\0' \ in _getopt_internal() 541 || (optind < nonoption_flags_len \ in _getopt_internal() [all …]
|
/netbsd-src/external/gpl2/gmake/dist/ |
H A D | getopt.c | 125 int optind = 1; variable 304 int top = optind; in exchange() 374 first_nonopt += (optind - last_nonopt); in exchange() 375 last_nonopt = optind; in exchange() 390 first_nonopt = last_nonopt = optind; in _getopt_initialize() 508 if (optind == 0 || !__getopt_initialized) in _getopt_internal() 510 if (optind == 0) in _getopt_internal() 511 optind = 1; /* Don't scan ARGV[0], the program name. */ in _getopt_internal() 521 # define NONOPTION_P (argv[optind][0] != '-' || argv[optind][1] == '\0' \ in _getopt_internal() 522 || (optind < nonoption_flags_len \ in _getopt_internal() [all …]
|
/netbsd-src/external/gpl3/binutils.old/dist/libiberty/ |
H A D | getopt.c | 130 int optind = 1; variable 320 int top = optind; in exchange() 390 first_nonopt += (optind - last_nonopt); in exchange() 391 last_nonopt = optind; in exchange() 408 first_nonopt = last_nonopt = optind; in _getopt_initialize() 527 if (optind == 0 || !__getopt_initialized) in _getopt_internal() 529 if (optind == 0) in _getopt_internal() 530 optind = 1; /* Don't scan ARGV[0], the program name. */ in _getopt_internal() 540 # define NONOPTION_P (argv[optind][0] != '-' || argv[optind][1] == '\0' \ in _getopt_internal() 541 || (optind < nonoption_flags_len \ in _getopt_internal() [all …]
|
/netbsd-src/external/gpl2/diffutils/dist/lib/ |
H A D | getopt.c | 129 int optind = 1; variable 318 int top = optind; 388 first_nonopt += (optind - last_nonopt); 389 last_nonopt = optind; 407 first_nonopt = last_nonopt = optind; 537 if (optind == 0 || !__getopt_initialized) 539 if (optind == 0) 540 optind = 1; /* Don't scan ARGV[0], the program name. */ 550 # define NONOPTION_P (argv[optind][0] != '-' || argv[optind][1] == '\0' \ 551 || (optind < nonoption_flags_len \ [all …]
|
/netbsd-src/external/gpl2/grep/dist/lib/ |
H A D | getopt.c | 127 int optind = 1; variable 310 int top = optind; 380 first_nonopt += (optind - last_nonopt); 381 last_nonopt = optind; 399 first_nonopt = last_nonopt = optind; 522 if (optind == 0 || !__getopt_initialized) 524 if (optind == 0) 525 optind = 1; /* Don't scan ARGV[0], the program name. */ 535 # define NONOPTION_P (argv[optind][0] != '-' || argv[optind][1] == '\0' \ 536 || (optind < nonoption_flags_len \ [all …]
|
/netbsd-src/external/gpl2/gettext/dist/gettext-runtime/gnulib-lib/ |
H A D | getopt.c | 90 int optind = 1; variable 156 int top = d->optind; in exchange() 226 d->__first_nonopt += (d->optind - d->__last_nonopt); in exchange() 227 d->__last_nonopt = d->optind; in exchange() 240 d->__first_nonopt = d->__last_nonopt = d->optind; in _getopt_initialize() 365 if (d->optind == 0 || !d->__initialized) in _getopt_internal_r() 367 if (d->optind == 0) in _getopt_internal_r() 368 d->optind = 1; /* Don't scan ARGV[0], the program name. */ in _getopt_internal_r() 379 # define NONOPTION_P (argv[d->optind][0] != '-' || argv[d->optind][1] == '\0' \ in _getopt_internal_r() 380 || (d->optind < d->__nonoption_flags_len \ in _getopt_internal_r() [all …]
|
/netbsd-src/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/ |
H A D | getopt.c | 90 int optind = 1; variable 156 int top = d->optind; in exchange() 226 d->__first_nonopt += (d->optind - d->__last_nonopt); in exchange() 227 d->__last_nonopt = d->optind; in exchange() 240 d->__first_nonopt = d->__last_nonopt = d->optind; in _getopt_initialize() 365 if (d->optind == 0 || !d->__initialized) in _getopt_internal_r() 367 if (d->optind == 0) in _getopt_internal_r() 368 d->optind = 1; /* Don't scan ARGV[0], the program name. */ in _getopt_internal_r() 379 # define NONOPTION_P (argv[d->optind][0] != '-' || argv[d->optind][1] == '\0' \ in _getopt_internal_r() 380 || (d->optind < d->__nonoption_flags_len \ in _getopt_internal_r() [all …]
|
/netbsd-src/external/gpl2/texinfo/dist/lib/ |
H A D | getopt.c | 105 int optind = 1; variable 178 int top = d->optind; in exchange() 248 d->__first_nonopt += (d->optind - d->__last_nonopt); in exchange() 249 d->__last_nonopt = d->optind; in exchange() 262 d->__first_nonopt = d->__last_nonopt = d->optind; in _getopt_initialize() 388 if (d->optind == 0 || !d->__initialized) in _getopt_internal_r() 390 if (d->optind == 0) in _getopt_internal_r() 391 d->optind = 1; /* Don't scan ARGV[0], the program name. */ in _getopt_internal_r() 401 # define NONOPTION_P (argv[d->optind][0] != '-' || argv[d->optind][1] == '\0' \ in _getopt_internal_r() 402 || (d->optind < d->__nonoption_flags_len \ in _getopt_internal_r() [all …]
|
/netbsd-src/external/gpl2/groff/dist/src/libs/libgroff/ |
H A D | getopt.c | 105 int optind = 1; variable 178 int top = d->optind; in exchange() 248 d->__first_nonopt += (d->optind - d->__last_nonopt); in exchange() 249 d->__last_nonopt = d->optind; in exchange() 262 d->__first_nonopt = d->__last_nonopt = d->optind; in _getopt_initialize() 387 if (d->optind == 0 || !d->__initialized) in _getopt_internal_r() 389 if (d->optind == 0) in _getopt_internal_r() 390 d->optind = 1; /* Don't scan ARGV[0], the program name. */ in _getopt_internal_r() 401 # define NONOPTION_P (argv[d->optind][0] != '-' || argv[d->optind][1] == '\0' \ in _getopt_internal_r() 402 || (d->optind < d->__nonoption_flags_len \ in _getopt_internal_r() [all …]
|
/netbsd-src/external/gpl2/xcvs/dist/lib/ |
H A D | getopt.c | 106 int optind = 1; variable 179 int top = d->optind; in exchange() 249 d->__first_nonopt += (d->optind - d->__last_nonopt); in exchange() 250 d->__last_nonopt = d->optind; in exchange() 263 d->__first_nonopt = d->__last_nonopt = d->optind; in _getopt_initialize() 388 if (d->optind == 0 || !d->__initialized) in _getopt_internal_r() 390 if (d->optind == 0) in _getopt_internal_r() 391 d->optind = 1; /* Don't scan ARGV[0], the program name. */ in _getopt_internal_r() 402 # define NONOPTION_P (argv[d->optind][0] != '-' || argv[d->optind][1] == '\0' \ in _getopt_internal_r() 403 || (d->optind < d->__nonoption_flags_len \ in _getopt_internal_r() [all …]
|
/netbsd-src/external/bsd/top/dist/ |
H A D | getopt.c | 73 int optind = 1; variable 86 if(optind >= argc || in getopt() 87 argv[optind][0] != '-' || argv[optind][1] == '\0') in getopt() 89 else if(strcmp(argv[optind], "--") == 0) { in getopt() 90 optind++; in getopt() 93 optopt = c = argv[optind][sp]; in getopt() 96 if(argv[optind][++sp] == '\0') { in getopt() 97 optind++; in getopt() 103 if(argv[optind][sp+1] != '\0') in getopt() 104 optarg = &argv[optind++][sp+1]; in getopt() [all …]
|
/netbsd-src/external/bsd/libfido2/dist/openbsd-compat/ |
H A D | getopt_long.c | 67 int optind = 1; /* index into parent argv vector */ variable 177 optind++; in parse_long_options() 239 optarg = nargv[optind++]; in parse_long_options() 258 --optind; in parse_long_options() 263 --optind; in parse_long_options() 299 if (optind == 0) in getopt_internal() 300 optind = optreset = 1; in getopt_internal() 321 if (optind >= nargc) { /* end of argument vector */ in getopt_internal() 326 optind, nargv); in getopt_internal() 327 optind -= nonopt_end - nonopt_start; in getopt_internal() [all …]
|
/netbsd-src/lib/libc/stdlib/ |
H A D | getopt_long.c | 61 int optind = 1; /* index into parent argv vector */ variable 183 if (optind == 0) in getopt_internal() 184 optind = 1; in getopt_internal() 191 if (optind >= nargc) { /* end of argument vector */ in getopt_internal() 196 optind, nargv); in getopt_internal() 197 optind -= nonopt_end - nonopt_start; in getopt_internal() 204 optind = nonopt_start; in getopt_internal() 209 if ((*(place = nargv[optind]) != '-') in getopt_internal() 217 optarg = nargv[optind++]; in getopt_internal() 229 nonopt_start = optind; in getopt_internal() [all …]
|
/netbsd-src/external/bsd/file/dist/src/ |
H A D | getopt_long.c | 70 int optind = 1; /* index into parent argv vector */ variable 201 if (optind == 0) 202 optind = 1; 209 if (optind >= nargc) { /* end of argument vector */ 214 optind, nargv); 215 optind -= nonopt_end - nonopt_start; 222 optind = nonopt_start; 227 if ((*(place = nargv[optind]) != '-') 235 optarg = nargv[optind++]; 247 nonopt_start = optind; [all …]
|
/netbsd-src/external/bsd/openldap/dist/libraries/liblutil/ |
H A D | getopt.c | 48 int optind = 1; variable 95 if (optind >= argc || argv[optind][0] != sw in getopt() 96 || argv[optind][1] == eos) in getopt() 98 else if (strcmp(argv[optind],"--") == 0) in getopt() 100 optind++; in getopt() 104 c = argv[optind][sp]; in getopt() 109 if (argv[optind][++sp] == eos) in getopt() 111 optind++; in getopt() 118 if (argv[optind][sp + 1] != eos) in getopt() 119 optarg = &argv[optind++][sp + 1]; in getopt() [all …]
|
/netbsd-src/external/gpl3/gcc.old/dist/gcc/ |
H A D | gcov-tool.c | 208 optind = 0; in do_merge() 233 if (argc - optind != 2) in do_merge() 236 return profile_merge (argv[optind], argv[optind+1], output_dir, w1, w2); in do_merge() 309 optind = 0; in do_rewrite() 374 if (argc - optind == 1) in do_rewrite() 377 ret = profile_rewrite (argv[optind], output_dir, 0, 0.0, numerator, denominator); in do_rewrite() 379 ret = profile_rewrite (argv[optind], output_dir, normalize_val, scale, 0, 0); in do_rewrite() 463 optind = 0; in do_overlap() 492 if (argc - optind == 2) in do_overlap() 493 ret = profile_overlap (argv[optind], argv[optind+1]); in do_overlap() [all …]
|
/netbsd-src/external/gpl3/gcc/dist/gcc/ |
H A D | gcov-tool.cc | 208 optind = 0; in do_merge() 233 if (argc - optind != 2) in do_merge() 236 return profile_merge (argv[optind], argv[optind+1], output_dir, w1, w2); in do_merge() 309 optind = 0; in do_rewrite() 374 if (argc - optind == 1) in do_rewrite() 377 ret = profile_rewrite (argv[optind], output_dir, 0, 0.0, numerator, denominator); in do_rewrite() 379 ret = profile_rewrite (argv[optind], output_dir, normalize_val, scale, 0, 0); in do_rewrite() 463 optind = 0; in do_overlap() 492 if (argc - optind == 2) in do_overlap() 493 ret = profile_overlap (argv[optind], argv[optind+1]); in do_overlap() [all …]
|
/netbsd-src/libexec/httpd/ |
H A D | main.c | 194 if (argc - optind < 1) in main() 197 argv[optind++]); in main() 268 if (argc - optind < 1) in main() 270 bozo_add_lua_map(&httpd, optarg, argv[optind]); in main() 271 optind++; in main() 280 if (argc - optind < 3) in main() 282 bozo_add_content_map_mime(&httpd, optarg, argv[optind], in main() 283 argv[optind+1], argv[optind+2]); in main() 284 optind += 3; in main() 338 if (argc - optind < 1) in main() [all …]
|
/netbsd-src/external/bsd/libpcap/dist/missing/ |
H A D | getopt.c | 45 optind = 1, /* index into parent argv vector */ variable 74 if (optind >= nargc || *(place = nargv[optind]) != '-') { in getopt() 79 ++optind; in getopt() 87 ++optind; in getopt() 102 ++optind; in getopt() 111 ++optind; in getopt() 116 else if (nargc <= ++optind) { /* no arg */ in getopt() 127 optarg = nargv[optind]; in getopt() 129 ++optind; in getopt()
|
/netbsd-src/external/ibm-public/postfix/dist/src/postconf/ |
H A D | postconf.c | 973 && argv[optind] && strchr(argv[optind], '=')) in main() 982 if ((pcf_cmd_mode & PCF_EDIT_CONF) && argc == optind) in main() 989 if (argv[optind]) { in main() 990 if (argv[optind + 1]) in main() 994 argv[optind], (char *) 0), in main() 1035 pcf_show_master_fields(VSTREAM_OUT, pcf_cmd_mode, argc - optind, in main() 1036 argv + optind); in main() 1038 pcf_show_master_params(VSTREAM_OUT, pcf_cmd_mode, argc - optind, in main() 1039 argv + optind); in main() 1041 pcf_show_master_entries(VSTREAM_OUT, pcf_cmd_mode, argc - optind, in main() [all …]
|
/netbsd-src/sys/arch/hppa/stand/mkboot/ |
H A D | mkboot.c | 160 if (argc - optind < 2) in main() 162 else if (argc - optind > 8) in main() 184 argv += optind; in main() 185 argc -= optind; in main() 186 optind = 0; in main() 187 for (pos = HPPA_LIF_FILESTART; optind < argc; optind++) { in main() 192 lifd[optind].dir_addr = htobe32(hppa_btolifs(pos)); in main() 193 n = hppa_btolifs(putfile(argv[optind], to)); in main() 197 lifd[optind] in main() [all...] |
/netbsd-src/external/ibm-public/postfix/dist/src/postalias/ |
H A D | postalias.c | 863 if (optind + 1 > argc) in main() 866 exit(postalias_deletes(VSTREAM_IN, argv + optind, argc - optind, in main() 869 while (optind < argc) { in main() 870 if ((path_name = split_at(argv[optind], ':')) != 0) { in main() 871 found |= postalias_delete(argv[optind], path_name, delkey, in main() 874 found |= postalias_delete(var_db_type, argv[optind], delkey, in main() 877 optind++; in main() 881 if (optind + 1 > argc) in main() 884 exit(postalias_queries(VSTREAM_IN, argv + optind, argc - optind, in main() 886 while (optind < argc) { in main() [all …]
|