aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man3/cmsg.36
1 files changed, 6 insertions, 0 deletions
diff --git a/man3/cmsg.3 b/man3/cmsg.3
index 83bb633ccd..8b2c68fe0e 100644
--- a/man3/cmsg.3
+++ b/man3/cmsg.3
@@ -106,6 +106,12 @@ This is a constant expression.
.BR CMSG_DATA ()
returns a pointer to the data portion of a
.IR cmsghdr .
+The pointer returned cannot be assumed to be suitably aligned for
+accessing arbitrary payload data types.
+Applications should not cast it to a pointer type matching the payload,
+but should instead use
+.BR memcpy (3)
+to copy data to or from a suitably declared object.
.IP *
.BR CMSG_LEN ()
returns the value to store in the