summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorart <art@openbsd.org>2007-09-07 10:31:10 +0000
committerart <art@openbsd.org>2007-09-07 10:31:10 +0000
commit397abc685307ed780cf262451d7874dec4c58cc3 (patch)
tree66d83cc0d07d7159f988eb4695b7ab1439b5024e
parentAdd the long requested M_ZERO flag to malloc(9). (diff)
downloadwireguard-openbsd-397abc685307ed780cf262451d7874dec4c58cc3.tar.xz
wireguard-openbsd-397abc685307ed780cf262451d7874dec4c58cc3.zip
Document M_ZERO.
-rw-r--r--share/man/man9/malloc.98
1 files changed, 6 insertions, 2 deletions
diff --git a/share/man/man9/malloc.9 b/share/man/man9/malloc.9
index bab48af8b31..74613c6d6d4 100644
--- a/share/man/man9/malloc.9
+++ b/share/man/man9/malloc.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: malloc.9,v 1.39 2007/06/01 05:37:14 deraadt Exp $
+.\" $OpenBSD: malloc.9,v 1.40 2007/09/07 10:31:10 art Exp $
.\" $NetBSD: malloc.9,v 1.2 1996/10/30 05:29:54 lukem Exp $
.\"
.\" Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: June 1 2007 $
+.Dd $Mdocdate: September 7 2007 $
.Dt MALLOC 9
.Os
.Sh NAME
@@ -115,6 +115,10 @@ instead of calling
has no effect if
.Dv M_NOWAIT
is specified.
+.It Dv M_ZERO
+Causes
+.Fn malloc
+to return zeroed memory.
.El
.Pp
The