summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>1999-01-11 06:01:29 +0000
committermsmith <msmith@FreeBSD.org>1999-01-11 06:01:29 +0000
commit192ad366a1277ebc36c037b0a2b9b7bb1ea780c0 (patch)
treeadf5d5e8034916f1e4f285610c8133a47449bee5 /include
parent527d38004287b902c38fe10e89f784d7251c79b3 (diff)
downloadFreeBSD-src-192ad366a1277ebc36c037b0a2b9b7bb1ea780c0.zip
FreeBSD-src-192ad366a1277ebc36c037b0a2b9b7bb1ea780c0.tar.gz
POSIX introduced optreset to deal with multiple invocations
of getopt (as in, multiple input lines :). This is documented in the man page and is used in the code, but unistd.h and stand.h do not declare it. Incidentally, it prevents me fixing a bug in loader's code... :-) PR: misc/9373 Submitted by: "Daniel C. Sobral" <dcs@newsguy.com>
Diffstat (limited to 'include')
-rw-r--r--include/unistd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/unistd.h b/include/unistd.h
index e88da17..eec9a95 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -199,6 +199,7 @@ int usleep __P((unsigned int));
void *valloc __P((size_t)); /* obsoleted by malloc() */
pid_t vfork __P((void));
+extern optreset; /* getopt(3) external variable */
extern char *suboptarg; /* getsubopt(3) external variable */
int getsubopt __P((char **, char * const *, char **));
#endif /* !_POSIX_SOURCE */
OpenPOWER on IntegriCloud