diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-12-19 15:41:08 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-12-19 15:41:08 +0000 |
commit | 93befcf57380eafe63e453595cc78ad0521d87b6 (patch) | |
tree | 697ca9d86425c03e07afb367d2bde63a804fdf56 /sys/compat/linux/linux_misc.c | |
parent | c570f8073ee1d4f21ec80a9f0709816a1dfa8969 (diff) |
from fvdl; add msync(), readv() and writev()
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 |