summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/minherit.2
diff options
context:
space:
mode:
authormpp <mpp@FreeBSD.org>1997-01-12 00:38:36 +0000
committermpp <mpp@FreeBSD.org>1997-01-12 00:38:36 +0000
commit54b96968b6dec7e1b3cbfa045f28dd9c4e0ecc45 (patch)
tree90aaba8b57f96154b6594ad2a7c5a9b92e206d48 /lib/libc/sys/minherit.2
parent222e4ec9673e5231e2af9b2b72919d890d8829ed (diff)
downloadFreeBSD-src-54b96968b6dec7e1b3cbfa045f28dd9c4e0ecc45.zip
FreeBSD-src-54b96968b6dec7e1b3cbfa045f28dd9c4e0ecc45.tar.gz
Add missing RETURN VALUES/ERRORS sections.
Diffstat (limited to 'lib/libc/sys/minherit.2')
-rw-r--r--lib/libc/sys/minherit.229
1 files changed, 28 insertions, 1 deletions
diff --git a/lib/libc/sys/minherit.2 b/lib/libc/sys/minherit.2
index cc26fa6..997bafd 100644
--- a/lib/libc/sys/minherit.2
+++ b/lib/libc/sys/minherit.2
@@ -1,4 +1,4 @@
-.\" $Id$
+.\" $Id: minherit.2,v 1.1 1996/02/23 19:56:54 peter Exp $
.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -53,6 +53,33 @@ changes the specified pages to have the inheritance characteristic
Not all implementations will guarantee that the inheritance characteristic
can be set on a page basis;
the granularity of changes may be as large as an entire region.
+.Sh RETURN VALUES
+Upon successful completion,
+.Fn minherit
+returns 0. Otherwise, a value of -1 is returned and
+.Va errno
+is set to indicate the error.
+.Sh ERRORS
+The
+.Fn minherit
+function will fail if:
+.Bl -tag -width Er
+.It Bq Er EINVAL
+The virtual address range specified by the
+.Fa addr
+and
+.Fa len
+arguments is not valid.
+.It Bq Er EACESS
+The flags specified by the
+.Fa inherit
+argument were not valid for the pages specified
+by the
+.Fa addr
+and
+.Fa len
+arguments.
+.El
.Sh SEE ALSO
.Xr fork 2 ,
.Xr madvise 2 ,
OpenPOWER on IntegriCloud