summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-05-01 11:09:23 +0000
committerderaadt <deraadt@openbsd.org>1996-05-01 11:09:23 +0000
commit6b0d02319cc8e8e611990135f76dd9daace5821b (patch)
tree6eac5f3e9bb787fcb60d8872527d168cf993ba28 /lib/libc
parentfrom netbsd; Document futimes() (diff)
downloadwireguard-openbsd-6b0d02319cc8e8e611990135f76dd9daace5821b.tar.xz
wireguard-openbsd-6b0d02319cc8e8e611990135f76dd9daace5821b.zip
do not proto __syscall or you will experience excruciating pain
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/ftruncate.c1
-rw-r--r--lib/libc/sys/lseek.c2
-rw-r--r--lib/libc/sys/mmap.c1
-rw-r--r--lib/libc/sys/truncate.c1
4 files changed, 1 insertions, 4 deletions
diff --git a/lib/libc/sys/ftruncate.c b/lib/libc/sys/ftruncate.c
index b1054bc19f6..211824ef4c9 100644
--- a/lib/libc/sys/ftruncate.c
+++ b/lib/libc/sys/ftruncate.c
@@ -53,7 +53,6 @@ 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 10363bed96b..adc75f29b2f 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 quad_t __syscall();
+ extern off_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 b8ca3788ce9..442f3b1699b 100644
--- a/lib/libc/sys/mmap.c
+++ b/lib/libc/sys/mmap.c
@@ -58,7 +58,6 @@ 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 e8b0d73212f..c54c6ed98ce 100644
--- a/lib/libc/sys/truncate.c
+++ b/lib/libc/sys/truncate.c
@@ -53,7 +53,6 @@ truncate(path, length)
const char *path;
off_t length;
{
- quad_t __syscall __P((quad_t, ...));
return(__syscall((quad_t)SYS_truncate, path, 0, length));
}