c6d234
commit fb53a27c57417104069f128963bf6f26dc02b0bd
c6d234
Author: Joseph Myers <joseph@codesourcery.com>
c6d234
Date:   Tue Jan 12 12:42:55 2016 +0000
c6d234
c6d234
    Add new header definitions from Linux 4.4 (plus older ptrace definitions).
c6d234
    
c6d234
    This patch adds some new header definitions from Linux 4.4:
c6d234
    
c6d234
    * MCL_ONFAULT is added to bits/mman.h / bits/mman-linux.h (this was
c6d234
      already done for hppa).
c6d234
    
c6d234
    * PTRACE_SECCOMP_GET_FILTER is added to sys/ptrace.h.  Along with it,
c6d234
      the older PTRACE_GETSIGMASK and PTRACE_SETSIGMASK, added in Linux
c6d234
      3.11 but missed at the time, are also added.
c6d234
    
c6d234
    Tested for x86_64 and x86 (testsuite, and that installed stripped
c6d234
    shared libraries are unchanged by the patch).
c6d234
    
c6d234
    	* bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
c6d234
    	* sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
c6d234
    	Likewise.
c6d234
    	* sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
c6d234
    	Likewise.
c6d234
    	* sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
c6d234
    	Likewise.
c6d234
    	* sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
c6d234
    	enum constant and macro.
c6d234
    	(PTRACE_SETSIGMASK): Likewise.
c6d234
    	(PTRACE_SECCOMP_GET_FILTER): Likewise.
c6d234
    	* sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
c6d234
    	(PTRACE_GETSIGMASK): Likewise.
c6d234
    	(PTRACE_SETSIGMASK): Likewise.
c6d234
    	(PTRACE_SECCOMP_GET_FILTER): Likewise.
c6d234
    	* sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
c6d234
    	Likewise.
c6d234
    	(PTRACE_SETSIGMASK): Likewise.
c6d234
    	(PTRACE_SECCOMP_GET_FILTER): Likewise.
c6d234
    	* sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
c6d234
    	(PTRACE_GETSIGMASK): Likewise.
c6d234
    	(PTRACE_SETSIGMASK): Likewise.
c6d234
    	(PTRACE_SECCOMP_GET_FILTER): Likewise.
c6d234
    	* sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
c6d234
    	Likewise.
c6d234
    	(PTRACE_SETSIGMASK): Likewise.
c6d234
    	(PTRACE_SECCOMP_GET_FILTER): Likewise.
c6d234
    	* sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
c6d234
    	Likewise.
c6d234
    	(PTRACE_SETSIGMASK): Likewise.
c6d234
    	(PTRACE_SECCOMP_GET_FILTER): Likewise.
c6d234
    	* sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
c6d234
    	Likewise.
c6d234
    	(PTRACE_SETSIGMASK): Likewise.
c6d234
    	(PTRACE_SECCOMP_GET_FILTER): Likewise.
c6d234
c6d234
diff --git a/sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h b/sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
c6d234
index 1ef1c5f..506ecce 100644
c6d234
--- a/sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
c6d234
+++ b/sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
c6d234
@@ -127,8 +127,17 @@ enum __ptrace_request
c6d234
   PTRACE_LISTEN = 0x4208,
c6d234
 #define PTRACE_LISTEN PTRACE_LISTEN
c6d234
 
c6d234
-  PTRACE_PEEKSIGINFO = 0x4209
c6d234
+  PTRACE_PEEKSIGINFO = 0x4209,
c6d234
 #define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
c6d234
+
c6d234
+  PTRACE_GETSIGMASK = 0x420a,
c6d234
+#define PTRACE_GETSIGMASK PTRACE_GETSIGMASK
c6d234
+
c6d234
+  PTRACE_SETSIGMASK = 0x420b,
c6d234
+#define PTRACE_SETSIGMASK PTRACE_SETSIGMASK
c6d234
+
c6d234
+  PTRACE_SECCOMP_GET_FILTER = 0x420c
c6d234
+#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
c6d234
 };
c6d234
 
c6d234
 
c6d234
diff --git a/sysdeps/unix/sysv/linux/ia64/sys/ptrace.h b/sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
c6d234
index d082d05..b568a66 100644
c6d234
--- a/sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
c6d234
+++ b/sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
c6d234
@@ -132,8 +132,17 @@ enum __ptrace_request
c6d234
   PTRACE_LISTEN = 0x4208,
c6d234
 #define PTRACE_LISTEN PTRACE_LISTEN
c6d234
 
c6d234
-  PTRACE_PEEKSIGINFO = 0x4209
c6d234
+  PTRACE_PEEKSIGINFO = 0x4209,
c6d234
 #define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
c6d234
+
c6d234
+  PTRACE_GETSIGMASK = 0x420a,
c6d234
+#define PTRACE_GETSIGMASK PTRACE_GETSIGMASK
c6d234
+
c6d234
+  PTRACE_SETSIGMASK = 0x420b,
c6d234
+#define PTRACE_SETSIGMASK PTRACE_SETSIGMASK
c6d234
+
c6d234
+  PTRACE_SECCOMP_GET_FILTER = 0x420c
c6d234
+#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
c6d234
 };
c6d234
 
c6d234
 
c6d234
diff --git a/sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h b/sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
c6d234
index 20d60aa..b9ddee0 100644
c6d234
--- a/sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
c6d234
+++ b/sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
c6d234
@@ -119,8 +119,17 @@ enum __ptrace_request
c6d234
   PTRACE_LISTEN = 0x4208,
c6d234
 #define PTRACE_LISTEN PTRACE_LISTEN
c6d234
 
c6d234
-  PTRACE_PEEKSIGINFO = 0x4209
c6d234
+  PTRACE_PEEKSIGINFO = 0x4209,
c6d234
 #define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
c6d234
+
c6d234
+  PTRACE_GETSIGMASK = 0x420a,
c6d234
+#define PTRACE_GETSIGMASK PTRACE_GETSIGMASK
c6d234
+
c6d234
+  PTRACE_SETSIGMASK = 0x420b,
c6d234
+#define PTRACE_SETSIGMASK PTRACE_SETSIGMASK
c6d234
+
c6d234
+  PTRACE_SECCOMP_GET_FILTER = 0x420c
c6d234
+#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
c6d234
 };
c6d234
 
c6d234
 
c6d234
diff --git a/sysdeps/unix/sysv/linux/s390/sys/ptrace.h b/sysdeps/unix/sysv/linux/s390/sys/ptrace.h
c6d234
index 07b118d..15991f3 100644
c6d234
--- a/sysdeps/unix/sysv/linux/s390/sys/ptrace.h
c6d234
+++ b/sysdeps/unix/sysv/linux/s390/sys/ptrace.h
c6d234
@@ -158,8 +158,17 @@ enum __ptrace_request
c6d234
   PTRACE_LISTEN = 0x4208,
c6d234
 #define PTRACE_LISTEN PTRACE_LISTEN
c6d234
 
c6d234
-  PTRACE_PEEKSIGINFO = 0x4209
c6d234
+  PTRACE_PEEKSIGINFO = 0x4209,
c6d234
 #define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
c6d234
+
c6d234
+  PTRACE_GETSIGMASK = 0x420a,
c6d234
+#define PTRACE_GETSIGMASK PTRACE_GETSIGMASK
c6d234
+
c6d234
+  PTRACE_SETSIGMASK = 0x420b,
c6d234
+#define PTRACE_SETSIGMASK PTRACE_SETSIGMASK
c6d234
+
c6d234
+  PTRACE_SECCOMP_GET_FILTER = 0x420c
c6d234
+#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
c6d234
 };
c6d234
 
c6d234
 
c6d234
diff --git a/sysdeps/unix/sysv/linux/sparc/sys/ptrace.h b/sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
c6d234
index dd57c7f..4b88152 100644
c6d234
--- a/sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
c6d234
+++ b/sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
c6d234
@@ -201,8 +201,17 @@ enum __ptrace_request
c6d234
   PTRACE_LISTEN = 0x4208,
c6d234
 #define PTRACE_LISTEN PTRACE_LISTEN
c6d234
 
c6d234
-  PTRACE_PEEKSIGINFO = 0x4209
c6d234
+  PTRACE_PEEKSIGINFO = 0x4209,
c6d234
 #define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
c6d234
+
c6d234
+  PTRACE_GETSIGMASK = 0x420a,
c6d234
+#define PTRACE_GETSIGMASK PTRACE_GETSIGMASK
c6d234
+
c6d234
+  PTRACE_SETSIGMASK = 0x420b,
c6d234
+#define PTRACE_SETSIGMASK PTRACE_SETSIGMASK
c6d234
+
c6d234
+  PTRACE_SECCOMP_GET_FILTER = 0x420c
c6d234
+#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
c6d234
 };
c6d234
 
c6d234
 
c6d234
diff --git a/sysdeps/unix/sysv/linux/sys/ptrace.h b/sysdeps/unix/sysv/linux/sys/ptrace.h
c6d234
index cb4f6a1..ee88271 100644
c6d234
--- a/sysdeps/unix/sysv/linux/sys/ptrace.h
c6d234
+++ b/sysdeps/unix/sysv/linux/sys/ptrace.h
c6d234
@@ -149,8 +149,17 @@ enum __ptrace_request
c6d234
   PTRACE_LISTEN = 0x4208,
c6d234
 #define PTRACE_LISTEN PTRACE_LISTEN
c6d234
 
c6d234
-  PTRACE_PEEKSIGINFO = 0x4209
c6d234
+  PTRACE_PEEKSIGINFO = 0x4209,
c6d234
 #define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
c6d234
+
c6d234
+  PTRACE_GETSIGMASK = 0x420a,
c6d234
+#define PTRACE_GETSIGMASK PTRACE_GETSIGMASK
c6d234
+
c6d234
+  PTRACE_SETSIGMASK = 0x420b,
c6d234
+#define PTRACE_SETSIGMASK PTRACE_SETSIGMASK
c6d234
+
c6d234
+  PTRACE_SECCOMP_GET_FILTER = 0x420c
c6d234
+#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
c6d234
 };
c6d234
 
c6d234
 
c6d234
diff --git a/sysdeps/unix/sysv/linux/tile/sys/ptrace.h b/sysdeps/unix/sysv/linux/tile/sys/ptrace.h
c6d234
index bb921c8..46b5efa 100644
c6d234
--- a/sysdeps/unix/sysv/linux/tile/sys/ptrace.h
c6d234
+++ b/sysdeps/unix/sysv/linux/tile/sys/ptrace.h
c6d234
@@ -122,8 +122,17 @@ enum __ptrace_request
c6d234
   PTRACE_LISTEN = 0x4208,
c6d234
 #define PTRACE_LISTEN PTRACE_LISTEN
c6d234
 
c6d234
-  PTRACE_PEEKSIGINFO = 0x4209
c6d234
+  PTRACE_PEEKSIGINFO = 0x4209,
c6d234
 #define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
c6d234
+
c6d234
+  PTRACE_GETSIGMASK = 0x420a,
c6d234
+#define PTRACE_GETSIGMASK PTRACE_GETSIGMASK
c6d234
+
c6d234
+  PTRACE_SETSIGMASK = 0x420b,
c6d234
+#define PTRACE_SETSIGMASK PTRACE_SETSIGMASK
c6d234
+
c6d234
+  PTRACE_SECCOMP_GET_FILTER = 0x420c
c6d234
+#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
c6d234
 };
c6d234
 
c6d234