diff options
author | Joseph Myers <joseph@codesourcery.com> | 2016-01-12 12:42:55 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2016-01-12 12:42:55 +0000 |
commit | fb53a27c57417104069f128963bf6f26dc02b0bd (patch) | |
tree | 6c061451ad7cc01ae191a16685a53269bca9e2d5 /bits/mman-linux.h | |
parent | d9b965fa56350d6eea9f7f438a0714c7ffbb183f (diff) | |
download | glibc-fb53a27c57417104069f128963bf6f26dc02b0bd.tar glibc-fb53a27c57417104069f128963bf6f26dc02b0bd.tar.gz glibc-fb53a27c57417104069f128963bf6f26dc02b0bd.tar.bz2 glibc-fb53a27c57417104069f128963bf6f26dc02b0bd.zip |
Add new header definitions from Linux 4.4 (plus older ptrace definitions).
This patch adds some new header definitions from Linux 4.4:
* MCL_ONFAULT is added to bits/mman.h / bits/mman-linux.h (this was
already done for hppa).
* PTRACE_SECCOMP_GET_FILTER is added to sys/ptrace.h. Along with it,
the older PTRACE_GETSIGMASK and PTRACE_SETSIGMASK, added in Linux
3.11 but missed at the time, are also added.
Tested for x86_64 and x86 (testsuite, and that installed stripped
shared libraries are unchanged by the patch).
* bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
* sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
Likewise.
* sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
Likewise.
* sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
Likewise.
* sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
enum constant and macro.
(PTRACE_SETSIGMASK): Likewise.
(PTRACE_SECCOMP_GET_FILTER): Likewise.
* sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
(PTRACE_GETSIGMASK): Likewise.
(PTRACE_SETSIGMASK): Likewise.
(PTRACE_SECCOMP_GET_FILTER): Likewise.
* sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
Likewise.
(PTRACE_SETSIGMASK): Likewise.
(PTRACE_SECCOMP_GET_FILTER): Likewise.
* sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
(PTRACE_GETSIGMASK): Likewise.
(PTRACE_SETSIGMASK): Likewise.
(PTRACE_SECCOMP_GET_FILTER): Likewise.
* sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
Likewise.
(PTRACE_SETSIGMASK): Likewise.
(PTRACE_SECCOMP_GET_FILTER): Likewise.
* sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
Likewise.
(PTRACE_SETSIGMASK): Likewise.
(PTRACE_SECCOMP_GET_FILTER): Likewise.
* sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
Likewise.
(PTRACE_SETSIGMASK): Likewise.
(PTRACE_SECCOMP_GET_FILTER): Likewise.
Diffstat (limited to 'bits/mman-linux.h')
-rw-r--r-- | bits/mman-linux.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bits/mman-linux.h b/bits/mman-linux.h index 9d0a9834c9..dbb994bf4d 100644 --- a/bits/mman-linux.h +++ b/bits/mman-linux.h @@ -108,4 +108,6 @@ # define MCL_CURRENT 1 /* Lock all currently mapped pages. */ # define MCL_FUTURE 2 /* Lock all additions to address space. */ +# define MCL_ONFAULT 4 /* Lock all pages that are + faulted in. */ #endif |