OSDN Git Service

(split) LDP: Update original to LDP v3.54
[linuxjm/LDP_man-pages.git] / original / man3 / posix_memalign.3
index c14fac5..48dc770 100644 (file)
@@ -26,7 +26,7 @@
 .\" 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
@@ -95,8 +95,9 @@ which must be a power of two and a multiple of
 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).
@@ -149,9 +150,10 @@ return a pointer to the allocated memory, or NULL if the request fails.
 .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