diff options
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
-rw-r--r-- | sys/compat/linux/linux_misc.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index be0bdcc4986..7f0c693cf26 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_misc.c,v 1.23 1995/12/09 04:01:42 mycroft Exp $ */ +/* $NetBSD: linux_misc.c,v 1.24 1995/12/18 14:35:08 fvdl Exp $ */ /* * Copyright (c) 1995 Frank van der Linden @@ -505,6 +505,27 @@ linux_sys_mmap(p, v, retval) return sys_mmap(p, &cma, retval); } +int +linux_sys_msync(p, v, retval) + struct proc *p; + void *v; + register_t *retval; +{ + struct linux_sys_msync_args /* { + syscallarg(caddr_t) addr; + syscallarg(int) len; + syscallarg(int) fl; + } */ *uap = v; + + struct sys_msync_args bma; + + /* flags are ignored */ + SCARG(&bma, addr) = SCARG(uap, addr); + SCARG(&bma, len) = SCARG(uap, len); + + return sys_msync(p, &bma, retval); +} + /* * This code is partly stolen from src/lib/libc/compat-43/times.c * XXX - CLK_TCK isn't declared in /sys, just in <time.h>, done here |