summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2003-04-28 21:32:09 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2003-04-28 21:32:09 +0000
commitc106c73dfd41f77fe797883162069614720a47f9 (patch)
tree181c1749c1f858436214069f2ce9f027ed804691 /sys/kern
parent2050ddbc7001fceb763e62efe6d646ef12228f05 (diff)
Change mquery() function call signature to be the same a mmap(). It
needs the prot/flags info and passing the addresses via arg/return allows it to be traced via ktrace better than an in/out paramter. This adds a new mquery syscall and renames the old one to omquery. New kernel _MUST_ be built, booted, and 'make includes' before building ld.so with this change.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/syscalls.master8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master
index 878fcd0010b..2eaec396254 100644
--- a/sys/kern/syscalls.master
+++ b/sys/kern/syscalls.master
@@ -1,4 +1,4 @@
-; $OpenBSD: syscalls.master,v 1.55 2003/04/25 20:32:07 drahn Exp $
+; $OpenBSD: syscalls.master,v 1.56 2003/04/28 21:32:08 drahn Exp $
; $NetBSD: syscalls.master,v 1.32 1996/04/23 10:24:21 mycroft Exp $
; @(#)syscalls.master 8.2 (Berkeley) 1/13/94
@@ -570,5 +570,7 @@
gid_t *sgid); }
284 STD { int sys_setresgid(gid_t rgid, gid_t egid, \
gid_t sgid); }
-285 STD { int sys_mquery(int flags, void **addr, size_t size, \
- int fd, off_t off); }
+285 STD { int sys_omquery(int flags, void **addr, \
+ size_t size, int fd, off_t off); }
+286 STD { void *sys_mquery(void *addr, size_t len, int prot, \
+ int flags, int fd, long pad, off_t pos); }