diff options
| author | Vladislav Ivanishin <vlad@ispras.ru> | 2023-02-12 16:38:04 +0300 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2023-03-05 19:30:30 +0100 |
| commit | 23ad44a00f90ea5f8747c64d9bdf52ccaacdbddc (patch) | |
| tree | 28572902d1384ec825e3d66eadfe1da1af10a7d5 | |
| parent | fc2c99a290636610796aaffdeebe63e1e8e54cf7 (diff) | |
| download | man-pages-23ad44a00f90ea5f8747c64d9bdf52ccaacdbddc.tar.gz | |
recv.2: Mention SOCK_SEQPACKET in MSG_TRUNC flag description
unix_seqpacket_recvmsg() calls unix_dgram_recvmsg() which handles
MSG_TRUNC. This has been the case since the handling was added in
9f6f9af7694ede6314bed281eec74d588ba9474f; see net/unix/af_unix.c:
static int unix_seqpacket_recvmsg([...])
{
[...]
return unix_dgram_recvmsg(iocb, sock, msg, size, flags);
}
The sequential-packet socket type seems to have been left out from the
description by an oversight.
Signed-off-by: Vladislav Ivanishin <vlad@ispras.ru>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
| -rw-r--r-- | man2/recv.2 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/man2/recv.2 b/man2/recv.2 index 5298a27453..81cd1957cb 100644 --- a/man2/recv.2 +++ b/man2/recv.2 @@ -226,7 +226,8 @@ subsequent receive call will return the same data. For raw .RB ( AF_PACKET ), Internet datagram (since Linux 2.4.27/2.6.8), -netlink (since Linux 2.6.22), and UNIX datagram +netlink (since Linux 2.6.22), +and UNIX datagram as well as sequenced-packet .\" commit 9f6f9af7694ede6314bed281eec74d588ba9474f (since Linux 3.4) sockets: return the real length of the packet or datagram, |
