From bb19445ec61c83686348b31cc6836ba0ed61fa20 Mon Sep 17 00:00:00 2001 From: christos Date: Thu, 16 Oct 1997 23:49:38 +0000 Subject: [PATCH] PR/4269: msync is missing MS_* --- sys/compat/common/Makefile | 4 ++-- sys/compat/common/vm_12.c | 21 ++++++++++++++++++++- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/sys/compat/common/Makefile b/sys/compat/common/Makefile index f905902310e5..7c46d63809df 100644 --- a/sys/compat/common/Makefile +++ b/sys/compat/common/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.18 1997/10/10 01:46:59 fvdl Exp $ +# $NetBSD: Makefile,v 1.19 1997/10/16 23:49:42 christos Exp $ LIB= compat NOPIC= @@ -7,7 +7,7 @@ CPPFLAGS= ${COMPATCPPFLAGS} SRCS= compat_exec.c compat_util.c kern_exit_43.c kern_info_09.c \ kern_info_43.c kern_resource_43.c kern_sig_43.c kern_xxx_12.c \ - tty_43.c uipc_syscalls_43.c vfs_syscalls_43.c vm_43.c vm_swap_12.c \ + tty_43.c uipc_syscalls_43.c vfs_syscalls_43.c vm_43.c vm_12.c \ vfs_syscalls_12.c # really, all machines where sizeof(int) != sizeof(long) diff --git a/sys/compat/common/vm_12.c b/sys/compat/common/vm_12.c index 0a0a2db72ece..ceb312dcd46b 100644 --- a/sys/compat/common/vm_12.c +++ b/sys/compat/common/vm_12.c @@ -1,4 +1,4 @@ -/* $NetBSD: vm_12.c,v 1.6 1997/10/10 05:40:17 mrg Exp $ */ +/* $NetBSD: vm_12.c,v 1.7 1997/10/16 23:49:38 christos Exp $ */ /* * Copyright (c) 1997 Matthew R. Green @@ -34,6 +34,7 @@ #include #include +#include int compat_12_sys_swapon(p, v, retval) @@ -51,3 +52,21 @@ compat_12_sys_swapon(p, v, retval) SCARG(&ua, misc) = 0; /* priority */ return (sys_swapctl(p, &ua, retval)); } + +int +compat_12_sys_msync(p, v, retval) + struct proc *p; + void *v; + register_t *retval; +{ + struct sys_msync_args ua; + struct compat_12_sys_msync_args /* { + syscallarg(caddr_t) addr; + syscallarg(size_t) len; + } */ *uap = v; + + SCARG(&ua, addr) = SCARG(uap, addr);; + SCARG(&ua, len) = SCARG(uap, len);; + SCARG(&ua, flags) = MS_SYNC | MS_INVALIDATE; + return (sys_msync(p, &ua, retval)); +}