arrfab / rpms / glibc

Forked from rpms/glibc 4 years ago
Clone

Blame SOURCES/glibc-rh1579451.patch

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