diff options
author | 2001-05-05 22:58:29 +0000 | |
---|---|---|
committer | 2001-05-05 22:58:29 +0000 | |
commit | 6d346abd0ef63e69f44d3cb96cf16561abd6072f (patch) | |
tree | 09f1112ff62baeb0ac378a349a983aa0497392ff /lib/libc | |
parent | remove some private stuff people put into here (diff) | |
download | wireguard-openbsd-6d346abd0ef63e69f44d3cb96cf16561abd6072f.tar.xz wireguard-openbsd-6d346abd0ef63e69f44d3cb96cf16561abd6072f.zip |
Add missing __syscall() proto to fix pread() & friends on big endian
machines. Found by me, solved by Theo ;-)
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/sys/pread.c | 5 | ||||
-rw-r--r-- | lib/libc/sys/preadv.c | 5 | ||||
-rw-r--r-- | lib/libc/sys/pwrite.c | 5 | ||||
-rw-r--r-- | lib/libc/sys/pwritev.c | 5 |
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; |