.\" 2001-10-11, 2003-08-22, aeb, added some details
.\" 2012-03-23, Michael Kerrisk <mtk.manpages@mail.com>
.\" Document pvalloc() and aligned_alloc()
-.TH POSIX_MEMALIGN 3 2012-03-23 "GNU" "Linux Programmer's Manual"
+.TH POSIX_MEMALIGN 3 2013-09-02 "GNU" "Linux Programmer's Manual"
.SH NAME
posix_memalign, aligned_alloc, memalign, valloc, pvalloc \- allocate aligned memory
.SH SYNOPSIS
If
.I size
is 0, then
-.BR posix_memalign ()
-returns either NULL,
+the value placed in
+.IR "*memptr"
+is either NULL,
.\" glibc does this:
or a unique pointer value that can later be successfully passed to
.BR free (3).
.BR posix_memalign ()
returns zero on success, or one of the error values listed in the
next section on failure.
-Note that
+The value of
.I errno
-is not set.
+is indeterminate after a call to
+.BR posix_memalign ().
.SH ERRORS
.TP
.B EINVAL