unix.7: When sending ancillary data, only one item of each type may be sent

Verified by experiment and reading the source code (although
the SCM_RIGHTS case is not so clear to me in the source code).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2018-07-08 22:06:51 +02:00
parent 52900faab3
commit 5b5cb19580
1 changed files with 4 additions and 0 deletions

View File

@ -436,6 +436,10 @@ message, the
.B SO_PASSCRED
option must be enabled on the socket.
.PP
When sending ancillary data with
.BR sendmsg (2),
only one item of each of the above types may be included in the sent message.
.PP
If the space allocated for receiving incoming ancillary data is too small,
then the ancillary data is truncated to the number of headers
that will fit in the supplied buffer (or, in the case of an