diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-04-14 22:55:13 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-04-14 22:55:13 +0000 |
commit | dd2808f4c06734195a3f0ddf627096438dcf07a3 (patch) | |
tree | 367ade3413587b9ce4a4b9d4f8ff2c65e8f3813c /share | |
parent | 9cc5307d8f414ec5278f413692ef9f99f89cffe5 (diff) |
Mention that MALLOC should only be used for allocations with a constant size.
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man9/malloc.9 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/share/man/man9/malloc.9 b/share/man/man9/malloc.9 index 04d7e6f6753..356b6f3ceb9 100644 --- a/share/man/man9/malloc.9 +++ b/share/man/man9/malloc.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: malloc.9,v 1.14 2001/03/01 16:11:25 aaron Exp $ +.\" $OpenBSD: malloc.9,v 1.15 2001/04/14 22:55:12 art Exp $ .\" $NetBSD: malloc.9,v 1.2 1996/10/30 05:29:54 lukem Exp $ .\" .\" Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -76,6 +76,10 @@ macro variant is equivalent to free((caddr_t)(addr), type) .Ed .Pp +These macros should only be used when the +.Fa size +argument is a constant. +.Pp Unlike its standard C library counterpart .Pq Xr malloc 3 , the kernel version takes two more arguments. |