/netbsd-current/external/bsd/top/dist/ |
H A D | getopt.c | 73 int optind = 1; variable 86 if(optind >= argc || 87 argv[optind][0] != '-' || argv[optind][1] == '\0') 89 else if(strcmp(argv[optind], "--") == 0) { 90 optind++; 93 optopt = c = argv[optind][sp]; 96 if(argv[optind][++sp] == '\0') { 97 optind++; 103 if(argv[optind][s [all...] |
/netbsd-current/sys/arch/i386/stand/libsa/ |
H A D | getopt.c | 38 optind = 1, /* index into parent argv vector */ variable 59 if (optind >= nargc || *(place = nargv[optind]) != '-') { 64 ++optind; 78 ++optind; 86 ++optind; 91 else if (nargc <= ++optind) { /* no arg */ 101 optarg = nargv[optind]; 103 ++optind;
|
/netbsd-current/sys/arch/ia64/stand/common/ |
H A D | getopt.c | 38 optind = 1, /* index into parent argv vector */ variable 59 if (optind >= nargc || *(place = nargv[optind]) != '-') { 64 ++optind; 78 ++optind; 86 ++optind; 91 else if (nargc <= ++optind) { /* no arg */ 101 optarg = nargv[optind]; 103 ++optind;
|
/netbsd-current/sys/arch/arc/stand/boot/ |
H A D | getopt.c | 38 optind = 1, /* index into parent argv vector */ variable 59 if (optind >= nargc || *(place = nargv[optind]) != '-') { 64 ++optind; 78 ++optind; 86 ++optind; 91 else if (nargc <= ++optind) { /* no arg */ 101 optarg = nargv[optind]; 103 ++optind;
|
/netbsd-current/sys/arch/sgimips/stand/common/ |
H A D | getopt.c | 38 optind = 1, /* index into parent argv vector */ variable 59 if (optind >= nargc || *(place = nargv[optind]) != '-') { 64 ++optind; 78 ++optind; 86 ++optind; 91 else if (nargc <= ++optind) { /* no arg */ 101 optarg = nargv[optind]; 103 ++optind;
|
/netbsd-current/external/bsd/libpcap/dist/missing/ |
H A D | getopt.h | 5 extern int optind, opterr, optreset, optopt;
|
H A D | getopt.c | 45 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...] |
/netbsd-current/usr.bin/getopt/ |
H A D | getopt.c | 23 optind = 2; /* Past the program name and the option letters. */ 37 for (; optind < argc; optind++) 38 printf(" %s", argv[optind]);
|
/netbsd-current/external/bsd/openldap/dist/libraries/liblutil/ |
H A D | getopt.c | 48 int optind = 1; variable 95 if (optind >= argc || argv[optind][0] != sw 96 || argv[optind][1] == eos) 98 else if (strcmp(argv[optind],"--") == 0) 100 optind++; 104 c = argv[optind][sp]; 109 if (argv[optind][++sp] == eos) 111 optind++; 118 if (argv[optind][s [all...] |
/netbsd-current/external/gpl2/gmake/dist/ |
H A D | getopt.c | 121 Otherwise, `optind' communicates from one call to the next 125 int optind = 1; variable 127 /* Formerly, initialization of getopt depended on optind==0, which 180 `--' can cause `getopt' to return -1 with `optind' != ARGC. */ 291 The other is elements [last_nonopt,optind), which contains all 306 int top = optind; 376 first_nonopt += (optind - last_nonopt); 377 last_nonopt = optind; 392 first_nonopt = last_nonopt = optind; 459 updating `optind' an [all...] |
/netbsd-current/external/gpl2/diffutils/dist/lib/ |
H A D | getopt.c | 126 Otherwise, `optind' communicates from one call to the next 130 int optind = 1; 132 /* Formerly, initialization of getopt depended on optind==0, which 185 `--' can cause `getopt' to return -1 with `optind' != ARGC. */ 305 The other is elements [last_nonopt,optind), which contains all 321 int top = optind; 391 first_nonopt += (optind - last_nonopt); 392 last_nonopt = optind; 410 first_nonopt = last_nonopt = optind; 477 updating `optind' an 129 int optind = 1; variable [all...] |
/netbsd-current/external/gpl2/grep/dist/lib/ |
H A D | getopt.c | 124 Otherwise, `optind' communicates from one call to the next 128 int optind = 1; 130 /* Formerly, initialization of getopt depended on optind==0, which 183 `--' can cause `getopt' to return -1 with `optind' != ARGC. */ 297 The other is elements [last_nonopt,optind), which contains all 313 int top = optind; 383 first_nonopt += (optind - last_nonopt); 384 last_nonopt = optind; 402 first_nonopt = last_nonopt = optind; 469 updating `optind' an 127 int optind = 1; variable [all...] |
/netbsd-current/external/gpl3/binutils/dist/libiberty/ |
H A D | getopt.c | 127 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. */ 308 The other is elements [last_nonopt,optind), which contains all 323 int top = optind; 393 first_nonopt += (optind - last_nonopt); 394 last_nonopt = optind; 411 first_nonopt = last_nonopt = optind; 478 updating `optind' an 130 int optind = 1; variable [all...] |
/netbsd-current/external/gpl3/binutils.old/dist/libiberty/ |
H A D | getopt.c | 127 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. */ 308 The other is elements [last_nonopt,optind), which contains all 323 int top = optind; 393 first_nonopt += (optind - last_nonopt); 394 last_nonopt = optind; 411 first_nonopt = last_nonopt = optind; 478 updating `optind' an 130 int optind = 1; variable [all...] |
/netbsd-current/external/gpl3/gcc.old/dist/libiberty/ |
H A D | getopt.c | 127 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. */ 308 The other is elements [last_nonopt,optind), which contains all 323 int top = optind; 393 first_nonopt += (optind - last_nonopt); 394 last_nonopt = optind; 411 first_nonopt = last_nonopt = optind; 478 updating `optind' an 130 int optind = 1; variable [all...] |
/netbsd-current/external/gpl3/gdb.old/dist/libiberty/ |
H A D | getopt.c | 127 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. */ 308 The other is elements [last_nonopt,optind), which contains all 323 int top = optind; 393 first_nonopt += (optind - last_nonopt); 394 last_nonopt = optind; 411 first_nonopt = last_nonopt = optind; 478 updating `optind' an 130 int optind = 1; variable [all...] |
/netbsd-current/external/gpl3/gcc/dist/libiberty/ |
H A D | getopt.c | 127 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. */ 308 The other is elements [last_nonopt,optind), which contains all 323 int top = optind; 393 first_nonopt += (optind - last_nonopt); 394 last_nonopt = optind; 411 first_nonopt = last_nonopt = optind; 478 updating `optind' an 130 int optind = 1; variable [all...] |
/netbsd-current/external/gpl3/gdb/dist/libiberty/ |
H A D | getopt.c | 127 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. */ 308 The other is elements [last_nonopt,optind), which contains all 323 int top = optind; 393 first_nonopt += (optind - last_nonopt); 394 last_nonopt = optind; 411 first_nonopt = last_nonopt = optind; 478 updating `optind' an 130 int optind = 1; variable [all...] |
/netbsd-current/usr.bin/netgroup/ |
H A D | netgroup.c | 69 if (optind >= argc) 72 for(; optind < argc; optind++) { 73 setnetgrent(argv[optind]);
|
/netbsd-current/crypto/external/bsd/heimdal/dist/lib/roken/ |
H A D | getopt.c | 50 ROKEN_LIB_VARIABLE int optind = 1; /* index into parent argv vector */ variable 68 if (optind >= nargc || *(place = nargv[optind]) != '-') { 73 ++optind; 87 ++optind; 101 ++optind; 106 else if (nargc <= ++optind) { /* no arg */ 121 optarg = nargv[optind]; 123 ++optind;
|
/netbsd-current/external/bsd/libevent/dist/WIN32-Code/ |
H A D | getopt.c | 51 optind = 1, /* index into parent argv vector */ variable 99 if (optind >= nargc || *(place = nargv[optind]) != '-') { 105 ++optind; 119 ++optind; 128 ++optind; 133 else if (nargc <= ++optind) { /* no arg */ 144 optarg = nargv[optind]; 146 ++optind;
|
/netbsd-current/lib/libc/stdlib/ |
H A D | getopt.c | 49 optind = 1, /* index into parent argv vector */ 73 place = nargv[optind]; 74 if (optind >= nargc || *place++ != '-') { 82 ++optind; 100 ++optind; 113 ++optind; 125 else if (nargc > ++optind) 126 optarg = nargv[optind]; 139 ++optind;
|
/netbsd-current/external/bsd/openldap/dist/include/ |
H A D | getopt-compat.h | 31 #define optind lutil_optind macro 37 LDAP_LUTIL_V (int) optind, opterr, optopt;
|
/netbsd-current/usr.bin/innetgr/ |
H A D | innetgr.c | 76 if (optind >= argc) 79 for(; optind < argc; optind++) { 80 ok = innetgr(argv[optind], host, user, domain); 82 printf("%s: %d\n", argv[optind], ok);
|
/netbsd-current/distrib/utils/more/ |
H A D | option.c | 75 optind = 1; /* called twice, re-init getopt. */ 85 p = argv[optind - 1]; 89 sc_height = atoi(argv[optind] + 1); 127 return(optind);
|