diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-09-17 12:57:51 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-09-17 12:57:51 +0000 |
commit | c82d6ae7d51a0d747311de7946fea210edc17853 (patch) | |
tree | 8483dca6681068a3912b4f4a164d2be8ab9598e9 /lib/libc/sys/lseek.c | |
parent | 22c8a1e4bbf7d6cdab4954f884809837923c84b7 (diff) |
move __syscall prototype into unistd.h (like everybody else) and avoid private protos for it everywhere; millert@ ok
Diffstat (limited to 'lib/libc/sys/lseek.c')
-rw-r--r-- | lib/libc/sys/lseek.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 <sys/types.h> #include <sys/syscall.h> +#include <unistd.h> #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; |