summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/posix_memalign.3
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2017-05-13 07:11:29 +0000
committerotto <otto@openbsd.org>2017-05-13 07:11:29 +0000
commit48c9124709407dc93befafefea3ab6ebcbb67149 (patch)
tree2433844c18806d01e350d552cc9b1156acef5542 /lib/libc/stdlib/posix_memalign.3
parentCompare >= for columns not >. (diff)
downloadwireguard-openbsd-48c9124709407dc93befafefea3ab6ebcbb67149.tar.xz
wireguard-openbsd-48c9124709407dc93befafefea3ab6ebcbb67149.zip
- fix bug wrt posix_memalign(3) of blocks between half a page and a page
- document posix_memalign() does not play nice with reacallocarray(3) and freezero(3)
Diffstat (limited to 'lib/libc/stdlib/posix_memalign.3')
-rw-r--r--lib/libc/stdlib/posix_memalign.313
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/libc/stdlib/posix_memalign.3 b/lib/libc/stdlib/posix_memalign.3
index 05ec1b9d148..fcd0a4cbdb4 100644
--- a/lib/libc/stdlib/posix_memalign.3
+++ b/lib/libc/stdlib/posix_memalign.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: posix_memalign.3,v 1.3 2012/06/18 17:03:52 matthew Exp $
+.\" $OpenBSD: posix_memalign.3,v 1.4 2017/05/13 07:11:29 otto Exp $
.\" Copyright (C) 2006 Jason Evans <jasone@FreeBSD.org>.
.\" All rights reserved.
.\"
@@ -28,7 +28,7 @@
.\"
.\" $FreeBSD: src/lib/libc/stdlib/posix_memalign.3,v 1.3 2007/03/28 04:32:51 jasone Exp $
.\"
-.Dd $Mdocdate: June 18 2012 $
+.Dd $Mdocdate: May 13 2017 $
.Dt POSIX_MEMALIGN 3
.Os
.Sh NAME
@@ -56,9 +56,14 @@ must be a power of 2 at least as large as
Memory that is allocated via
.Fn posix_memalign
can be used as an argument in subsequent calls to
-.Xr realloc 3
+.Xr realloc 3 ,
+.Xr reallocarray 3
+and
+.Xr free 3 ,
+but not
+.Xr recallocarray 3
and
-.Xr free 3 .
+.Xr freezero 3 .
.Sh RETURN VALUES
The
.Fn posix_memalign