Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/sys Document MAP_INHERIT_ZERO.
details: https://anonhg.NetBSD.org/src/rev/4ed6eac9846b
branches: trunk
changeset: 330695:4ed6eac9846b
user: christos <christos%NetBSD.org@localhost>
date: Fri Jul 18 12:39:17 2014 +0000
description:
Document MAP_INHERIT_ZERO.
diffstat:
lib/libc/sys/minherit.2 | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diffs (40 lines):
diff -r b2291463018b -r 4ed6eac9846b lib/libc/sys/minherit.2
--- a/lib/libc/sys/minherit.2 Fri Jul 18 12:36:57 2014 +0000
+++ b/lib/libc/sys/minherit.2 Fri Jul 18 12:39:17 2014 +0000
@@ -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 @@
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 @@
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
Home |
Main Index |
Thread Index |
Old Index