olga / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

Blame SOURCES/glibc-rh1579451.patch

00db10
[RHBZ #1579451]
00db10
This is a backport of the following two upstream patches:
00db10
00db10
commit 31545c23277cd54a1edd41c85d8255fb589158e3
00db10
Author: Joseph Myers <joseph@codesourcery.com>
00db10
Date:   Mon Jun 29 14:38:46 2015 +0000
00db10
00db10
    Update headers for Linux 4.0, 4.1 definitions.
00db10
00db10
    This patch updates installed glibc headers for new definitions from
00db10
    Linux 4.0 and 4.1 that seem relevant to glibc headers.  In addition, I
00db10
    noticed that PF_IB / AF_IB, added in Linux 3.11, were missing for no
00db10
    obvious reason, so added those as well.
00db10
00db10
    Tested for x86_64 (testsuite, and that installed stripped shared
00db10
    libraries are unchanged by the patch).
00db10
00db10
        * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
00db10
        * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
00db10
        (PF_MPLS): Likewise.
00db10
        (AF_IB): Likewise.
00db10
        (AF_MPLS): Likewise.
00db10
        * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
00db10
        value and macro.
00db10
        (MS_RMT_MASK): Include MS_LAZYTIME.
00db10
00db10
commit 04d9a38bafddb92ab79bc0015533689e15848522
00db10
Author: Joseph Myers <joseph@codesourcery.com>
00db10
Date:   Tue Sep 1 13:47:25 2015 +0000
00db10
00db10
    Add netinet/in.h values from Linux 4.2.
00db10
00db10
    This patch adds new constants from Linux 4.2 to netinet/in.h:
00db10
    IPPROTO_MPLS and IP_BIND_ADDRESS_NO_PORT (both in
00db10
    include/uapi/linux/in.h in Linux; one directly in netinet/in.h, one in
00db10
    bits/in.h in glibc).
00db10
00db10
    Tested for x86_64 (testsuite, and that installed stripped shared
00db10
    libraries are unchanged by the patch).
00db10
00db10
        * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
00db10
        * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
00db10
        macro.
00db10
00db10
00db10
diff -Nrup a/inet/netinet/in.h b/inet/netinet/in.h
00db10
--- a/inet/netinet/in.h	2019-07-30 12:03:33.082066705 -0400
00db10
+++ b/inet/netinet/in.h	2019-07-30 12:22:54.461572719 -0400
00db10
@@ -86,6 +86,8 @@ enum
00db10
 #define IPPROTO_SCTP		IPPROTO_SCTP
00db10
     IPPROTO_UDPLITE = 136, /* UDP-Lite protocol.  */
00db10
 #define IPPROTO_UDPLITE		IPPROTO_UDPLITE
00db10
+    IPPROTO_MPLS = 137,    /* MPLS in IP.  */
00db10
+#define IPPROTO_MPLS           IPPROTO_MPLS
00db10
     IPPROTO_RAW = 255,	   /* Raw IP packets.  */
00db10
 #define IPPROTO_RAW		IPPROTO_RAW
00db10
     IPPROTO_MAX
00db10
diff -Nrup a/sysdeps/unix/sysv/linux/bits/in.h b/sysdeps/unix/sysv/linux/bits/in.h
00db10
--- a/sysdeps/unix/sysv/linux/bits/in.h	2019-07-30 12:03:35.863052019 -0400
00db10
+++ b/sysdeps/unix/sysv/linux/bits/in.h	2019-07-30 12:51:15.293703728 -0400
00db10
@@ -99,6 +99,8 @@
00db10
 
00db10
 #define IP_MINTTL       21
00db10
 #define IP_NODEFRAG     22
00db10
+#define IP_CHECKSUM     23
00db10
+#define IP_BIND_ADDRESS_NO_PORT 24
00db10
 
00db10
 /* IP_MTU_DISCOVER arguments.  */
00db10
 #define IP_PMTUDISC_DONT   0	/* Never send DF frames.  */
00db10
diff -Nrup a/sysdeps/unix/sysv/linux/bits/socket.h b/sysdeps/unix/sysv/linux/bits/socket.h
00db10
--- a/sysdeps/unix/sysv/linux/bits/socket.h	2019-07-30 12:03:33.757063141 -0400
00db10
+++ b/sysdeps/unix/sysv/linux/bits/socket.h	2019-07-30 12:54:02.612870856 -0400
00db10
@@ -69,6 +69,8 @@ typedef __socklen_t socklen_t;
00db10
 #define	PF_PPPOX	24	/* PPPoX sockets.  */
00db10
 #define	PF_WANPIPE	25	/* Wanpipe API sockets.  */
00db10
 #define PF_LLC		26	/* Linux LLC.  */
00db10
+#define PF_IB		27      /* Native InfiniBand address.  */
00db10
+#define PF_MPLS		28      /* MPLS.  */
00db10
 #define PF_CAN		29	/* Controller Area Network.  */
00db10
 #define PF_TIPC		30	/* TIPC sockets.  */
00db10
 #define	PF_BLUETOOTH	31	/* Bluetooth sockets.  */
00db10
@@ -114,6 +116,8 @@ typedef __socklen_t socklen_t;
00db10
 #define	AF_PPPOX	PF_PPPOX
00db10
 #define	AF_WANPIPE	PF_WANPIPE
00db10
 #define AF_LLC		PF_LLC
00db10
+#define AF_IB		PF_IB
00db10
+#define AF_MPLS		PF_MPLS
00db10
 #define AF_CAN		PF_CAN
00db10
 #define AF_TIPC		PF_TIPC
00db10
 #define	AF_BLUETOOTH	PF_BLUETOOTH
00db10
diff -Nrup a/sysdeps/unix/sysv/linux/sys/mount.h b/sysdeps/unix/sysv/linux/sys/mount.h
00db10
--- a/sysdeps/unix/sysv/linux/sys/mount.h	2012-12-24 22:02:13.000000000 -0500
00db10
+++ b/sysdeps/unix/sysv/linux/sys/mount.h	2019-07-30 12:58:23.595571750 -0400
00db10
@@ -78,6 +78,8 @@ enum
00db10
 #define MS_I_VERSION	MS_I_VERSION
00db10
   MS_STRICTATIME = 1 << 24,	/* Always perform atime updates.  */
00db10
 #define MS_STRICTATIME	MS_STRICTATIME
00db10
+  MS_LAZYTIME = 1 << 25,       /* Update the on-disk [acm]times lazily.  */
00db10
+#define MS_LAZYTIME    MS_LAZYTIME
00db10
   MS_ACTIVE = 1 << 30,
00db10
 #define MS_ACTIVE	MS_ACTIVE
00db10
   MS_NOUSER = 1 << 31
00db10
@@ -85,7 +87,8 @@ enum
00db10
 };
00db10
 
00db10
 /* Flags that can be altered by MS_REMOUNT  */
00db10
-#define MS_RMT_MASK (MS_RDONLY|MS_SYNCHRONOUS|MS_MANDLOCK|MS_I_VERSION)
00db10
+#define MS_RMT_MASK (MS_RDONLY|MS_SYNCHRONOUS|MS_MANDLOCK|MS_I_VERSION \
00db10
+		    |MS_LAZYTIME)
00db10
 
00db10
 
00db10
 /* Magic mount flag number. Has to be or-ed to the flag values.  */