From a79658408cb5bd67da5f09224af8011736de2ee3 Mon Sep 17 00:00:00 2001 From: Mike Smith Date: Mon, 11 Jan 1999 06:01:29 +0000 Subject: 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" --- include/unistd.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/unistd.h b/include/unistd.h index e88da1713814..eec9a95565e0 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 */ -- cgit v1.3