Add MADV_WIPEONFORK, MADV_KEEPONFORK from Linux 4.14.
commitfa680dc61455acdf8779d82c6f4bba5b48935c08
authorJoseph Myers <joseph@codesourcery.com>
Wed, 15 Nov 2017 18:40:29 +0000 (15 18:40 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Wed, 15 Nov 2017 18:40:29 +0000 (15 18:40 +0000)
tree6fc7fa9e8c275e605ee6734a3f9f01c4a66ba8a4
parent1ba1d8a44d244110c1f8d768f098ac44351acb76
Add MADV_WIPEONFORK, MADV_KEEPONFORK from Linux 4.14.

This patch adds the new MADV_WIPEONFORK and MADV_KEEPONFORK from Linux
4.14 to bits/mman-linux.h (and bits/mman.h in the hppa case).  Note
there are further hppa MADV_* changes in 4.14; I plan a separate glibc
patch for those.

Tested for x86_64.

* sysdeps/unix/sysv/linux/bits/mman-linux.h
[__USE_MISC] (MADV_WIPEONFORK): New macro.
[__USE_MISC] (MADV_KEEPONFORK): Likewise.
* sysdeps/unix/sysv/linux/hppa/bits/mman.h
[__USE_MISC] (MADV_WIPEONFORK): Likewise.
[__USE_MISC] (MADV_KEEPONFORK): Likewise.
ChangeLog
sysdeps/unix/sysv/linux/bits/mman-linux.h
sysdeps/unix/sysv/linux/hppa/bits/mman.h