diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-03-09 15:11:48 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-03-09 15:11:48 +0000 |
commit | 8de6413dbc22f3c160955a87bdb311fd55bc067f (patch) | |
tree | 446d337691a8fa97fca438595365ffb578503f87 | |
parent | 82c5f4e0816d23ebb286569c6bfd845ce1cae8a1 (diff) |
Add mlockall and munlockall (dummy for the old vm system).
-rw-r--r-- | sys/kern/syscalls.master | 5 | ||||
-rw-r--r-- | sys/uvm/uvm_mmap.c | 4 | ||||
-rw-r--r-- | sys/vm/vm_mmap.c | 30 |
3 files changed, 34 insertions, 5 deletions
diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master index 7232e9e1ca5..1202c4a9bcb 100644 --- a/sys/kern/syscalls.master +++ b/sys/kern/syscalls.master @@ -1,4 +1,4 @@ -; $OpenBSD: syscalls.master,v 1.43 2000/11/16 20:02:17 provos Exp $ +; $OpenBSD: syscalls.master,v 1.44 2001/03/09 15:11:47 art Exp $ ; $NetBSD: syscalls.master,v 1.32 1996/04/23 10:24:21 mycroft Exp $ ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 @@ -530,3 +530,6 @@ const struct kevent *changelist, int nchanges, \ struct kevent *eventlist, int nevents, \ const struct timespec *timeout); } +271 STD { int sys_mlockall(int flags); } +272 STD { int sys_munlockall(void); } + diff --git a/sys/uvm/uvm_mmap.c b/sys/uvm/uvm_mmap.c index 586631d6d10..7f8de95e4fb 100644 --- a/sys/uvm/uvm_mmap.c +++ b/sys/uvm/uvm_mmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_mmap.c,v 1.7 2001/03/09 14:20:52 art Exp $ */ +/* $OpenBSD: uvm_mmap.c,v 1.8 2001/03/09 15:11:46 art Exp $ */ /* $NetBSD: uvm_mmap.c,v 1.23 1999/06/16 17:25:39 minoura Exp $ */ /* @@ -942,7 +942,6 @@ sys_munlock(p, v, retval) return (error == KERN_SUCCESS ? 0 : ENOMEM); } -#ifdef notyet /* * sys_mlockall: lock all pages mapped into an address space. */ @@ -1009,7 +1008,6 @@ sys_munlockall(p, v, retval) (void) uvm_map_pageable_all(&p->p_vmspace->vm_map, 0, 0); return (0); } -#endif /* * uvm_mmap: internal version of mmap diff --git a/sys/vm/vm_mmap.c b/sys/vm/vm_mmap.c index bdfa2b8235b..3332ee20183 100644 --- a/sys/vm/vm_mmap.c +++ b/sys/vm/vm_mmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vm_mmap.c,v 1.15 1998/06/02 05:22:27 deraadt Exp $ */ +/* $OpenBSD: vm_mmap.c,v 1.16 2001/03/09 15:11:47 art Exp $ */ /* $NetBSD: vm_mmap.c,v 1.47 1996/03/16 23:15:23 christos Exp $ */ /* @@ -1024,3 +1024,31 @@ out: return (EINVAL); } } + +int +sys_mlockall(p, v, retval) + struct proc *p; + void *v; + register_t *retval; +{ +#if 0 + struct sys_mlockall_args /* { + syscallarg(int) flags; + } */ *uap = v; +#endif + + return (EOPNOTSUPP); +} + +int +sys_munlockall(p, v, retval) + struct proc *p; + void *v; + register_t *retval; +{ + + return (EOPNOTSUPP); +} + + +
\ No newline at end of file |