summaryrefslogtreecommitdiff
path: root/lib/libc/sys/truncate.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2002-09-17 12:57:51 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2002-09-17 12:57:51 +0000
commitc82d6ae7d51a0d747311de7946fea210edc17853 (patch)
tree8483dca6681068a3912b4f4a164d2be8ab9598e9 /lib/libc/sys/truncate.c
parent22c8a1e4bbf7d6cdab4954f884809837923c84b7 (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/truncate.c')
-rw-r--r--lib/libc/sys/truncate.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/libc/sys/truncate.c b/lib/libc/sys/truncate.c
index cf3f2970bf3..6c42edc4ff5 100644
--- a/lib/libc/sys/truncate.c
+++ b/lib/libc/sys/truncate.c
@@ -32,15 +32,12 @@
*/
#if defined(SYSLIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: truncate.c,v 1.6 1997/04/26 08:50:13 tholo Exp $";
+static char rcsid[] = "$OpenBSD: truncate.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>
-
-#ifdef lint
-quad_t __syscall(quad_t, ...);
-#endif
+#include <unistd.h>
/*
* This function provides 64-bit offset padding that
@@ -52,5 +49,5 @@ truncate(path, length)
off_t length;
{
- return(__syscall((quad_t)SYS_truncate, path, 0, length));
+ return(__syscall(SYS_truncate, path, 0, length));
}