Browse Source

clean up verbiage around the calculations; ok ingo jmc otto

OPENBSD_5_7
deraadt 10 years ago
parent
commit
68bbb50cb4
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      src/lib/libc/stdlib/malloc.3

+ 5
- 5
src/lib/libc/stdlib/malloc.3 View File

@ -30,7 +30,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE. .\" 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 $ .Dd $Mdocdate: October 30 2014 $
.Dt MALLOC 3 .Dt MALLOC 3
@ -62,8 +62,8 @@
.Sh DESCRIPTION .Sh DESCRIPTION
The The
.Fn malloc .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 . .Fa size .
.Fn malloc .Fn malloc
maintains multiple lists of free blocks according to size, allocating maintains multiple lists of free blocks according to size, allocating
@ -78,7 +78,7 @@ The
.Fn calloc .Fn calloc
function allocates space for an array of function allocates space for an array of
.Fa nmemb .Fa nmemb
objects, each of whose size is
objects, each of the specified
.Fa size . .Fa size .
The space is initialized to zero. The space is initialized to zero.
.Pp .Pp
@ -114,7 +114,7 @@ except it operates on
.Fa nmemb .Fa nmemb
members of size members of size
.Fa size .Fa size
and checks for integer overflow in
and checks for integer overflow in the calculation
.Fa nmemb .Fa nmemb
* *
.Fa size . .Fa size .


Loading…
Cancel
Save