Minor mdoc fixes in msync.2 and munmap.2.

Add RETURN VALUES and ERRORS sections to mincore.

Closes PR# 1493.
This commit is contained in:
Mike Pritchard
1997-01-11 23:33:18 +00:00
parent 4a1ada815b
commit f111d9977f
3 changed files with 31 additions and 6 deletions
+24 -1
View File
@@ -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 ,
+3 -2
View File
@@ -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
+4 -3
View File
@@ -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