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/ftruncate.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/ftruncate.c')
-rw-r--r-- | lib/libc/sys/ftruncate.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/libc/sys/ftruncate.c b/lib/libc/sys/ftruncate.c index c7f4bf3a6b6..34da96b077f 100644 --- a/lib/libc/sys/ftruncate.c +++ b/lib/libc/sys/ftruncate.c @@ -32,17 +32,14 @@ */ #if defined(SYSLIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: ftruncate.c,v 1.7 1998/11/20 11:18:52 d Exp $"; +static char rcsid[] = "$OpenBSD: ftruncate.c,v 1.8 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" -#ifdef lint -quad_t __syscall(quad_t, ...); -#endif - /* * This function provides 64-bit offset padding that * is not supplied by GCC 1.X but is supplied by GCC 2.X. @@ -57,7 +54,7 @@ ftruncate(fd, length) if (_FD_LOCK(fd, FD_RDWR, NULL) != 0) { retval = -1; } else { - retval = __syscall((quad_t)SYS_ftruncate, fd, 0, length); + retval = __syscall(SYS_ftruncate, fd, 0, length); _FD_UNLOCK(fd, FD_RDWR); } return retval; |