summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2001-05-05 22:58:31 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2001-05-05 22:58:31 +0000
commitfbc34f799cbcfd6cc636431f98c50270d8217cf6 (patch)
tree235e507f1fdfe2bd3c976ccabfdfa0850be6d4df /lib
parent6c55b4cc33c2c440926274fc865516a32b843a4b (diff)
Add missing __syscall() proto to fix pread() & friends on big endian
machines. Found by me, solved by Theo ;-)
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/pread.c5
-rw-r--r--lib/libc/sys/preadv.c5
-rw-r--r--lib/libc/sys/pwrite.c5
-rw-r--r--lib/libc/sys/pwritev.c5
4 files changed, 12 insertions, 8 deletions
diff --git a/lib/libc/sys/pread.c b/lib/libc/sys/pread.c
index ba8f98afee7..f9e7ac0de0f 100644
--- a/lib/libc/sys/pread.c
+++ b/lib/libc/sys/pread.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pread.c,v 1.1 2000/04/20 06:34:37 deraadt Exp $ */
+/* $OpenBSD: pread.c,v 1.2 2001/05/05 22:58:29 millert Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -34,7 +34,7 @@
*/
#if defined(SYSLIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: pread.c,v 1.1 2000/04/20 06:34:37 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: pread.c,v 1.2 2001/05/05 22:58:29 millert Exp $";
#endif /* SYSLIBC_SCCS and not lint */
#include <sys/types.h>
@@ -52,6 +52,7 @@ pread(fd, buf, nbyte, offset)
size_t nbyte;
off_t offset;
{
+ extern off_t __syscall();
quad_t q;
int rv;
diff --git a/lib/libc/sys/preadv.c b/lib/libc/sys/preadv.c
index 2608da327f5..99a3dfecfd0 100644
--- a/lib/libc/sys/preadv.c
+++ b/lib/libc/sys/preadv.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: preadv.c,v 1.1 2000/04/20 06:34:37 deraadt Exp $ */
+/* $OpenBSD: preadv.c,v 1.2 2001/05/05 22:58:29 millert Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -34,7 +34,7 @@
*/
#if defined(SYSLIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: preadv.c,v 1.1 2000/04/20 06:34:37 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: preadv.c,v 1.2 2001/05/05 22:58:29 millert Exp $";
#endif /* SYSLIBC_SCCS and not lint */
#include <sys/types.h>
@@ -53,6 +53,7 @@ preadv(fd, iovp, iovcnt, offset)
int iovcnt;
off_t offset;
{
+ extern off_t __syscall();
quad_t q;
int rv;
diff --git a/lib/libc/sys/pwrite.c b/lib/libc/sys/pwrite.c
index 5915d9f6cf6..aae8319c102 100644
--- a/lib/libc/sys/pwrite.c
+++ b/lib/libc/sys/pwrite.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pwrite.c,v 1.1 2000/04/20 06:34:37 deraadt Exp $ */
+/* $OpenBSD: pwrite.c,v 1.2 2001/05/05 22:58:30 millert Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -34,7 +34,7 @@
*/
#if defined(SYSLIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: pwrite.c,v 1.1 2000/04/20 06:34:37 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: pwrite.c,v 1.2 2001/05/05 22:58:30 millert Exp $";
#endif /* SYSLIBC_SCCS and not lint */
#include <sys/types.h>
@@ -52,6 +52,7 @@ pwrite(fd, buf, nbyte, offset)
size_t nbyte;
off_t offset;
{
+ extern off_t __syscall();
quad_t q;
int rv;
diff --git a/lib/libc/sys/pwritev.c b/lib/libc/sys/pwritev.c
index ff8c195d426..ec700195851 100644
--- a/lib/libc/sys/pwritev.c
+++ b/lib/libc/sys/pwritev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pwritev.c,v 1.1 2000/04/20 06:34:37 deraadt Exp $ */
+/* $OpenBSD: pwritev.c,v 1.2 2001/05/05 22:58:30 millert Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -34,7 +34,7 @@
*/
#if defined(SYSLIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: pwritev.c,v 1.1 2000/04/20 06:34:37 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: pwritev.c,v 1.2 2001/05/05 22:58:30 millert Exp $";
#endif /* SYSLIBC_SCCS and not lint */
#include <sys/types.h>
@@ -53,6 +53,7 @@ pwritev(fd, iovp, iovcnt, offset)
int iovcnt;
off_t offset;
{
+ extern off_t __syscall();
quad_t q;
int rv;