/freebsd-11-stable/contrib/gdb/gdb/mi/ |
H A D | mi-getopt.c | 30 int *optind, char **optarg) 35 if (*optind > argc || *optind < 0) 37 "mi_getopt_long: optind out of bounds"); 38 if (*optind == argc) 40 arg = argv[*optind]; 44 *optind += 1; 62 if (argc < *optind + 2) 64 *optarg = argv[(*optind) + 1]; 65 *optind 27 mi_getopt(const char *prefix, int argc, char **argv, struct mi_opt *opts, int *optind, char **optarg) argument 81 int optind = 0; local [all...] |
H A D | mi-getopt.h | 46 struct mi_opt *opt, int *optind, char **optarg);
|
H A D | mi-cmd-break.c | 98 int optind = 0; local 102 int opt = mi_getopt ("mi_cmd_break_insert", argc, argv, opts, &optind, &optarg); 130 if (optind >= argc) 132 if (optind < argc - 1) 134 address = argv[optind]; 201 int optind = 0; local 205 int opt = mi_getopt ("mi_cmd_break_watch", argc, argv, opts, &optind, &optarg); 218 if (optind >= argc) 220 if (optind < argc - 1) 222 expr = argv[optind]; [all...] |
H A D | mi-cmd-env.c | 119 int optind = 0; local 145 &optind, &optarg); 155 argv += optind; 156 argc -= optind; 191 int optind = 0; local 217 &optind, &optarg); 227 argv += optind; 228 argc -= optind;
|
/freebsd-11-stable/contrib/top/ |
H A D | getopt.c | 41 int optind = 1; variable 55 if(optind >= argc || 56 argv[optind][0] != '-' || argv[optind][1] == '\0') 58 else if(strcmp(argv[optind], "--") == 0) { 59 optind++; 62 optopt = c = argv[optind][sp]; 65 if(argv[optind][++sp] == '\0') { 66 optind++; 72 if(argv[optind][s [all...] |
/freebsd-11-stable/stand/libsa/ |
H A D | getopt.c | 41 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;
|
/freebsd-11-stable/contrib/libpcap/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; 93 ++optind; 102 ++optind; 107 else if (nargc <= ++optind) { /* no arg */ 118 optarg = nargv[optind]; 120 ++optind;
|
/freebsd-11-stable/contrib/bmake/ |
H A D | getopt.c | 48 optind = 1, /* index into parent argv vector */ variable 75 place = nargv[optind]; 76 if (optind >= nargc || *place++ != '-') { 84 ++optind; 102 ++optind; 114 ++optind; 126 else if (nargc > ++optind) 127 optarg = nargv[optind]; 140 ++optind; 179 if (optind < arg [all...] |
/freebsd-11-stable/contrib/gcclibs/libiberty/ |
H A D | getopt.c | 128 Otherwise, `optind' communicates from one call to the next 132 int optind = 1; 134 /* Formerly, initialization of getopt depended on optind==0, which 187 `--' can cause `getopt' to return -1 with `optind' != ARGC. */ 309 The other is elements [last_nonopt,optind), which contains all 324 int top = optind; 394 first_nonopt += (optind - last_nonopt); 395 last_nonopt = optind; 412 first_nonopt = last_nonopt = optind; 479 updating `optind' an 131 int optind = 1; variable [all...] |
H A D | getopt1.c | 104 int this_option_optind = optind ? optind : 1; 171 if (optind < argc) 174 while (optind < argc) 175 printf ("%s ", argv[optind++]);
|
/freebsd-11-stable/lib/libc/stdlib/ |
H A D | getopt.c | 48 optind = 1, /* index into parent argv vector */ variable 69 place = nargv[optind]; 70 if (optind >= nargc || *place++ != '-') { 78 ++optind; 96 ++optind; 109 ++optind; 121 else if (nargc > ++optind) 122 optarg = nargv[optind]; 135 ++optind;
|
H A D | getopt_long.c | 74 int optind = 1; /* index into parent argv vector */ variable 223 optind++; 304 optarg = nargv[optind++]; 326 --optind; 331 --optind; 368 * XXX Some GNU programs (like cvs) set optind to 0 instead of 371 if (optind == 0) 372 optind = optreset = 1; 393 if (optind >= nargc) { /* end of argument vector */ 398 optind, narg [all...] |
/freebsd-11-stable/crypto/heimdal/lib/roken/ |
H A D | getopt.c | 48 ROKEN_LIB_VARIABLE int optind = 1; /* index into parent argv vector */ variable 66 if (optind >= nargc || *(place = nargv[optind]) != '-') { 71 ++optind; 85 ++optind; 99 ++optind; 104 else if (nargc <= ++optind) { /* no arg */ 119 optarg = nargv[optind]; 121 ++optind;
|
/freebsd-11-stable/usr.bin/getopt/ |
H A D | getopt.c | 25 optind = 2; /* Past the program name and the option letters. */ 39 for (; optind < argc; optind++) 40 printf(" %s", argv[optind]);
|
/freebsd-11-stable/sbin/nvmecontrol/ |
H A D | reset.c | 65 if (optind >= argc) 68 open_dev(argv[optind], &fd, 1, 1); 70 err(1, "reset request to %s failed", argv[optind]);
|
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/cmd/jdtrace/ |
H A D | Getopt.java | 49 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...] |
/freebsd-11-stable/bin/pax/ |
H A D | getoldopt.c | 41 optind = 2; 61 if (optind < argc) { 62 optarg = argv[optind]; 63 optind++;
|
/freebsd-11-stable/contrib/tcpdump/ |
H A D | getopt_long.h | 64 extern int optind, opterr, optopt;
|
/freebsd-11-stable/crypto/openssh/openbsd-compat/ |
H A D | getopt_long.c | 59 * getopt opterr optind optopt optreset optarg are all in defines.h which is 76 int optind = 1; /* index into parent argv vector */ variable 186 optind++; 248 optarg = nargv[optind++]; 267 --optind; 272 --optind; 305 * XXX Some GNU programs (like cvs) set optind to 0 instead of 308 if (optind == 0) 309 optind = optreset = 1; 330 if (optind > [all...] |
/freebsd-11-stable/contrib/tcpdump/missing/ |
H A D | getopt_long.c | 83 int optind, opterr = 1, optopt; variable 220 optind++; 301 optarg = nargv[optind++]; 323 --optind; 328 --optind; 384 * XXX Some GNU programs (like cvs) set optind to 0 instead of 387 if (optind == 0) 388 optind = 1; 393 if (optind >= nargc) { /* end of argument vector */ 398 optind, narg [all...] |
/freebsd-11-stable/contrib/file/src/ |
H A D | getopt_long.c | 64 int optind = 1; /* index into parent argv vector */ variable 192 * XXX re-initialize optind to 0 and have getopt_long(3) 195 if (optind == 0) 196 optind = 1; 203 if (optind >= nargc) { /* end of argument vector */ 208 optind, nargv); 209 optind -= nonopt_end - nonopt_start; 213 * If we skipped non-options, set optind 216 optind = nonopt_start; 221 if ((*(place = nargv[optind]) ! [all...] |
/freebsd-11-stable/contrib/llvm-project/lldb/source/Host/common/ |
H A D | GetOptInc.cpp | 21 int optind = 1; /* index into parent argv vector */ variable 122 optind++; 179 optarg = nargv[optind++]; 197 --optind; 202 --optind; 234 * XXX Some GNU programs (like cvs) set optind to 0 instead of 237 if (optind == 0) 238 optind = optreset = 1; 259 if (optind >= nargc) { /* end of argument vector */ 263 permute_args(nonopt_start, nonopt_end, optind, narg [all...] |
/freebsd-11-stable/contrib/atf/atf-c/ |
H A D | tp_test.c | 73 ATF_REQUIRE_EQ_MSG(1, argc - optind, "Invalid number of arguments left " 75 ATF_CHECK_STREQ_MSG("foo", argv[optind], "The non-option argument is "
|
/freebsd-11-stable/usr.sbin/accton/ |
H A D | accton.c | 64 argc -= optind; 65 argv += optind;
|