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