Re: [patch] recv.2: correct non-existent name msg_iovec

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/19/23 13:49, Rob Linden wrote:
Hello Alejandro!

Hello Rob!

Sorry for the delay; I've been on vacation.  Please don't start new
threads for continuing an old one, as it makes it difficult to follow.
Is this just a resend of the previous patch?

Thanks,
Alex


I think there is a mistake on the manpage for recv. In the description of
the flag MSG_ERRQUEUE it says that data is passed via "msg_iovec". This is
probably referring to msg_iov in struct msghdr
(from /usr/include/bits/socket.h). A "msg_iovec" doesn't seem to exist.
Maybe it was spelled wrong because it's of type struct iovec.
If it is indeed wrong then the following patch corrects it:

Signed-off-by: Rob Linden <rlinden@xxxxxxxxxx>

 From 830a1b1233eb69bd8a4a64296581d094fb0edc46 Mon Sep 17 00:00:00 2001
From: rokkbert <rokkbert@xxxxxxxxx>
Date: Tue, 6 Jun 2023 10:00:20 +0200
Subject: [PATCH] recv.2: field msg_iov in struct msghdr is wrongly called
  msg_iovec. Corrected to msg_iov.

---
  man2/recv.2 | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/man2/recv.2 b/man2/recv.2
index 27d6d612c..62e43c9aa 100644
--- a/man2/recv.2
+++ b/man2/recv.2
@@ -159,7 +159,7 @@ and
  for more information.
  The payload of the original packet that caused the error
  is passed as normal data via
-.IR msg_iovec .
+.IR msg_iov .
  The original destination address of the datagram that caused the error
  is supplied via
  .IR msg_name .
--
2.39.2


All the best,
rob


--
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux