Searched refs:optind (Results 1 - 25 of 356) sorted by relevance

1234567891011>>

/external/syslinux/com32/lib/
H A Dgetopt.c12 int optind, opterr, optopt; variable
33 optind < 1 || optind > argc) {
34 /* optind doesn't match the current query */
37 optind = 1;
41 carg = argv[optind];
50 optind++;
55 /* Someone frobbed optind, change to new opt. */
67 optind++;
71 if (argv[optind
[all...]
H A Dgetopt_long.c17 int optind, opterr, optopt; variable
53 optind < 1 || optind > argc) {
54 /* optind doesn't match the current query */
57 optind = 1;
61 carg = argv[optind];
72 optind++;
96 if (!(optarg = argv[optind]))
98 optind++;
110 /* Someone frobbed optind, chang
[all...]
/external/libpcap/missing/
H A Dgetopt.h5 extern int optind, opterr, optopt;
H A Dgetopt.c45 optind = 1, /* index into parent argv vector */ variable
77 if (optind >= nargc || *(place = nargv[optind]) != '-') {
82 ++optind;
96 ++optind;
105 ++optind;
110 else if (nargc <= ++optind) { /* no arg */
121 optarg = nargv[optind];
123 ++optind;
/external/c-ares/
H A Dares_getopt.h37 #undef optind macro
43 #define optind ares_optind macro
49 extern int optind;
H A Dares_getopt.c52 optind = 1; /* index into parent argv vector */ variable
73 if (optind >= nargc || *(place = nargv[optind]) != '-') {
78 ++optind;
92 ++optind;
101 ++optind;
106 else if (nargc <= ++optind) { /* no arg */
117 optarg = nargv[optind];
119 ++optind;
/external/syslinux/libinstaller/getopt/
H A Dgetopt_long.c17 int optind, opterr, optopt; variable
53 optind < 1 || optind > argc) {
54 /* optind doesn't match the current query */
57 optind = 1;
61 carg = argv[optind];
72 optind++;
96 if (!(optarg = argv[optind]))
98 optind++;
110 /* Someone frobbed optind, chang
[all...]
H A Dgetopt.h20 extern int optind, opterr, optopt;
/external/fio/oslib/
H A Dgetopt_long.c20 int optind = 0, opterr = 0, optopt = 0; variable
59 optind < 1 || optind > argc) {
60 /* optind doesn't match the current query */
63 optind = 1;
67 carg = argv[optind];
78 optind++;
128 if (!(optarg = argv[optind]))
130 optind++;
142 /* Someone frobbed optind, chang
[all...]
/external/libusb/examples/getopt/
H A Dgetopt.c125 Otherwise, `optind' communicates from one call to the next
129 int optind = 1;
131 /* Formerly, initialization of getopt depended on optind==0, which
184 `--' can cause `getopt' to return -1 with `optind' != ARGC. */
296 The other is elements [last_nonopt,optind), which contains all
312 int top = optind;
382 first_nonopt += (optind - last_nonopt);
383 last_nonopt = optind;
401 first_nonopt = last_nonopt = optind;
468 updating `optind' an
128 int optind = 1; variable
[all...]
H A Dgetopt1.c112 int this_option_optind = optind ? optind : 1;
179 if (optind < argc)
182 while (optind < argc)
183 printf ("%s ", argv[optind++]);
/external/selinux/libselinux/utils/
H A Dselinux_check_access.c38 if ((argc - optind) != 4)
45 rc = selinux_check_access(argv[optind], argv[optind + 1],
46 argv[optind + 2], argv[optind + 3],
H A Dgetconlist.c36 if (((argc - optind) < 1) || ((argc - optind) > 2))
46 user = argv[optind];
49 if (((argc - optind) < 2)) {
55 cur_context = argv[optind + 1];
/external/syslinux/gpxe/src/hci/commands/
H A Dgdbstub_cmd.c74 if ( optind == argc ) {
79 trans_name = argv[optind++];
89 if ( trans->init ( argc - optind, &argv[optind] ) != 0 ) {
/external/tcpdump/
H A Dgetopt_long.h64 extern int optind, opterr, optopt;
/external/ltp/pan/
H A Dltp-bump.c80 if (optind == argc) {
91 while (optind < argc) {
92 /*printf("argv[%d] = (%s)\n", optind, argv[optind] ); */
93 nanny = zoo_getpid(zoo, argv[optind]);
96 argv[optind]);
102 argv[optind], nanny);
110 ++optind;
/external/syslinux/gpxe/src/core/
H A Dgetopt.c44 * @c optind is the index to the first element that is not an option.
46 int optind; variable
76 if ( optind >= argc )
78 arg = argv[optind];
87 optind++;
121 optind++;
182 optind++;
187 optind++;
226 const char *opttext = argv[optind];
233 if ( optind >
[all...]
/external/mesa3d/src/getopt/
H A Dgetopt_long.c59 int optind = 1; /* index into parent argv vector */ variable
169 optind++;
231 optarg = nargv[optind++];
250 --optind;
255 --optind;
301 * XXX Some GNU programs (like cvs) set optind to 0 instead of
304 if (optind == 0)
305 optind = optreset = 1;
313 if (optind >= nargc) { /* end of argument vector */
318 optind, narg
[all...]
/external/openssh/openbsd-compat/
H A Dgetopt_long.c59 * 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...]
/external/tcpdump/missing/
H A Dgetopt_long.c83 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...]
/external/ltp/testcases/kernel/syscalls/utimensat/
H A Dutimensat01.c150 if ((optind + 5 != argc) && (optind + 1 != argc))
168 pathname = (strcmp(argv[optind], "NULL") == 0) ? NULL : argv[optind];
176 if (argc == optind + 1) {
180 ts[0].tv_sec = atoi(argv[optind + 1]);
181 if (argv[optind + 2][0] == 'n') {
183 } else if (argv[optind + 2][0] == 'o') {
186 ts[0].tv_nsec = atoi(argv[optind + 2]);
189 ts[1].tv_sec = atoi(argv[optind
[all...]
/external/bison/lib/
H A Dgetopt1.c94 int this_option_optind = optind ? optind : 1;
161 if (optind < argc)
164 while (optind < argc)
165 printf ("%s ", argv[optind++]);
/external/libnl/src/
H A Dnl-link-stats.c59 if (optind >= gargc) {
65 while (optind < gargc) {
66 int id = rtnl_link_str2stat(argv[optind]);
70 "\"%s\"\n", argv[optind]);
74 optind++;
/external/libunwind/tests/
H A Dtest-ptrace.c173 int status, pid, pending_sig, optind = 1, state = 1; local
187 while (argv[optind][0] == '-')
189 if (strcmp (argv[optind], "-v") == 0)
190 ++optind, verbose = 1;
191 else if (strcmp (argv[optind], "-i") == 0)
192 ++optind, trace_mode = INSTRUCTION; /* backtrace at each insn */
193 else if (strcmp (argv[optind], "-s") == 0)
194 ++optind, trace_mode = SYSCALL; /* backtrace at each syscall */
195 else if (strcmp (argv[optind], "-t") == 0)
198 ++optind, trace_mod
[all...]
/external/e2fsprogs/tests/progs/
H A Dcrcsum.c47 if (optind == argc)
50 f = fopen(argv[optind], "r");
53 argv[optind]);

Completed in 958 milliseconds

1234567891011>>