Skip to contentSkip to conversation

recv.2: remove duplicate paragraph for MSG_ERRQUEUE

PATCH In review Vincent Bernat 2 participants 4 messages Dec 30, 2016 – Dec 31, 2016 3 messages not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 recv.2: remove duplicate paragraph for MSG_ERRQUEUE

The removed paragraph is identical to the one a few lines above.

---
 man2/recv.2 | 14 --------------
 1 file changed, 14 deletions(-)
man2/recv.2 +0 -14
index d2b531276d90..d901f3898c44 100644
@@ -225,20 +225,6 @@ and the other fields of the
 .I sockaddr
 are undefined.
 The payload of the packet that caused the error is passed as normal data.
-.IP
-For local errors, no address is passed (this
-can be checked with the
-.I cmsg_len
-member of the
-.IR cmsghdr ).
-For error receives,
-the
-.B MSG_ERRQUEUE
-is set in the
-.IR msghdr .
-After an error has been passed, the pending socket error
-is regenerated based on the next queued error and will be passed
-on the next socket operation.
 .TP
 .B MSG_OOB
 This flag requests receipt of out-of-band data that would not be received
Signature · 6 lines
2.11.0

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw
In reply to a message not in the archive

Hello Vincent

Quoted 1 line · Vincent Bernat

The removed paragraph is identical to the one a few lines above.

Gosh! The duplication was injected back in man-pages-1.34 (2000)! Back in man-pages-1.33, it was the second instance only that was present, so I'm inclined to remove the other instance (opposite of your patch). What do you think?

Cheers,

Michael

Quoted 31 lines
---
 man2/recv.2 | 14 --------------
 1 file changed, 14 deletions(-)
man2/recv.2 +0 -14
index d2b531276d90..d901f3898c44 100644
@@ -225,20 +225,6 @@ and the other fields of the
 .I sockaddr
 are undefined.
 The payload of the packet that caused the error is passed as normal data.
-.IP
-For local errors, no address is passed (this
-can be checked with the
-.I cmsg_len
-member of the
-.IR cmsghdr ).
-For error receives,
-the
-.B MSG_ERRQUEUE
-is set in the
-.IR msghdr .
-After an error has been passed, the pending socket error
-is regenerated based on the next queued error and will be passed
-on the next socket operation.
 .TP
 .B MSG_OOB
 This flag requests receipt of out-of-band data that would not be received
Signature · 7 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#4 lore raw
In reply to a message not in the archive

❦ 31 décembre 2016 11:27 +0100, "Michael Kerrisk (man-pages)" <[email protected]> :

Quoted 6 lines
Quoted 1 line

The removed paragraph is identical to the one a few lines above.

Gosh! The duplication was injected back in man-pages-1.34 (2000)! Back in man-pages-1.33, it was the second instance only that was present, so I'm inclined to remove the other instance (opposite of your patch). What do you think?

I think both solutions are fine.

Signature · 6 lines
Use debugging compilers.
            - The Elements of Programming Style (Kernighan & Plauger)
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#6 lore raw
In reply to a message not in the archive
Quoted 10 lines · Vincent Bernat

❦ 31 décembre 2016 11:27 +0100, "Michael Kerrisk (man-pages)" <[email protected]> :

Quoted 6 lines
Quoted 1 line

The removed paragraph is identical to the one a few lines above.

Gosh! The duplication was injected back in man-pages-1.34 (2000)! Back in man-pages-1.33, it was the second instance only that was present, so I'm inclined to remove the other instance (opposite of your patch). What do you think?

I think both solutions are fine.

Thanks. I just wanted to check if you had some particular reason for removing the second instance, rather than the first. I removed the first.

Cheers,

Michael

Signature · 7 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html