summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2003-04-29 19:52:33 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2003-04-29 19:52:33 +0000
commitea8b88799a7941d1815dbabff0586c2289e03fb8 (patch)
tree318985317266e260c393ea8ff4fa5395a7164efc /sys
parent3a1f26dfeb967eb2412d31c8dbf9cc2abac6d7bb (diff)
Deprecate omsync syscall, and only enable it if COMPAT_25 is required.
ok deraadt@
Diffstat (limited to 'sys')
-rw-r--r--sys/compat/common/compat_vm.c6
-rw-r--r--sys/kern/syscalls.master4
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/compat/common/compat_vm.c b/sys/compat/common/compat_vm.c
index 68ce0889d69..1c801d90c5a 100644
--- a/sys/compat/common/compat_vm.c
+++ b/sys/compat/common/compat_vm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: compat_vm.c,v 1.1 1999/05/22 21:22:33 weingart Exp $ */
+/* $OpenBSD: compat_vm.c,v 1.2 2003/04/29 19:52:30 miod Exp $ */
/* $NetBSD: vm_12.c,v 1.8 1997/10/20 22:05:22 thorpej Exp $ */
/*
@@ -55,13 +55,13 @@ sys_swapon(p, v, retval)
}
int
-sys_omsync(p, v, retval)
+compat_25_sys_omsync(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct sys_msync_args ua;
- struct sys_omsync_args /* {
+ struct compat_25_sys_omsync_args /* {
syscallarg(caddr_t) addr;
syscallarg(size_t) len;
} */ *uap = v;
diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master
index 2eaec396254..0aa26aa750b 100644
--- a/sys/kern/syscalls.master
+++ b/sys/kern/syscalls.master
@@ -1,4 +1,4 @@
-; $OpenBSD: syscalls.master,v 1.56 2003/04/28 21:32:08 drahn Exp $
+; $OpenBSD: syscalls.master,v 1.57 2003/04/29 19:52:32 miod Exp $
; $NetBSD: syscalls.master,v 1.32 1996/04/23 10:24:21 mycroft Exp $
; @(#)syscalls.master 8.2 (Berkeley) 1/13/94
@@ -148,7 +148,7 @@
63 COMPAT_43 { int sys_getkerninfo(int op, char *where, int *size, \
int arg); } ogetkerninfo
64 COMPAT_43 { int sys_getpagesize(void); } ogetpagesize
-65 STD { int sys_omsync(caddr_t addr, size_t len); }
+65 COMPAT_25 { int sys_omsync(caddr_t addr, size_t len); }
66 STD { int sys_vfork(void); }
67 OBSOL vread
68 OBSOL vwrite