posix_memalign.3: Note posix_memalign()'s treatment of 'memptr' on error

Reported-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2012-03-30 11:27:49 +13:00
parent 367122710b
commit df383cdf95
1 changed files with 9 additions and 3 deletions

View File

@ -151,9 +151,15 @@ returns zero on success, or one of the error values listed in the
next section on failure. next section on failure.
The value of The value of
.I errno .I errno
is indeterminate after a call to is not set.
.BR posix_memalign (). On Linux (and other systems),
.SH ERRORS .BR posix_memalign ()
does not modify
.I memptr
on failure.
A requirement standardizing this behavior was added in POSIX.1-2016.
.\" http://austingroupbugs.net/view.php?id=520
.SH "ERRORS"
.TP .TP
.B EINVAL .B EINVAL
The The