diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2017-02-12 10:46:10 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2017-02-12 10:46:10 +0000 |
commit | 5766d3b58576dcb9bcc5a61eeb73661c6980d817 (patch) | |
tree | 4b03bf64ad6ed209f117b0702b2a889df5afb785 /lib | |
parent | 9785a7c67198a338346aa5e4528ee1cc18d1c2af (diff) |
malloc does not *need* to return page-aligned objects for size >=
a page. This is not required by any standard and other malloc
implementation do not document (or implement) this. ok deraadt@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/stdlib/malloc.3 | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/libc/stdlib/malloc.3 b/lib/libc/stdlib/malloc.3 index 1abbbdbc7ac..1f80c3529ee 100644 --- a/lib/libc/stdlib/malloc.3 +++ b/lib/libc/stdlib/malloc.3 @@ -30,9 +30,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: malloc.3,v 1.100 2016/10/20 08:03:15 jmc Exp $ +.\" $OpenBSD: malloc.3,v 1.101 2017/02/12 10:46:09 otto Exp $ .\" -.Dd $Mdocdate: October 20 2016 $ +.Dd $Mdocdate: February 12 2017 $ .Dt MALLOC 3 .Os .Sh NAME @@ -66,9 +66,6 @@ maintains multiple lists of free blocks according to size, allocating space from the appropriate list. The allocated space is suitably aligned (after possible pointer coercion) for storage of any type of object. -If the space is of -.Em pagesize -or larger, the memory returned will be page-aligned. .Pp The .Fn calloc |