summaryrefslogtreecommitdiff
path: root/share/man/man9/malloc.9
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2008-09-02 21:42:06 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2008-09-02 21:42:06 +0000
commitdba026129b3472f3fce04a89617210b335853fbf (patch)
tree8b107214edd1c756c5daaea29db48fe4f3921771 /share/man/man9/malloc.9
parentbd53929b7b0a702a27e7bfe6116a38a0c850b92a (diff)
remove last bits of MALLOC/FREE
spotted by and initial patch from espie@, with inputs from jmc@ ok espie@ jmc@
Diffstat (limited to 'share/man/man9/malloc.9')
-rw-r--r--share/man/man9/malloc.926
1 files changed, 4 insertions, 22 deletions
diff --git a/share/man/man9/malloc.9 b/share/man/man9/malloc.9
index 1b102dbfca1..b217e5a9c4d 100644
--- a/share/man/man9/malloc.9
+++ b/share/man/man9/malloc.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: malloc.9,v 1.41 2008/06/26 05:42:08 ray Exp $
+.\" $OpenBSD: malloc.9,v 1.42 2008/09/02 21:42:05 chl Exp $
.\" $NetBSD: malloc.9,v 1.2 1996/10/30 05:29:54 lukem Exp $
.\"
.\" Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -28,21 +28,20 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: June 26 2008 $
+.Dd $Mdocdate: September 2 2008 $
.Dt MALLOC 9
.Os
.Sh NAME
-.Nm malloc
+.Nm malloc ,
+.Nm free
.Nd kernel memory allocator
.Sh SYNOPSIS
.Fd #include <sys/types.h>
.Fd #include <sys/malloc.h>
.Ft void *
.Fn malloc "unsigned long size" "int type" "int flags"
-.Fn MALLOC "space" "cast" "unsigned long size" "int type" "int flags"
.Ft void
.Fn free "void *addr" "int type"
-.Fn FREE "void *addr" "int type"
.Sh DESCRIPTION
The
.Fn malloc
@@ -55,23 +54,6 @@ releases memory at address
that was previously allocated by
.Fn malloc
for re-use.
-The
-.Fn MALLOC
-macro variant is functionally equivalent to
-.Bd -literal -offset indent
-(space) = (cast)malloc((u_long)(size), type, flags)
-.Ed
-.Pp
-and the
-.Fn FREE
-macro variant is equivalent to
-.Bd -literal -offset indent
-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 ,