diff options
author | Joseph Myers <joseph@codesourcery.com> | 2016-03-14 19:04:53 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2016-03-14 19:04:53 +0000 |
commit | 981569c74cbb6bafa2ddcefa6dd9dbdc938ff1c8 (patch) | |
tree | cd01160bcda50b473f166255a9e8b507389b7491 /bits | |
parent | 3205a39364dd79e52c5fda4bda0db526e704ae2b (diff) | |
download | glibc-981569c74cbb6bafa2ddcefa6dd9dbdc938ff1c8.tar.gz |
Update glibc headers for Linux 4.5.
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.
Diffstat (limited to 'bits')
-rw-r--r-- | bits/mman-linux.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bits/mman-linux.h b/bits/mman-linux.h index dbb994bf4d..29986d3cd2 100644 --- a/bits/mman-linux.h +++ b/bits/mman-linux.h @@ -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. */ |