summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/unistd.h15
-rw-r--r--sys/sys/uio.h6
2 files changed, 18 insertions, 3 deletions
diff --git a/include/unistd.h b/include/unistd.h
index 050ec914e31..d1b1eef5608 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: unistd.h,v 1.30 2000/02/19 13:21:25 deraadt Exp $ */
+/* $OpenBSD: unistd.h,v 1.31 2000/04/20 06:34:18 deraadt Exp $ */
/* $NetBSD: unistd.h,v 1.26.4.1 1996/05/28 02:31:51 mrg Exp $ */
/*-
@@ -112,6 +112,15 @@ ssize_t write __P((int, const void *, size_t));
/* structure timeval required for select() */
#include <sys/time.h>
+/*
+ * X/Open CAE Specification Issue 5 Version 2
+ */
+#if (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)) || \
+ (_XOPEN_VERSION - 0) >= 500
+ssize_t pread __P((int, void *, size_t, off_t));
+ssize_t pwrite __P((int, const void *, size_t, off_t));
+#endif
+
int acct __P((const char *));
char *brk __P((const char *));
int chroot __P((const char *));
@@ -165,9 +174,11 @@ int rresvport_af __P((int *, int));
int ruserok __P((const char *, int, const char *, const char *));
int quotactl __P((const char *, int, int, char *));
char *sbrk __P((int));
-#ifndef _XOPEN_SOURCE
+
+#if !defined(_XOPEN_SOURCE)
int select __P((int, fd_set *, fd_set *, fd_set *, struct timeval *));
#endif
+
int setdomainname __P((const char *, size_t));
int setegid __P((gid_t));
int seteuid __P((uid_t));
diff --git a/sys/sys/uio.h b/sys/sys/uio.h
index 09a6dbe34c3..ff57953aaea 100644
--- a/sys/sys/uio.h
+++ b/sys/sys/uio.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: uio.h,v 1.7 1999/01/20 22:08:59 art Exp $ */
+/* $OpenBSD: uio.h,v 1.8 2000/04/20 06:34:17 deraadt Exp $ */
/* $NetBSD: uio.h,v 1.12 1996/02/09 18:25:45 christos Exp $ */
/*
@@ -75,6 +75,10 @@ struct uio {
#include <sys/cdefs.h>
__BEGIN_DECLS
+#if !defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)
+ssize_t preadv __P((int, const struct iovec *, int, off_t));
+ssize_t pwritev __P((int, const struct iovec *, int, off_t));
+#endif /* !_POSIX_C_SOURCE && !_XOPEN_SOURCE */
ssize_t readv __P((int, const struct iovec *, int));
ssize_t writev __P((int, const struct iovec *, int));
__END_DECLS