aboutsummaryrefslogtreecommitdiffstats
diff options
authorAlejandro Colomar <alx@kernel.org>2025-12-10 13:26:07 +0100
committerAlejandro Colomar <alx@kernel.org>2025-12-13 21:13:41 +0100
commit1e5a0260edfd3fd4c9a5d4a79e5948cbde2addce (patch)
tree8194610361d41a0b6c501a28189ca42f3e68f41b
parentb23cb7bc6d526d2015b3d97781708457e1447e62 (diff)
downloadman-pages-1e5a0260edfd3fd4c9a5d4a79e5948cbde2addce.tar.gz
man/man3/posix_memalign.3: CAVEATS: Add section, and move paragraph to it
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--man/man3/posix_memalign.315
1 files changed, 8 insertions, 7 deletions
diff --git a/man/man3/posix_memalign.3 b/man/man3/posix_memalign.3
index 8b3258dc28..c2816e1d43 100644
--- a/man/man3/posix_memalign.3
+++ b/man/man3/posix_memalign.3
@@ -61,13 +61,6 @@ next section on failure.
The value of
.I errno
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-2008 TC2.
-.\" http://austingroupbugs.net/view.php?id=520
.SH ERRORS
.TP
.B EINVAL
@@ -118,5 +111,13 @@ The glibc
.BR malloc (3)
always returns 8-byte aligned memory addresses, so these functions are
needed only if you require larger alignment values.
+.SH CAVEATS
+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-2008 TC2.
+.\" http://austingroupbugs.net/view.php?id=520
.SH SEE ALSO
.BR aligned_alloc (3)