summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2018-11-05 10:31:32 +0000
committerotto <otto@openbsd.org>2018-11-05 10:31:32 +0000
commit71fd22b5f38baf38f590ef5af2f5a4fd5ad80d6d (patch)
treef1f4768929fb91806b372bc329342ef806ba7c2c /lib/libc
parentFixup the case where an mbuf cluster is used. Correctly offset the data to (diff)
downloadwireguard-openbsd-71fd22b5f38baf38f590ef5af2f5a4fd5ad80d6d.tar.xz
wireguard-openbsd-71fd22b5f38baf38f590ef5af2f5a4fd5ad80d6d.zip
Mention aligned_alloc(), prompted by Brad; ok jmc@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/valloc.310
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/libc/gen/valloc.3 b/lib/libc/gen/valloc.3
index 279a232ad9a..096ebcae51e 100644
--- a/lib/libc/gen/valloc.3
+++ b/lib/libc/gen/valloc.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: valloc.3,v 1.14 2013/06/05 03:39:22 tedu Exp $
+.\" $OpenBSD: valloc.3,v 1.15 2018/11/05 10:31:32 otto Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -27,7 +27,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: November 5 2018 $
.Dt VALLOC 3
.Os
.Sh NAME
@@ -43,10 +43,12 @@ The
.Fn valloc
function is obsoleted by the current version of
.Xr malloc 3 ,
-which aligns page-sized and larger allocations,
+which aligns page-sized and larger allocations
+and both
+.Xr aligned_alloc 3
and
.Xr posix_memalign 3 ,
-which allocates memory with a given alignment.
+which allocate memory with a given alignment.
.Ef
.Pp
The