diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-06-02 05:22:30 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-06-02 05:22:30 +0000 |
commit | c0d91411fa7bbae92c9e2878291f93fd3fb50d1c (patch) | |
tree | 3890844c9c38e35aefc95a7dc1be3b04e8fac983 /sys | |
parent | 7ab9e0dd3373266da4d1ef5182dd6a38e9026fe7 (diff) |
const mlock(2) and munlock(2)
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/syscalls.master | 6 | ||||
-rw-r--r-- | sys/sys/mman.h | 6 | ||||
-rw-r--r-- | sys/vm/vm_mmap.c | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master index 493342b89d6..4edb89ed7a5 100644 --- a/sys/kern/syscalls.master +++ b/sys/kern/syscalls.master @@ -1,4 +1,4 @@ -; $OpenBSD: syscalls.master,v 1.25 1998/05/11 06:13:45 deraadt Exp $ +; $OpenBSD: syscalls.master,v 1.26 1998/06/02 05:22:29 deraadt Exp $ ; $NetBSD: syscalls.master,v 1.32 1996/04/23 10:24:21 mycroft Exp $ ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 @@ -385,8 +385,8 @@ 202 STD { int sys___sysctl(int *name, u_int namelen, \ void *old, size_t *oldlenp, void *new, \ size_t newlen); } -203 STD { int sys_mlock(void *addr, size_t len); } -204 STD { int sys_munlock(void *addr, size_t len); } +203 STD { int sys_mlock(const void *addr, size_t len); } +204 STD { int sys_munlock(const void *addr, size_t len); } 205 STD { int sys_undelete(const char *path); } 206 STD { int sys_futimes(int fd, \ const struct timeval *tptr); } diff --git a/sys/sys/mman.h b/sys/sys/mman.h index fd807844b60..8df2d454681 100644 --- a/sys/sys/mman.h +++ b/sys/sys/mman.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mman.h,v 1.6 1998/01/02 05:32:52 deraadt Exp $ */ +/* $OpenBSD: mman.h,v 1.7 1998/06/02 05:22:26 deraadt Exp $ */ /* $NetBSD: mman.h,v 1.11 1995/03/26 20:24:23 jtc Exp $ */ /*- @@ -99,8 +99,8 @@ void * mmap __P((void *, size_t, int, int, int, off_t)); int mprotect __P((void *, size_t, int)); int munmap __P((void *, size_t)); int msync __P((void *, size_t, int)); -int mlock __P((void *, size_t)); -int munlock __P((void *, size_t)); +int mlock __P((const void *, size_t)); +int munlock __P((const void *, size_t)); int madvise __P((void *, size_t, int)); int mincore __P((void *, size_t, char *)); int minherit __P((void *, size_t, int)); diff --git a/sys/vm/vm_mmap.c b/sys/vm/vm_mmap.c index 76603edf2e7..bdfa2b8235b 100644 --- a/sys/vm/vm_mmap.c +++ b/sys/vm/vm_mmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vm_mmap.c,v 1.14 1998/05/11 19:43:11 niklas Exp $ */ +/* $OpenBSD: vm_mmap.c,v 1.15 1998/06/02 05:22:27 deraadt Exp $ */ /* $NetBSD: vm_mmap.c,v 1.47 1996/03/16 23:15:23 christos Exp $ */ /* @@ -617,7 +617,7 @@ sys_mlock(p, v, retval) register_t *retval; { struct sys_mlock_args /* { - syscallarg(void *) addr; + syscallarg(const void *) addr; syscallarg(size_t) len; } */ *uap = v; vm_offset_t addr; @@ -666,7 +666,7 @@ sys_munlock(p, v, retval) register_t *retval; { struct sys_munlock_args /* { - syscallarg(void *) addr; + syscallarg(const void *) addr; syscallarg(size_t) len; } */ *uap = v; vm_offset_t addr; |