diff options
author | mpp <mpp@FreeBSD.org> | 1997-01-11 23:33:18 +0000 |
---|---|---|
committer | mpp <mpp@FreeBSD.org> | 1997-01-11 23:33:18 +0000 |
commit | 3ac71edb34a5f4def0dfab0943c008931c9580b9 (patch) | |
tree | 54402a8a9bda1bc59fe63d93c8b7945e4ec19a89 | |
parent | 4a24479701f9c12b24e90f8c53295c247f2461cb (diff) | |
download | FreeBSD-src-3ac71edb34a5f4def0dfab0943c008931c9580b9.zip FreeBSD-src-3ac71edb34a5f4def0dfab0943c008931c9580b9.tar.gz |
Minor mdoc fixes in msync.2 and munmap.2.
Add RETURN VALUES and ERRORS sections to mincore.
Closes PR# 1493.
-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 8debfa6..0ba2729 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 388790f..b1c3b3e 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 ef6c7f9..c7aba9e 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 |