summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/pread.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/sys/pread.c')
-rw-r--r--lib/libc/sys/pread.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/sys/pread.c b/lib/libc/sys/pread.c
index 6338e14dba9..4c522399217 100644
--- a/lib/libc/sys/pread.c
+++ b/lib/libc/sys/pread.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pread.c,v 1.9 2011/10/16 06:29:56 guenther Exp $ */
+/* $OpenBSD: pread.c,v 1.10 2015/09/11 13:26:20 guenther Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -29,14 +29,15 @@
* SUCH DAMAGE.
*/
-#include <sys/types.h>
#include <sys/syscall.h>
#include <unistd.h>
#include "thread_private.h"
-register_t __syscall(quad_t, ...);
+ssize_t __syscall(quad_t, ...);
+PROTO_NORMAL(__syscall);
+
+DEF_SYS(ftruncate);
-/* pread is weak to support libpthread cancellation */
STUB_PROTOTYPE(pread);
@@ -49,6 +50,5 @@ STUB_ALIAS(pread);
ssize_t
STUB_NAME(pread)(int fd, void *buf, size_t nbyte, off_t offset)
{
-
- return (__syscall((quad_t)SYS_pread, fd, buf, nbyte, 0, offset));
+ return (__syscall(SYS_pread, fd, buf, nbyte, 0, offset));
}