From c82d6ae7d51a0d747311de7946fea210edc17853 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Tue, 17 Sep 2002 12:57:51 +0000 Subject: move __syscall prototype into unistd.h (like everybody else) and avoid private protos for it everywhere; millert@ ok --- lib/libc/sys/lseek.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/libc/sys/lseek.c') diff --git a/lib/libc/sys/lseek.c b/lib/libc/sys/lseek.c index 12d2a98c86f..c94d2c5689f 100644 --- a/lib/libc/sys/lseek.c +++ b/lib/libc/sys/lseek.c @@ -32,11 +32,12 @@ */ #if defined(SYSLIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: lseek.c,v 1.6 1998/11/20 11:18:53 d Exp $"; +static char rcsid[] = "$OpenBSD: lseek.c,v 1.7 2002/09/17 12:57:50 mickey Exp $"; #endif /* SYSLIBC_SCCS and not lint */ #include #include +#include #include "thread_private.h" /* @@ -49,13 +50,12 @@ lseek(fd, offset, whence) off_t offset; int whence; { - extern off_t __syscall(); off_t retval; if (_FD_LOCK(fd, FD_RDWR, NULL) != 0) { retval = -1; } else { - retval = __syscall((quad_t)SYS_lseek, fd, 0, offset, whence); + retval = __syscall(SYS_lseek, fd, 0, offset, whence); _FD_UNLOCK(fd, FD_RDWR); } return retval; -- cgit v1.2.3