Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/man/man9 note that MALLOC is intended to be used with ...



details:   https://anonhg.NetBSD.org/src/rev/1db20d414701
branches:  trunk
changeset: 533328:1db20d414701
user:      yamt <yamt%NetBSD.org@localhost>
date:      Thu Jun 27 17:31:25 2002 +0000

description:
note that MALLOC is intended to be used with a constant size.

diffstat:

 share/man/man9/malloc.9 |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 1905ebc339ad -r 1db20d414701 share/man/man9/malloc.9
--- a/share/man/man9/malloc.9   Thu Jun 27 16:22:35 2002 +0000
+++ b/share/man/man9/malloc.9   Thu Jun 27 17:31:25 2002 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: malloc.9,v 1.24 2002/02/13 08:18:44 ross Exp $
+.\"    $NetBSD: malloc.9,v 1.25 2002/06/27 17:31:25 yamt Exp $
 .\"
 .\" Copyright (c) 1996 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -78,6 +78,12 @@
 free((caddr_t)(addr), type)
 .Ed
 .Pp
+The
+.Fn MALLOC
+is intended to be used with a compile-time constant
+.Fa size
+so that the compiler can do constant folding.
+.Pp
 Unlike its standard C library counterpart
 .Pq Xr malloc 3 ,
 the kernel version takes two more arguments.



Home | Main Index | Thread Index | Old Index