]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update glibc headers for Linux 4.5.
authorJoseph Myers <joseph@codesourcery.com>
Mon, 14 Mar 2016 19:04:53 +0000 (19:04 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Mon, 14 Mar 2016 19:04:53 +0000 (19:04 +0000)
This patch updates the glibc headers with the defines MADV_FREE,
IPV6_HDRINCL and EPOLLEXCLUSIVE that are added in Linux 4.5.

Tested for x86_64 and x86 (testsuite, and that installed stripped
shared libraries are unchanged by the patch).

* bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
* sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
(MADV_FREE): Likewise.
* sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
* sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
EPOLLEXCLUSIVE.

ChangeLog
bits/mman-linux.h
sysdeps/unix/sysv/linux/bits/in.h
sysdeps/unix/sysv/linux/hppa/bits/mman.h
sysdeps/unix/sysv/linux/sys/epoll.h

index 993e7f21bd768488f990847b63c6f9147dfcd976..41335b99ea2e588defd382fdab8530b4ac6b0042 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2016-03-14  Joseph Myers  <joseph@codesourcery.com>
+
+       * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
+       * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
+       (MADV_FREE): Likewise.
+       * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
+       * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
+       EPOLLEXCLUSIVE.
+
 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
 
        * timezone/README: Remove mention of checktab.awk. Mention wiki
index dbb994bf4dbff1a58585b1053072b47444e47c63..29986d3cd2b430a833b2b0d78ef4b90a82637760 100644 (file)
@@ -81,6 +81,7 @@
 # define MADV_SEQUENTIAL  2    /* Expect sequential page references.  */
 # define MADV_WILLNEED   3     /* Will need these pages.  */
 # define MADV_DONTNEED   4     /* Don't need these pages.  */
+# define MADV_FREE       8     /* Free pages only if memory pressure.  */
 # define MADV_REMOVE     9     /* Remove these pages and resources.  */
 # define MADV_DONTFORK   10    /* Do not inherit across fork.  */
 # define MADV_DOFORK     11    /* Do inherit across fork.  */
index 3b01f12d933e85e5933ba4834a55a2d9f570b0d3..d75c07b9fd6b27a817a5bbbb0271ea2d2c0f0509 100644 (file)
@@ -184,6 +184,7 @@ struct in_pktinfo
 #define IPV6_LEAVE_ANYCAST     28
 #define IPV6_IPSEC_POLICY      34
 #define IPV6_XFRM_POLICY       35
+#define IPV6_HDRINCL           36
 
 /* Advanced API (RFC3542) (1).  */
 #define IPV6_RECVPKTINFO       49
index cbb3ab5a487d1305db1486bf57952cd695b0a3d7..ff2db1157d8c67e7c5d1fe2fbadaabd159a692dd 100644 (file)
@@ -88,6 +88,7 @@
 # define MADV_SPACEAVAIL  5    /* Insure that resources are reserved */
 # define MADV_VPS_PURGE          6     /* Purge pages from VM page cache */
 # define MADV_VPS_INHERIT 7    /* Inherit parents page size */
+# define MADV_FREE       8     /* Free pages only if memory pressure.  */
 # define MADV_REMOVE     9     /* Remove these pages and resources.  */
 # define MADV_DONTFORK  10     /* Do not inherit across fork.  */
 # define MADV_DOFORK    11     /* Do inherit across fork.  */
index 72ec211b9560f79bac9740f161ea95dfd693fbcb..90adf602600cca174b693bc62ac65860a732575e 100644 (file)
@@ -61,6 +61,8 @@ enum EPOLL_EVENTS
 #define EPOLLHUP EPOLLHUP
     EPOLLRDHUP = 0x2000,
 #define EPOLLRDHUP EPOLLRDHUP
+    EPOLLEXCLUSIVE = 1u << 28,
+#define EPOLLEXCLUSIVE EPOLLEXCLUSIVE
     EPOLLWAKEUP = 1u << 29,
 #define EPOLLWAKEUP EPOLLWAKEUP
     EPOLLONESHOT = 1u << 30,