mirror of https://github.com/mkerrisk/man-pages
unix.7: Note behavior if buffer to receive ancillary data is too small
If the buffer supplied to recvmsg() to receive ancillary data is too small, then the data is truncated and the MSG_CTRUNC flag is set. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
13600496d3
commit
c87721467e
13
man7/unix.7
13
man7/unix.7
|
@ -435,6 +435,19 @@ To receive a
|
||||||
message, the
|
message, the
|
||||||
.B SO_PASSCRED
|
.B SO_PASSCRED
|
||||||
option must be enabled on the socket.
|
option must be enabled on the socket.
|
||||||
|
.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
|
||||||
|
.BR SCM_RIGHTS
|
||||||
|
file descriptor list, the list of file descriptors may be truncated).
|
||||||
|
In the event of such truncation, the
|
||||||
|
.BR MSG_CTRUNC
|
||||||
|
flag will be set in the
|
||||||
|
.I msg.msg_flags
|
||||||
|
value returned by
|
||||||
|
.BR recvmsg (2).
|
||||||
|
.\"
|
||||||
.SS Ioctls
|
.SS Ioctls
|
||||||
The following
|
The following
|
||||||
.BR ioctl (2)
|
.BR ioctl (2)
|
||||||
|
|
Loading…
Reference in New Issue