PR/4269: msync is missing MS_*

This commit is contained in:
christos 1997-10-16 23:49:38 +00:00
parent 1d60a72b89
commit bb19445ec6
2 changed files with 22 additions and 3 deletions

View File

@ -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)

View File

@ -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 <sys/syscallargs.h>
#include <vm/vm_swap.h>
#include <sys/mman.h>
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));
}