summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoroga <oga@openbsd.org>2010-03-08 21:57:39 +0000
committeroga <oga@openbsd.org>2010-03-08 21:57:39 +0000
commitaee3330b51c7b2b31fe103dadb94b17f37564762 (patch)
tree59e87c011ea8cc5893167dcdcd7c2e1cc4248b48
parentdocument PR_NOWAIT. (diff)
downloadwireguard-openbsd-aee3330b51c7b2b31fe103dadb94b17f37564762.tar.xz
wireguard-openbsd-aee3330b51c7b2b31fe103dadb94b17f37564762.zip
Don't mention that M_WAITOK is defined to be zero, readers do not need
to know that. ok jmc@, though i'm tempted to remove the whole bit about being the same as having no other flags specified as well. Prompted by a discussion with deraadt and tedu.
-rw-r--r--share/man/man9/malloc.913
1 files changed, 8 insertions, 5 deletions
diff --git a/share/man/man9/malloc.9 b/share/man/man9/malloc.9
index d13967d9450..6ee1ffb0b06 100644
--- a/share/man/man9/malloc.9
+++ b/share/man/man9/malloc.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: malloc.9,v 1.44 2010/01/03 16:43:46 schwarze Exp $
+.\" $OpenBSD: malloc.9,v 1.45 2010/03/08 21:57:39 oga Exp $
.\" $NetBSD: malloc.9,v 1.2 1996/10/30 05:29:54 lukem Exp $
.\"
.\" Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: January 3 2010 $
+.Dd $Mdocdate: March 8 2010 $
.Dt MALLOC 9
.Os
.Sh NAME
@@ -61,9 +61,7 @@ argument further qualifies malloc's
operational characteristics as follows:
.Bl -tag -width xxx -offset indent
.It Dv M_WAITOK
-This is defined to be 0, and is therefore most useful as an aid to code
-readability.
-In effect, it is the same as having no other
+The same as having no other
.Fa flags
specified.
If memory is currently unavailable,
@@ -75,6 +73,11 @@ Causes
to return
.Dv NULL
if the request cannot be immediately fulfilled due to resource shortage.
+One of
+.Dv M_NOWAIT
+or
+.Dv M_WAITOK
+must be specified.
.It Dv M_CANFAIL
In the
.Dv M_WAITOK