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 /lib/libc/sys/mincore.2 | |
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.
Diffstat (limited to 'lib/libc/sys/mincore.2')
-rw-r--r-- | lib/libc/sys/mincore.2 | 25 |
1 files changed, 24 insertions, 1 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 , |