Blame SOURCES/1315605-mpo-7.3.1-recv.2-cmsg.3.patch

5a015b
From 111803a7b99abd01d487b00f7cce5b6d142a755c Mon Sep 17 00:00:00 2001
5a015b
From: =?UTF-8?q?Nikola=20Forr=C3=B3?= <nforro@redhat.com>
5a015b
Date: Tue, 28 Jun 2016 14:00:16 +0200
5a015b
Subject: [PATCH 11/19] recv.2, cmsg.3: fix type of cmsg_len member of cmsghdr
5a015b
 structure
5a015b
5a015b
---
5a015b
 man-pages/man2/____recv.2 |  7 ++++---
5a015b
 man-pages/man2/recv.2     |  7 ++++---
5a015b
 man-pages/man3/cmsg.3     | 10 ++++++----
5a015b
 3 files changed, 14 insertions(+), 10 deletions(-)
5a015b
5a015b
diff --git a/man-pages/man2/____recv.2 b/man-pages/man2/____recv.2
5a015b
index 3ac8ef4..7056eb2 100644
5a015b
--- a/man-pages/man2/____recv.2
5a015b
+++ b/man-pages/man2/____recv.2
5a015b
@@ -341,9 +341,10 @@ The messages are of the form:
5a015b
 .nf
5a015b
 
5a015b
 struct cmsghdr {
5a015b
-    socklen_t     cmsg_len;     /* data byte count, including hdr */
5a015b
-    int           cmsg_level;   /* originating protocol */
5a015b
-    int           cmsg_type;    /* protocol-specific type */
5a015b
+    size_t cmsg_len;    /* Data byte count, including header
5a015b
+                           (type is socklen_t in POSIX) */
5a015b
+    int    cmsg_level;  /* Originating protocol */
5a015b
+    int    cmsg_type;   /* Protocol-specific type */
5a015b
 /* followed by
5a015b
     unsigned char cmsg_data[]; */
5a015b
 };
5a015b
diff --git a/man-pages/man2/recv.2 b/man-pages/man2/recv.2
5a015b
index 3ac8ef4..7056eb2 100644
5a015b
--- a/man-pages/man2/recv.2
5a015b
+++ b/man-pages/man2/recv.2
5a015b
@@ -341,9 +341,10 @@ The messages are of the form:
5a015b
 .nf
5a015b
 
5a015b
 struct cmsghdr {
5a015b
-    socklen_t     cmsg_len;     /* data byte count, including hdr */
5a015b
-    int           cmsg_level;   /* originating protocol */
5a015b
-    int           cmsg_type;    /* protocol-specific type */
5a015b
+    size_t cmsg_len;    /* Data byte count, including header
5a015b
+                           (type is socklen_t in POSIX) */
5a015b
+    int    cmsg_level;  /* Originating protocol */
5a015b
+    int    cmsg_type;   /* Protocol-specific type */
5a015b
 /* followed by
5a015b
     unsigned char cmsg_data[]; */
5a015b
 };
5a015b
diff --git a/man-pages/man3/cmsg.3 b/man-pages/man3/cmsg.3
5a015b
index 2713c09..8fe3d5d 100644
5a015b
--- a/man-pages/man3/cmsg.3
5a015b
+++ b/man-pages/man3/cmsg.3
5a015b
@@ -28,10 +28,12 @@ CMSG_ALIGN, CMSG_SPACE, CMSG_NXTHDR, CMSG_FIRSTHDR \- access ancillary data
5a015b
 .sp
5a015b
 .nf
5a015b
 struct cmsghdr {
5a015b
-    socklen_t cmsg_len;    /* data byte count, including header */
5a015b
-    int       cmsg_level;  /* originating protocol */
5a015b
-    int       cmsg_type;   /* protocol-specific type */
5a015b
-    /* followed by unsigned char cmsg_data[]; */
5a015b
+    size_t cmsg_len;    /* Data byte count, including header
5a015b
+                           (type is socklen_t in POSIX) */
5a015b
+    int    cmsg_level;  /* Originating protocol */
5a015b
+    int    cmsg_type;   /* Protocol-specific type */
5a015b
+/* followed by
5a015b
+   unsigned char cmsg_data[]; */
5a015b
 };
5a015b
 .fi
5a015b
 .SH DESCRIPTION
5a015b
-- 
5a015b
2.7.4
5a015b