summaryrefslogtreecommitdiff
path: root/lib/libc/sys
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/mquery.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/libc/sys/mquery.c b/lib/libc/sys/mquery.c
index c58d466ca20..f5277d49fe1 100644
--- a/lib/libc/sys/mquery.c
+++ b/lib/libc/sys/mquery.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mquery.c,v 1.3 2003/04/25 20:32:07 drahn Exp $ */
+/* $OpenBSD: mquery.c,v 1.4 2003/04/28 21:32:08 drahn Exp $ */
/*
* Written by Artur Grabowski <art@openbsd.org> Public Domain
*/
@@ -10,8 +10,9 @@
/*
* This function provides 64-bit offset padding.
*/
-int
-mquery(int flags, void **addr, size_t size, int fd, off_t off)
+void *
+mquery(void *addr, size_t len, int prot, int flags, int fd, off_t offset)
{
- return(__syscall((quad_t)SYS_mquery, flags, addr, size, fd, off));
+ return((void *)(long)__syscall((quad_t)SYS_mquery, addr, len, prot,
+ flags, fd, 0, offset));
}