diff options
Diffstat (limited to 'lib/libc/sys/minherit.2')
-rw-r--r-- | lib/libc/sys/minherit.2 | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/lib/libc/sys/minherit.2 b/lib/libc/sys/minherit.2 index cc26fa69c23c..997bafd8a82a 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 , |