From f635e3d3fe547173e7c723038996fbe151718b1d Mon Sep 17 00:00:00 2001 From: peter Date: Tue, 11 Mar 1997 11:18:25 +0000 Subject: Merge Lite2 changes - move getopt etc declarations from stdlib.h to unistd.h --- include/unistd.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'include/unistd.h') diff --git a/include/unistd.h b/include/unistd.h index 7428f5d..f16c34b 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * @(#)unistd.h 8.10 (Berkeley) 4/16/94 + * @(#)unistd.h 8.12 (Berkeley) 4/27/95 */ #ifndef _UNISTD_H_ @@ -95,6 +95,10 @@ char *ttyname __P((int)); int unlink __P((const char *)); ssize_t write __P((int, const void *, size_t)); +extern char *optarg; /* getopt(3) external variables */ +extern int optind, opterr, optopt; +int getopt __P((int, char * const [], const char *)); + #ifndef _POSIX_SOURCE #ifdef __STDC__ struct timeval; /* select(2) */ @@ -169,9 +173,13 @@ off_t __syscall __P((quad_t, ...)); int truncate __P((const char *, off_t)); int ttyslot __P((void)); unsigned int ualarm __P((unsigned int, unsigned int)); +int unwhiteout __P((const char *)); void usleep __P((unsigned int)); void *valloc __P((size_t)); /* obsoleted by malloc() */ pid_t vfork __P((void)); + +extern char *suboptarg; /* getsubopt(3) external variable */ +int getsubopt __P((char **, char * const *, char **)); #endif /* !_POSIX_SOURCE */ __END_DECLS -- cgit v1.1