mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-18 12:16:13 +08:00
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.
This commit is contained in:
parent
d9b965fa56
commit
fb53a27c57
38
ChangeLog
38
ChangeLog
@ -1,3 +1,41 @@
|
||||
2016-01-12 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* 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.
|
||||
|
||||
2016-01-11 Jonathan Wakely <jwakely.gcc@gmail.com>
|
||||
Adhemerval Zanella <adhemerval.zanella@linaro.org>
|
||||
|
||||
|
@ -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
|
||||
|
@ -127,8 +127,17 @@ enum __ptrace_request
|
||||
PTRACE_LISTEN = 0x4208,
|
||||
#define PTRACE_LISTEN PTRACE_LISTEN
|
||||
|
||||
PTRACE_PEEKSIGINFO = 0x4209
|
||||
PTRACE_PEEKSIGINFO = 0x4209,
|
||||
#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
|
||||
|
||||
PTRACE_GETSIGMASK = 0x420a,
|
||||
#define PTRACE_GETSIGMASK PTRACE_GETSIGMASK
|
||||
|
||||
PTRACE_SETSIGMASK = 0x420b,
|
||||
#define PTRACE_SETSIGMASK PTRACE_SETSIGMASK
|
||||
|
||||
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||
#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
|
||||
};
|
||||
|
||||
|
||||
|
@ -41,6 +41,7 @@
|
||||
/* Flags for `mlockall'. */
|
||||
#define MCL_CURRENT 8192
|
||||
#define MCL_FUTURE 16384
|
||||
#define MCL_ONFAULT 32768
|
||||
|
||||
#include <bits/mman-linux.h>
|
||||
|
||||
|
@ -132,8 +132,17 @@ enum __ptrace_request
|
||||
PTRACE_LISTEN = 0x4208,
|
||||
#define PTRACE_LISTEN PTRACE_LISTEN
|
||||
|
||||
PTRACE_PEEKSIGINFO = 0x4209
|
||||
PTRACE_PEEKSIGINFO = 0x4209,
|
||||
#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
|
||||
|
||||
PTRACE_GETSIGMASK = 0x420a,
|
||||
#define PTRACE_GETSIGMASK PTRACE_GETSIGMASK
|
||||
|
||||
PTRACE_SETSIGMASK = 0x420b,
|
||||
#define PTRACE_SETSIGMASK PTRACE_SETSIGMASK
|
||||
|
||||
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||
#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
|
||||
};
|
||||
|
||||
|
||||
|
@ -42,6 +42,8 @@
|
||||
#define MCL_CURRENT 0x2000 /* Lock all currently mapped pages. */
|
||||
#define MCL_FUTURE 0x4000 /* Lock all additions to address
|
||||
space. */
|
||||
#define MCL_ONFAULT 0x8000 /* Lock all pages that are
|
||||
faulted in. */
|
||||
|
||||
/* Include generic Linux declarations. */
|
||||
#include <bits/mman-linux.h>
|
||||
|
@ -119,8 +119,17 @@ enum __ptrace_request
|
||||
PTRACE_LISTEN = 0x4208,
|
||||
#define PTRACE_LISTEN PTRACE_LISTEN
|
||||
|
||||
PTRACE_PEEKSIGINFO = 0x4209
|
||||
PTRACE_PEEKSIGINFO = 0x4209,
|
||||
#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
|
||||
|
||||
PTRACE_GETSIGMASK = 0x420a,
|
||||
#define PTRACE_GETSIGMASK PTRACE_GETSIGMASK
|
||||
|
||||
PTRACE_SETSIGMASK = 0x420b,
|
||||
#define PTRACE_SETSIGMASK PTRACE_SETSIGMASK
|
||||
|
||||
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||
#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
|
||||
};
|
||||
|
||||
|
||||
|
@ -158,8 +158,17 @@ enum __ptrace_request
|
||||
PTRACE_LISTEN = 0x4208,
|
||||
#define PTRACE_LISTEN PTRACE_LISTEN
|
||||
|
||||
PTRACE_PEEKSIGINFO = 0x4209
|
||||
PTRACE_PEEKSIGINFO = 0x4209,
|
||||
#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
|
||||
|
||||
PTRACE_GETSIGMASK = 0x420a,
|
||||
#define PTRACE_GETSIGMASK PTRACE_GETSIGMASK
|
||||
|
||||
PTRACE_SETSIGMASK = 0x420b,
|
||||
#define PTRACE_SETSIGMASK PTRACE_SETSIGMASK
|
||||
|
||||
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||
#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
|
||||
};
|
||||
|
||||
|
||||
|
@ -41,6 +41,8 @@
|
||||
/* Flags for `mlockall'. */
|
||||
#define MCL_CURRENT 0x2000 /* Lock all currently mapped pages. */
|
||||
#define MCL_FUTURE 0x4000 /* Lock all additions to address
|
||||
#define MCL_ONFAULT 0x8000 /* Lock all pages that are
|
||||
faulted in. */
|
||||
space. */
|
||||
/* Include generic Linux declarations. */
|
||||
#include <bits/mman-linux.h>
|
||||
|
@ -201,8 +201,17 @@ enum __ptrace_request
|
||||
PTRACE_LISTEN = 0x4208,
|
||||
#define PTRACE_LISTEN PTRACE_LISTEN
|
||||
|
||||
PTRACE_PEEKSIGINFO = 0x4209
|
||||
PTRACE_PEEKSIGINFO = 0x4209,
|
||||
#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
|
||||
|
||||
PTRACE_GETSIGMASK = 0x420a,
|
||||
#define PTRACE_GETSIGMASK PTRACE_GETSIGMASK
|
||||
|
||||
PTRACE_SETSIGMASK = 0x420b,
|
||||
#define PTRACE_SETSIGMASK PTRACE_SETSIGMASK
|
||||
|
||||
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||
#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
|
||||
};
|
||||
|
||||
|
||||
|
@ -149,8 +149,17 @@ enum __ptrace_request
|
||||
PTRACE_LISTEN = 0x4208,
|
||||
#define PTRACE_LISTEN PTRACE_LISTEN
|
||||
|
||||
PTRACE_PEEKSIGINFO = 0x4209
|
||||
PTRACE_PEEKSIGINFO = 0x4209,
|
||||
#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
|
||||
|
||||
PTRACE_GETSIGMASK = 0x420a,
|
||||
#define PTRACE_GETSIGMASK PTRACE_GETSIGMASK
|
||||
|
||||
PTRACE_SETSIGMASK = 0x420b,
|
||||
#define PTRACE_SETSIGMASK PTRACE_SETSIGMASK
|
||||
|
||||
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||
#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
|
||||
};
|
||||
|
||||
|
||||
|
@ -122,8 +122,17 @@ enum __ptrace_request
|
||||
PTRACE_LISTEN = 0x4208,
|
||||
#define PTRACE_LISTEN PTRACE_LISTEN
|
||||
|
||||
PTRACE_PEEKSIGINFO = 0x4209
|
||||
PTRACE_PEEKSIGINFO = 0x4209,
|
||||
#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
|
||||
|
||||
PTRACE_GETSIGMASK = 0x420a,
|
||||
#define PTRACE_GETSIGMASK PTRACE_GETSIGMASK
|
||||
|
||||
PTRACE_SETSIGMASK = 0x420b,
|
||||
#define PTRACE_SETSIGMASK PTRACE_SETSIGMASK
|
||||
|
||||
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||
#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user