summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorderaadt <>2014-10-30 21:47:47 +0000
committerderaadt <>2014-10-30 21:47:47 +0000
commite83bdb8edcd9388f13b71372b277fdcce386a9b0 (patch)
treeb81ce98a2b9917a164a418884f770274ee57b02c /src
parent12810369b78d6903bbb17a899d755522c0f33fdb (diff)
downloadopenbsd-e83bdb8edcd9388f13b71372b277fdcce386a9b0.tar.gz
openbsd-e83bdb8edcd9388f13b71372b277fdcce386a9b0.tar.bz2
openbsd-e83bdb8edcd9388f13b71372b277fdcce386a9b0.zip
clean up verbiage around the calculations; ok ingo jmc otto
Diffstat (limited to 'src')
-rw-r--r--src/lib/libc/stdlib/malloc.310
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libc/stdlib/malloc.3 b/src/lib/libc/stdlib/malloc.3
index 8ae3ba20e6..3ce9d2e28c 100644
--- a/src/lib/libc/stdlib/malloc.3
+++ b/src/lib/libc/stdlib/malloc.3
@@ -30,7 +30,7 @@
30.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31.\" SUCH DAMAGE. 31.\" SUCH DAMAGE.
32.\" 32.\"
33.\" $OpenBSD: malloc.3,v 1.84 2014/10/30 20:43:35 millert Exp $ 33.\" $OpenBSD: malloc.3,v 1.85 2014/10/30 21:47:47 deraadt Exp $
34.\" 34.\"
35.Dd $Mdocdate: October 30 2014 $ 35.Dd $Mdocdate: October 30 2014 $
36.Dt MALLOC 3 36.Dt MALLOC 3
@@ -62,8 +62,8 @@
62.Sh DESCRIPTION 62.Sh DESCRIPTION
63The 63The
64.Fn malloc 64.Fn malloc
65function allocates uninitialized space for an object whose 65function allocates uninitialized space for an object of
66size is specified by 66the specified
67.Fa size . 67.Fa size .
68.Fn malloc 68.Fn malloc
69maintains multiple lists of free blocks according to size, allocating 69maintains multiple lists of free blocks according to size, allocating
@@ -78,7 +78,7 @@ The
78.Fn calloc 78.Fn calloc
79function allocates space for an array of 79function allocates space for an array of
80.Fa nmemb 80.Fa nmemb
81objects, each of whose size is 81objects, each of the specified
82.Fa size . 82.Fa size .
83The space is initialized to zero. 83The space is initialized to zero.
84.Pp 84.Pp
@@ -114,7 +114,7 @@ except it operates on
114.Fa nmemb 114.Fa nmemb
115members of size 115members of size
116.Fa size 116.Fa size
117and checks for integer overflow in 117and checks for integer overflow in the calculation
118.Fa nmemb 118.Fa nmemb
119* 119*
120.Fa size . 120.Fa size .