diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2010-03-08 21:57:40 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2010-03-08 21:57:40 +0000 |
commit | 0a6bb48f45f0abeabfee0ac55425fb7d19903195 (patch) | |
tree | b5ebb26a28863499e513d6b74118d79e0c26965c /share | |
parent | 2036c060ef728790b75a872942c387a4aa5c3a7c (diff) |
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.
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man9/malloc.9 | 13 |
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 |