summaryrefslogtreecommitdiff
path: root/lib/libc/sys/mquery.c
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2003-04-25 20:32:08 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2003-04-25 20:32:08 +0000
commitb1941bc0b460459bcf7a51d44e73fa82417492d4 (patch)
tree1b5cfd736673a902eb2a7855096d631bd8a9c2df /lib/libc/sys/mquery.c
parent9aa56153bca2e8f5bdb16b9bbc6001858d8dad8a (diff)
backout mquery change, something broke when not combined with a different diff.
Diffstat (limited to 'lib/libc/sys/mquery.c')
-rw-r--r--lib/libc/sys/mquery.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/libc/sys/mquery.c b/lib/libc/sys/mquery.c
index 92856a2c70a..c58d466ca20 100644
--- a/lib/libc/sys/mquery.c
+++ b/lib/libc/sys/mquery.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mquery.c,v 1.2 2003/04/25 18:30:18 drahn Exp $ */
+/* $OpenBSD: mquery.c,v 1.3 2003/04/25 20:32:07 drahn Exp $ */
/*
* Written by Artur Grabowski <art@openbsd.org> Public Domain
*/
@@ -10,9 +10,8 @@
/*
* This function provides 64-bit offset padding.
*/
-void *
-mquery(void *addr, size_t len, int prot, int flags, int fd, off_t offset)
+int
+mquery(int flags, void **addr, size_t size, int fd, off_t off)
{
- return((void *)(long)__syscall((quad_t)SYS_mquery, addr, len, prot,
- flags, fd, 0, offset));
+ return(__syscall((quad_t)SYS_mquery, flags, addr, size, fd, off));
}