Re: [PATCH] posix_memalign.3: some functions set errno.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Elliot

On 4/19/19 3:25 PM, enh wrote:
True of bionic, glibc, and musl. (I didn't check elsewhere.)

Thanks. Patch applied.

Cheers,

Michael

---
  man3/posix_memalign.3 | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/man3/posix_memalign.3 b/man3/posix_memalign.3
index b4e355662..84b24303e 100644
--- a/man3/posix_memalign.3
+++ b/man3/posix_memalign.3
@@ -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




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux