summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/malloc.3
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2014-10-30 21:47:47 +0000
committerderaadt <deraadt@openbsd.org>2014-10-30 21:47:47 +0000
commit468632fffdafb1e355b294e3c52df4f34b406543 (patch)
tree062d23d27a76053e14304b86134c1b9de14ec0d0 /lib/libc/stdlib/malloc.3
parentDon't mention old systems where realloc(NULL, n) didn't work as we (diff)
downloadwireguard-openbsd-468632fffdafb1e355b294e3c52df4f34b406543.tar.xz
wireguard-openbsd-468632fffdafb1e355b294e3c52df4f34b406543.zip
clean up verbiage around the calculations; ok ingo jmc otto
Diffstat (limited to 'lib/libc/stdlib/malloc.3')
-rw-r--r--lib/libc/stdlib/malloc.310
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/stdlib/malloc.3 b/lib/libc/stdlib/malloc.3
index 8ae3ba20e6d..3ce9d2e28ca 100644
--- a/lib/libc/stdlib/malloc.3
+++ b/lib/libc/stdlib/malloc.3
@@ -30,7 +30,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: malloc.3,v 1.84 2014/10/30 20:43:35 millert Exp $
+.\" $OpenBSD: malloc.3,v 1.85 2014/10/30 21:47:47 deraadt Exp $
.\"
.Dd $Mdocdate: October 30 2014 $
.Dt MALLOC 3
@@ -62,8 +62,8 @@
.Sh DESCRIPTION
The
.Fn malloc
-function allocates uninitialized space for an object whose
-size is specified by
+function allocates uninitialized space for an object of
+the specified
.Fa size .
.Fn malloc
maintains multiple lists of free blocks according to size, allocating
@@ -78,7 +78,7 @@ The
.Fn calloc
function allocates space for an array of
.Fa nmemb
-objects, each of whose size is
+objects, each of the specified
.Fa size .
The space is initialized to zero.
.Pp
@@ -114,7 +114,7 @@ except it operates on
.Fa nmemb
members of size
.Fa size
-and checks for integer overflow in
+and checks for integer overflow in the calculation
.Fa nmemb
*
.Fa size .