From df383cdf95d3312dec52b51f71988cbe06adb0eb Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Fri, 30 Mar 2012 11:27:49 +1300 Subject: [PATCH] posix_memalign.3: Note posix_memalign()'s treatment of 'memptr' on error Reported-by: Eric Blake Signed-off-by: Michael Kerrisk --- man3/posix_memalign.3 | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/man3/posix_memalign.3 b/man3/posix_memalign.3 index dfbefa7ea..41fb2c499 100644 --- a/man3/posix_memalign.3 +++ b/man3/posix_memalign.3 @@ -151,9 +151,15 @@ returns zero on success, or one of the error values listed in the next section on failure. The value of .I errno -is indeterminate after a call to -.BR posix_memalign (). -.SH ERRORS +is not set. +On Linux (and other systems), +.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 .B EINVAL The