]> git.ipfire.org Git - thirdparty/man-pages.git/commit
recv.2: Mention SOCK_SEQPACKET in MSG_TRUNC flag description
authorVladislav Ivanishin <vlad@ispras.ru>
Sun, 12 Feb 2023 13:38:04 +0000 (16:38 +0300)
committerAlejandro Colomar <alx@kernel.org>
Sun, 5 Mar 2023 18:30:30 +0000 (19:30 +0100)
commit23ad44a00f90ea5f8747c64d9bdf52ccaacdbddc
tree28572902d1384ec825e3d66eadfe1da1af10a7d5
parentfc2c99a290636610796aaffdeebe63e1e8e54cf7
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>
man2/recv.2