Module Name:    src
Committed By:   christos
Date:           Fri Jul 18 12:39:18 UTC 2014

Modified Files:
        src/lib/libc/sys: minherit.2

Log Message:
Document MAP_INHERIT_ZERO.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/lib/libc/sys/minherit.2

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/sys/minherit.2
diff -u src/lib/libc/sys/minherit.2:1.18 src/lib/libc/sys/minherit.2:1.19
--- src/lib/libc/sys/minherit.2:1.18	Fri Oct 13 16:52:57 2006
+++ src/lib/libc/sys/minherit.2	Fri Jul 18 08:39:17 2014
@@ -1,4 +1,4 @@
-.\"	$NetBSD: minherit.2,v 1.18 2006/10/13 20:52:57 wiz Exp $
+.\"	$NetBSD: minherit.2,v 1.19 2014/07/18 12:39:17 christos Exp $
 .\"
 .\" Copyright (c) 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\"	@(#)minherit.2	8.1 (Berkeley) 6/9/93
 .\"
-.Dd October 7, 2006
+.Dd July 18, 2014
 .Dt MINHERIT 2
 .Os
 .Sh NAME
@@ -51,8 +51,9 @@ fork-time inheritance characteristic
 which can be set to
 .Dv MAP_INHERIT_NONE ,
 .Dv MAP_INHERIT_COPY ,
+.Dv MAP_INHERIT_SHARE ,
 or
-.Dv MAP_INHERIT_SHARE .
+.Dv MAP_INHERIT_ZERO .
 Also possible is
 .Dv MAP_INHERIT_DEFAULT ,
 which defaults to
@@ -71,6 +72,10 @@ Pages or regions marked
 are shared between the address spaces, while pages or regions marked
 .Dv MAP_INHERIT_NONE
 will be unmapped in the child.
+Finally pages or regions marked
+.Dv MAP_INHERIT_ZERO
+will still be present at the child, but will be initialized to
+.Dv 0 .
 .Sh RETURN VALUES
 .Rv -std minherit
 .Sh ERRORS

Reply via email to