]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
posix_memalign.3: Some functions set errno
authorElliot Hughes <enh@google.com>
Fri, 19 Apr 2019 20:25:21 +0000 (13:25 -0700)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sun, 5 May 2019 01:41:21 +0000 (20:41 -0500)
True of bionic, glibc, and musl. (I didn't check elsewhere.)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man3/posix_memalign.3

index b4e3556629c2db17ee55592cc21d273e1c13d545..84b24303e185693ad2f8207c64f5d73f10985f2c 100644 (file)
@@ -144,7 +144,9 @@ For all of these functions, the memory is not zeroed.
 .BR valloc (),
 and
 .BR pvalloc ()
-return a pointer to the allocated memory, or NULL if the request fails.
+return a pointer to the allocated memory on success.
+On error, NULL is returned, and \fIerrno\fP is set
+to indicate the cause of the error.
 .PP
 .BR posix_memalign ()
 returns zero on success, or one of the error values listed in the