diff options
| -rw-r--r-- | man3/cmsg.3 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/man3/cmsg.3 b/man3/cmsg.3 index 4b57c41985..8c7764baea 100644 --- a/man3/cmsg.3 +++ b/man3/cmsg.3 @@ -85,6 +85,14 @@ returns the next valid after the passed .IR cmsghdr . It returns NULL when there isn't enough space left in the buffer. +.IP +When initializing a buffer that will contain a series of +.I cmsghdr +structures (e.g., to be sent with +.BR sendmsg (2)), +that buffer should first be zero-initialized +to ensure the correct operation of +.BR CMSG_NXTHDR (). .IP * .BR CMSG_ALIGN (), given a length, returns it including the required alignment. |
