diff options
| author | Mike Pritchard <mpp@FreeBSD.org> | 1997-01-11 23:33:18 +0000 | 
|---|---|---|
| committer | Mike Pritchard <mpp@FreeBSD.org> | 1997-01-11 23:33:18 +0000 | 
| commit | f111d9977ffdd21aea06534072d0cc8fc6d98ab6 (patch) | |
| tree | 54402a8a9bda1bc59fe63d93c8b7945e4ec19a89 /lib/libc | |
| parent | 4a1ada815b7f69107d5ff178060ff1bc47a94a18 (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/sys/mincore.2 | 25 | ||||
| -rw-r--r-- | lib/libc/sys/msync.2 | 5 | ||||
| -rw-r--r-- | lib/libc/sys/munmap.2 | 7 | 
3 files changed, 31 insertions, 6 deletions
| diff --git a/lib/libc/sys/mincore.2 b/lib/libc/sys/mincore.2 index 8debfa6a40e6..0ba27296e193 100644 --- a/lib/libc/sys/mincore.2 +++ b/lib/libc/sys/mincore.2 @@ -30,7 +30,7 @@  .\" SUCH DAMAGE.  .\"  .\"	@(#)mincore.2	8.1 (Berkeley) 6/9/93 -.\"	$Id$ +.\"	$Id: mincore.2,v 1.5 1996/12/23 23:09:39 wosch Exp $  .\"  .Dd June 9, 1993  .Dt MINCORE 2 @@ -41,6 +41,7 @@  .Sh SYNOPSIS  .Fd #include <sys/types.h>  .Fd #include <sys/mman.h> +.Ft int  .Fn mincore "caddr_t addr" "size_t len" "char *vec"  .Sh DESCRIPTION  The @@ -53,6 +54,28 @@ in the character array  .Fa vec ,  with a value of 1 meaning  that the page is in-core. +.Sh RETURN VALUES +Upson successful completion, +.Fn mincore +returns 0 and +.Fa vec +is updated to relect the page status.  Otherwise a value of -1 +is returned and +.Va error +is set to indicate the error. +.Sh ERRORS +.Bl -tag -width Er +.It Bq Er EINVAL +The virtial address range specified by the +.Fa addr +and +.Fa len +arguments is not valid. +.It Bq Er EFAULT +The +.Fa vec +argument points to an illegal address. +.El  .Sh SEE ALSO  .Xr madvise 2 ,  .Xr mprotect 2 , diff --git a/lib/libc/sys/msync.2 b/lib/libc/sys/msync.2 index 388790f5838b..b1c3b3e3a8d8 100644 --- a/lib/libc/sys/msync.2 +++ b/lib/libc/sys/msync.2 @@ -40,6 +40,7 @@  .Sh SYNOPSIS  .Fd #include <sys/types.h>  .Fd #include <sys/mman.h> +.Ft int  .Fn msync "caddr_t addr" "size_t len" "int flags"  .Sh DESCRIPTION  The @@ -84,9 +85,9 @@ is too large or negative.  was both MS_ASYNC and MS_INVALIDATE. Only one of these flags is allowed.  .Sh SEE ALSO  .Xr madvise 2 , -.Xr munmap 2 , +.Xr mincore 2 ,  .Xr mprotect 2 , -.Xr mincore 2 +.Xr munmap 2 ,  .Sh HISTORY  The  .Fn msync diff --git a/lib/libc/sys/munmap.2 b/lib/libc/sys/munmap.2 index ef6c7f99243a..c7aba9e7f844 100644 --- a/lib/libc/sys/munmap.2 +++ b/lib/libc/sys/munmap.2 @@ -40,6 +40,7 @@  .Sh SYNOPSIS  .Fd #include <sys/types.h>  .Fd #include <sys/mman.h> +.Ft int  .Fn munmap "caddr_t addr" "size_t len"  .Sh DESCRIPTION  The @@ -68,11 +69,11 @@ parameter was negative, or  some part of the region being unmapped is not part of the currently  valid address space.  .Sh "SEE ALSO" -.Xr msync 2 , -.Xr munmap 2 , -.Xr mprotect 2 ,  .Xr madvise 2 ,  .Xr mincore 2 , +.Xr msync 2 , +.Xr mprotect 2 , +.Xr munmap 2 ,  .Xr getpagesize 3  .Sh HISTORY  The | 
