From: tholo Date: Mon, 25 Mar 1996 22:52:20 +0000 (+0000) Subject: Prototype __syscall() correctly X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=673004aae052bd639f4e2ce590b73a52633f90a6;p=openbsd Prototype __syscall() correctly --- diff --git a/lib/libc/sys/ftruncate.c b/lib/libc/sys/ftruncate.c index 211824ef4c9..b1054bc19f6 100644 --- a/lib/libc/sys/ftruncate.c +++ b/lib/libc/sys/ftruncate.c @@ -53,6 +53,7 @@ ftruncate(fd, length) int fd; off_t length; { + quad_t __syscall __P((quad_t, ...)); return(__syscall((quad_t)SYS_ftruncate, fd, 0, length)); } diff --git a/lib/libc/sys/lseek.c b/lib/libc/sys/lseek.c index adc75f29b2f..10363bed96b 100644 --- a/lib/libc/sys/lseek.c +++ b/lib/libc/sys/lseek.c @@ -54,7 +54,7 @@ lseek(fd, offset, whence) off_t offset; int whence; { - extern off_t __syscall(); + extern quad_t __syscall(); return(__syscall((quad_t)SYS_lseek, fd, 0, offset, whence)); } diff --git a/lib/libc/sys/mmap.c b/lib/libc/sys/mmap.c index 442f3b1699b..b8ca3788ce9 100644 --- a/lib/libc/sys/mmap.c +++ b/lib/libc/sys/mmap.c @@ -58,6 +58,7 @@ mmap(addr, len, prot, flags, fd, offset) int fd; off_t offset; { + quad_t __syscall __P((quad_t, ...)); return((caddr_t)(long)__syscall((quad_t)SYS_mmap, addr, len, prot, flags, fd, 0, offset)); diff --git a/lib/libc/sys/truncate.c b/lib/libc/sys/truncate.c index c54c6ed98ce..e8b0d73212f 100644 --- a/lib/libc/sys/truncate.c +++ b/lib/libc/sys/truncate.c @@ -53,6 +53,7 @@ truncate(path, length) const char *path; off_t length; { + quad_t __syscall __P((quad_t, ...)); return(__syscall((quad_t)SYS_truncate, path, 0, length)); }