diff --git a/distrib/sets/lists/comp/mi b/distrib/sets/lists/comp/mi index 5f66e93aacf3..985c23c3e48b 100644 --- a/distrib/sets/lists/comp/mi +++ b/distrib/sets/lists/comp/mi @@ -1,4 +1,4 @@ -# $NetBSD: mi,v 1.411 2001/12/05 06:57:35 lukem Exp $ +# $NetBSD: mi,v 1.412 2001/12/05 12:44:24 ad Exp $ ./sys comp-sysutil-root ./usr/bin/addr2line comp-debug-bin ./usr/bin/ar comp-util-bin @@ -5568,6 +5568,7 @@ ./usr/share/man/man9/m_pullup.9 comp-sys-man ./usr/share/man/man9/m_split.9 comp-sys-man ./usr/share/man/man9/malloc.9 comp-sys-man +./usr/share/man/man9/malloc_roundup.9 comp-sys-man ./usr/share/man/man9/mbuf.9 comp-sys-man ./usr/share/man/man9/mca.9 comp-sys-man ./usr/share/man/man9/mca_conf_read.9 comp-sys-man diff --git a/share/man/man9/Makefile b/share/man/man9/Makefile index 58c5e51fafe1..d829348b3a4a 100644 --- a/share/man/man9/Makefile +++ b/share/man/man9/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.100 2001/12/05 07:31:24 lukem Exp $ +# $NetBSD: Makefile,v 1.101 2001/12/05 12:44:25 ad Exp $ # Makefile for section 9 (kernel function and variable) manual pages. @@ -171,7 +171,7 @@ MLINKS+=lock.9 simple_lock_init.9 lock.9 simple_lock.9 \ lock.9 lockinit.9 lock.9 lockmgr.9 \ lock.9 lockstatus.9 lock.9 lockmgr_printinfo.9 \ lock.9 spinlockinit.9 lock.9 spinlockmgr.9 -MLINKS+=malloc.9 free.9 +MLINKS+=malloc.9 free.9 malloc_roundup.9 MLINKS+=mbuf.9 m_get.9 mbuf.9 m_getclr.9 mbuf.9 m_gethdr.9 mbuf.9 m_devget.9 \ mbuf.9 m_copym.9 mbuf.9 m_copypacket.9 mbuf.9 m_copydata.9 \ mbuf.9 m_copyback.9 mbuf.9 m_cat.9 mbuf.9 m_dup.9 mbuf.9 m_prepend.9 \ diff --git a/share/man/man9/malloc.9 b/share/man/man9/malloc.9 index efb4c6df1d8f..bc368c8f74f1 100644 --- a/share/man/man9/malloc.9 +++ b/share/man/man9/malloc.9 @@ -1,4 +1,4 @@ -.\" $NetBSD: malloc.9,v 1.20 2001/12/04 23:42:02 wiz Exp $ +.\" $NetBSD: malloc.9,v 1.21 2001/12/05 12:44:25 ad Exp $ .\" .\" Copyright (c) 1996 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -45,6 +45,8 @@ .Ft void * .Fn malloc "unsigned long size" "int type" "int flags" .Fn MALLOC "space" "cast" "unsigned long size" "int type" "int flags" +.Ft unsigned long +.Fn malloc_roundup "unsigned long size" .Ft void .Fn free "void *addr" "int type" .Fn FREE "void *addr" "int type" @@ -54,6 +56,8 @@ The function allocates uninitialized memory in kernel address space for an object whose size is specified by .Fa size . +.Fn malloc_roundup +returns the actual size of the allocation unit for the given value. .Fn free releases memory at address .Fa addr