diff options
author | dyson <dyson@FreeBSD.org> | 1997-06-15 23:35:32 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1997-06-15 23:35:32 +0000 |
commit | db14cfe28ce4bf25b10fe802ade2cb9e5434d430 (patch) | |
tree | ac07b45f01a4fa2478456fac572afd2dbba66a51 /sys/vm | |
parent | 2e39fb736ccaaf828955cb4d7f689a5eab32feb1 (diff) | |
download | FreeBSD-src-db14cfe28ce4bf25b10fe802ade2cb9e5434d430.zip FreeBSD-src-db14cfe28ce4bf25b10fe802ade2cb9e5434d430.tar.gz |
Correct the return code for the mlock system call. Also add the stubs
for mlockall and munlockall.
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_mmap.c | 34 |
1 files changed, 32 insertions, 2 deletions
diff --git a/sys/vm/vm_mmap.c b/sys/vm/vm_mmap.c index 57e3098..2bed05f 100644 --- a/sys/vm/vm_mmap.c +++ b/sys/vm/vm_mmap.c @@ -38,7 +38,7 @@ * from: Utah $Hdr: vm_mmap.c 1.6 91/10/21$ * * @(#)vm_mmap.c 8.4 (Berkeley) 1/12/94 - * $Id: vm_mmap.c,v 1.62 1997/02/22 09:48:27 peter Exp $ + * $Id: vm_mmap.c,v 1.63 1997/03/23 03:37:53 bde Exp $ */ /* @@ -787,7 +787,7 @@ mlock(p, uap, retval) #ifdef pmap_wired_count if (size + ptoa(pmap_wired_count(vm_map_pmap(&p->p_vmspace->vm_map))) > p->p_rlimit[RLIMIT_MEMLOCK].rlim_cur) - return (EAGAIN); + return (ENOMEM); #else error = suser(p->p_ucred, &p->p_acflag); if (error) @@ -799,6 +799,36 @@ mlock(p, uap, retval) } #ifndef _SYS_SYSPROTO_H_ +struct mlockall_args { + int how; +}; +#endif + +int +mlockall(p, uap, retval) + struct proc *p; + struct mlockall_args *uap; + int *retval; +{ + return 0; +} + +#ifndef _SYS_SYSPROTO_H_ +struct mlockall_args { + int how; +}; +#endif + +int +munlockall(p, uap, retval) + struct proc *p; + struct munlockall_args *uap; + int *retval; +{ + return 0; +} + +#ifndef _SYS_SYSPROTO_H_ struct munlock_args { caddr_t addr; size_t len; |