c6d234
commit 521c6785e1fc94d1f501743e9a40af9e02797df3
c6d234
Author: Andreas Jaeger <aj@suse.de>
c6d234
Date:   Thu Jul 4 09:45:12 2013 +0200
c6d234
c6d234
    Sync sys/ptrace with Linux 3.10
c6d234
c6d234
diff -rup a/sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h b/sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
c6d234
--- a/sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h	2018-05-08 22:10:50.628796132 -0400
c6d234
+++ b/sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h	2018-05-08 22:33:59.528930354 -0400
c6d234
@@ -21,6 +21,7 @@
c6d234
 #define _SYS_PTRACE_H	1
c6d234
 
c6d234
 #include <features.h>
c6d234
+#include <bits/types.h>
c6d234
 
c6d234
 __BEGIN_DECLS
c6d234
 
c6d234
@@ -123,7 +124,11 @@ enum __ptrace_request
c6d234
 #define PTRACE_INTERRUPT PTRACE_INTERRUPT
c6d234
 
c6d234
   /* Wait for next group event.  */
c6d234
-  PTRACE_LISTEN = 0x4208
c6d234
+  PTRACE_LISTEN = 0x4208,
c6d234
+#define PTRACE_LISTEN PTRACE_LISTEN
c6d234
+
c6d234
+  PTRACE_PEEKSIGINFO = 0x4209
c6d234
+#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
c6d234
 };
c6d234
 
c6d234
 
c6d234
@@ -159,6 +164,20 @@ enum __ptrace_eventcodes
c6d234
   PTRACE_EVENT_SECCOMP  = 7
c6d234
 };
c6d234
 
c6d234
+/* Arguments for PTRACE_PEEKSIGINFO.  */
c6d234
+struct __ptrace_peeksiginfo_args
c6d234
+{
c6d234
+  __uint64_t off;	/* From which siginfo to start.  */
c6d234
+  __uint32_t flags;	/* Flags for peeksiginfo.  */
c6d234
+  __int32_t nr;		/* How many siginfos to take.  */
c6d234
+};
c6d234
+
c6d234
+enum __ptrace_peeksiginfo_flags
c6d234
+{
c6d234
+  /* Read signals from a shared (process wide) queue.  */
c6d234
+  PTRACE_PEEKSIGINFO_SHARED = (1 << 0)
c6d234
+};
c6d234
+
c6d234
 /* Perform process tracing functions.  REQUEST is one of the values
c6d234
    above, and determines the action to be taken.
c6d234
    For all requests except PTRACE_TRACEME, PID specifies the process to be
c6d234
diff -rup a/sysdeps/unix/sysv/linux/ia64/sys/ptrace.h b/sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
c6d234
--- a/sysdeps/unix/sysv/linux/ia64/sys/ptrace.h	2018-05-08 22:10:51.979794763 -0400
c6d234
+++ b/sysdeps/unix/sysv/linux/ia64/sys/ptrace.h	2018-05-08 22:33:59.532930337 -0400
c6d234
@@ -21,6 +21,7 @@
c6d234
 
c6d234
 #include <features.h>
c6d234
 #include <sys/ucontext.h>
c6d234
+#include <bits/types.h>
c6d234
 
c6d234
 __BEGIN_DECLS
c6d234
 
c6d234
@@ -128,7 +129,11 @@ enum __ptrace_request
c6d234
 #define PTRACE_INTERRUPT PTRACE_INTERRUPT
c6d234
 
c6d234
   /* Wait for next group event.  */
c6d234
-  PTRACE_LISTEN = 0x4208
c6d234
+  PTRACE_LISTEN = 0x4208,
c6d234
+#define PTRACE_LISTEN PTRACE_LISTEN
c6d234
+
c6d234
+  PTRACE_PEEKSIGINFO = 0x4209
c6d234
+#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
c6d234
 };
c6d234
 
c6d234
 
c6d234
@@ -179,6 +184,20 @@ enum __ptrace_eventcodes
c6d234
   PTRACE_EVENT_SECCOMP  = 7
c6d234
 };
c6d234
 
c6d234
+/* Arguments for PTRACE_PEEKSIGINFO.  */
c6d234
+struct __ptrace_peeksiginfo_args
c6d234
+{
c6d234
+  __uint64_t off;	/* From which siginfo to start.  */
c6d234
+  __uint32_t flags;	/* Flags for peeksiginfo.  */
c6d234
+  __int32_t nr;		/* How many siginfos to take.  */
c6d234
+};
c6d234
+
c6d234
+enum __ptrace_peeksiginfo_flags
c6d234
+{
c6d234
+  /* Read signals from a shared (process wide) queue.  */
c6d234
+  PTRACE_PEEKSIGINFO_SHARED = (1 << 0)
c6d234
+};
c6d234
+
c6d234
 /* Perform process tracing functions.  REQUEST is one of the values
c6d234
    above, and determines the action to be taken.
c6d234
    For all requests except PTRACE_TRACEME, PID specifies the process to be
c6d234
diff -rup a/sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h b/sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
c6d234
--- a/sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h	2012-12-24 22:02:13.000000000 -0500
c6d234
+++ b/sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h	2018-05-08 22:33:59.539930307 -0400
c6d234
@@ -20,6 +20,7 @@
c6d234
 #define _SYS_PTRACE_H	1
c6d234
 
c6d234
 #include <features.h>
c6d234
+#include <bits/types.h>
c6d234
 
c6d234
 __BEGIN_DECLS
c6d234
 
c6d234
@@ -115,7 +116,11 @@ enum __ptrace_request
c6d234
 #define PTRACE_INTERRUPT PTRACE_INTERRUPT
c6d234
 
c6d234
   /* Wait for next group event.  */
c6d234
-  PTRACE_LISTEN = 0x4208
c6d234
+  PTRACE_LISTEN = 0x4208,
c6d234
+#define PTRACE_LISTEN PTRACE_LISTEN
c6d234
+
c6d234
+  PTRACE_PEEKSIGINFO = 0x4209
c6d234
+#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
c6d234
 };
c6d234
 
c6d234
 
c6d234
@@ -151,6 +156,20 @@ enum __ptrace_eventcodes
c6d234
   PTRACE_EVENT_SECCOMP  = 7
c6d234
 };
c6d234
 
c6d234
+/* Arguments for PTRACE_PEEKSIGINFO.  */
c6d234
+struct __ptrace_peeksiginfo_args
c6d234
+{
c6d234
+  __uint64_t off;	/* From which siginfo to start.  */
c6d234
+  __uint32_t flags;	/* Flags for peeksiginfo.  */
c6d234
+  __int32_t nr;		/* How many siginfos to take.  */
c6d234
+};
c6d234
+
c6d234
+enum __ptrace_peeksiginfo_flags
c6d234
+{
c6d234
+  /* Read signals from a shared (process wide) queue.  */
c6d234
+  PTRACE_PEEKSIGINFO_SHARED = (1 << 0)
c6d234
+};
c6d234
+
c6d234
 /* Perform process tracing functions.  REQUEST is one of the values
c6d234
    above, and determines the action to be taken.
c6d234
    For all requests except PTRACE_TRACEME, PID specifies the process to be
c6d234
diff -rup a/sysdeps/unix/sysv/linux/s390/sys/ptrace.h b/sysdeps/unix/sysv/linux/s390/sys/ptrace.h
c6d234
--- a/sysdeps/unix/sysv/linux/s390/sys/ptrace.h	2012-12-24 22:02:13.000000000 -0500
c6d234
+++ b/sysdeps/unix/sysv/linux/s390/sys/ptrace.h	2018-05-08 22:33:59.542930293 -0400
c6d234
@@ -21,6 +21,7 @@
c6d234
 #define _SYS_PTRACE_H	1
c6d234
 
c6d234
 #include <features.h>
c6d234
+#include <bits/types.h>
c6d234
 
c6d234
 __BEGIN_DECLS
c6d234
 #ifdef _LINUX_PTRACE_H
c6d234
@@ -154,7 +155,11 @@ enum __ptrace_request
c6d234
 #define PTRACE_INTERRUPT PTRACE_INTERRUPT
c6d234
 
c6d234
   /* Wait for next group event.  */
c6d234
-  PTRACE_LISTEN = 0x4208
c6d234
+  PTRACE_LISTEN = 0x4208,
c6d234
+#define PTRACE_LISTEN PTRACE_LISTEN
c6d234
+
c6d234
+  PTRACE_PEEKSIGINFO = 0x4209
c6d234
+#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
c6d234
 };
c6d234
 
c6d234
 
c6d234
@@ -190,6 +195,20 @@ enum __ptrace_eventcodes
c6d234
   PTRACE_EVENT_SECCOMP  = 7
c6d234
 };
c6d234
 
c6d234
+/* Arguments for PTRACE_PEEKSIGINFO.  */
c6d234
+struct __ptrace_peeksiginfo_args
c6d234
+{
c6d234
+  __uint64_t off;	/* From which siginfo to start.  */
c6d234
+  __uint32_t flags;	/* Flags for peeksiginfo.  */
c6d234
+  __int32_t nr;		/* How many siginfos to take.  */
c6d234
+};
c6d234
+
c6d234
+enum __ptrace_peeksiginfo_flags
c6d234
+{
c6d234
+  /* Read signals from a shared (process wide) queue.  */
c6d234
+  PTRACE_PEEKSIGINFO_SHARED = (1 << 0)
c6d234
+};
c6d234
+
c6d234
 /* Perform process tracing functions.  REQUEST is one of the values
c6d234
    above, and determines the action to be taken.
c6d234
    For all requests except PTRACE_TRACEME, PID specifies the process to be
c6d234
diff -rup a/sysdeps/unix/sysv/linux/sparc/sys/ptrace.h b/sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
c6d234
--- a/sysdeps/unix/sysv/linux/sparc/sys/ptrace.h	2012-12-24 22:02:13.000000000 -0500
c6d234
+++ b/sysdeps/unix/sysv/linux/sparc/sys/ptrace.h	2018-05-08 22:33:59.546930276 -0400
c6d234
@@ -20,7 +20,7 @@
c6d234
 #define _SYS_PTRACE_H	1
c6d234
 
c6d234
 #include <features.h>
c6d234
-
c6d234
+#include <bits/types.h>
c6d234
 #include <bits/wordsize.h>
c6d234
 
c6d234
 /* Linux/SPARC kernels up to 2.3.18 do not care much
c6d234
@@ -198,7 +198,11 @@ enum __ptrace_request
c6d234
 #define PTRACE_INTERRUPT PTRACE_INTERRUPT
c6d234
 
c6d234
   /* Wait for next group event.  */
c6d234
-  PTRACE_LISTEN = 0x4208
c6d234
+  PTRACE_LISTEN = 0x4208,
c6d234
+#define PTRACE_LISTEN PTRACE_LISTEN
c6d234
+
c6d234
+  PTRACE_PEEKSIGINFO = 0x4209
c6d234
+#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
c6d234
 };
c6d234
 
c6d234
 
c6d234
@@ -234,6 +238,20 @@ enum __ptrace_eventcodes
c6d234
   PTRACE_EVENT_SECCOMP  = 7
c6d234
 };
c6d234
 
c6d234
+/* Arguments for PTRACE_PEEKSIGINFO.  */
c6d234
+struct __ptrace_peeksiginfo_args
c6d234
+{
c6d234
+  __uint64_t off;	/* From which siginfo to start.  */
c6d234
+  __uint32_t flags;	/* Flags for peeksiginfo.  */
c6d234
+  __int32_t nr;		/* How many siginfos to take.  */
c6d234
+};
c6d234
+
c6d234
+enum __ptrace_peeksiginfo_flags
c6d234
+{
c6d234
+  /* Read signals from a shared (process wide) queue.  */
c6d234
+  PTRACE_PEEKSIGINFO_SHARED = (1 << 0)
c6d234
+};
c6d234
+
c6d234
 /* Perform process tracing functions.  REQUEST is one of the values
c6d234
    above, and determines the action to be taken.
c6d234
    For all requests except PTRACE_TRACEME, PID specifies the process to be
c6d234
diff -rup a/sysdeps/unix/sysv/linux/sys/ptrace.h b/sysdeps/unix/sysv/linux/sys/ptrace.h
c6d234
--- a/sysdeps/unix/sysv/linux/sys/ptrace.h	2012-12-24 22:02:13.000000000 -0500
c6d234
+++ b/sysdeps/unix/sysv/linux/sys/ptrace.h	2018-05-08 22:33:59.550930259 -0400
c6d234
@@ -20,6 +20,7 @@
c6d234
 #define _SYS_PTRACE_H	1
c6d234
 
c6d234
 #include <features.h>
c6d234
+#include <bits/types.h>
c6d234
 
c6d234
 __BEGIN_DECLS
c6d234
 
c6d234
@@ -145,7 +146,11 @@ enum __ptrace_request
c6d234
 #define PTRACE_INTERRUPT PTRACE_INTERRUPT
c6d234
 
c6d234
   /* Wait for next group event.  */
c6d234
-  PTRACE_LISTEN = 0x4208
c6d234
+  PTRACE_LISTEN = 0x4208,
c6d234
+#define PTRACE_LISTEN PTRACE_LISTEN
c6d234
+
c6d234
+  PTRACE_PEEKSIGINFO = 0x4209
c6d234
+#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
c6d234
 };
c6d234
 
c6d234
 
c6d234
@@ -181,6 +186,20 @@ enum __ptrace_eventcodes
c6d234
   PTRAVE_EVENT_SECCOMP  = 7
c6d234
 };
c6d234
 
c6d234
+/* Arguments for PTRACE_PEEKSIGINFO.  */
c6d234
+struct __ptrace_peeksiginfo_args
c6d234
+{
c6d234
+  __uint64_t off;	/* From which siginfo to start.  */
c6d234
+  __uint32_t flags;	/* Flags for peeksiginfo.  */
c6d234
+  __int32_t nr;		/* How many siginfos to take.  */
c6d234
+};
c6d234
+
c6d234
+enum __ptrace_peeksiginfo_flags
c6d234
+{
c6d234
+  /* Read signals from a shared (process wide) queue.  */
c6d234
+  PTRACE_PEEKSIGINFO_SHARED = (1 << 0)
c6d234
+};
c6d234
+
c6d234
 /* Perform process tracing functions.  REQUEST is one of the values
c6d234
    above, and determines the action to be taken.
c6d234
    For all requests except PTRACE_TRACEME, PID specifies the process to be
c6d234
diff -rup a/sysdeps/unix/sysv/linux/tile/sys/ptrace.h b/sysdeps/unix/sysv/linux/tile/sys/ptrace.h
c6d234
--- a/sysdeps/unix/sysv/linux/tile/sys/ptrace.h	2018-05-08 22:10:48.688798100 -0400
c6d234
+++ b/sysdeps/unix/sysv/linux/tile/sys/ptrace.h	2018-05-08 22:33:59.535930324 -0400
c6d234
@@ -20,6 +20,7 @@
c6d234
 #define _SYS_PTRACE_H	1
c6d234
 
c6d234
 #include <features.h>
c6d234
+#include <bits/types.h>
c6d234
 
c6d234
 __BEGIN_DECLS
c6d234
 
c6d234
@@ -101,8 +102,28 @@ enum __ptrace_request
c6d234
 #define PT_GETSIGINFO PTRACE_GETSIGINFO
c6d234
 
c6d234
   /* Set new siginfo for process.  */
c6d234
-  PTRACE_SETSIGINFO = 0x4203
c6d234
+  PTRACE_SETSIGINFO = 0x4203,
c6d234
 #define PT_SETSIGINFO PTRACE_SETSIGINFO
c6d234
+
c6d234
+  /* Set register content.  */
c6d234
+  PTRACE_SETREGSET = 0x4205,
c6d234
+#define PTRACE_SETREGSET PTRACE_SETREGSET
c6d234
+
c6d234
+  /* Like PTRACE_ATTACH, but do not force tracee to trap and do not affect
c6d234
+     signal or group stop state.  */
c6d234
+  PTRACE_SEIZE = 0x4206,
c6d234
+#define PTRACE_SEIZE PTRACE_SEIZE
c6d234
+
c6d234
+  /* Trap seized tracee.  */
c6d234
+  PTRACE_INTERRUPT = 0x4207,
c6d234
+#define PTRACE_INTERRUPT PTRACE_INTERRUPT
c6d234
+
c6d234
+  /* Wait for next group event.  */
c6d234
+  PTRACE_LISTEN = 0x4208,
c6d234
+#define PTRACE_LISTEN PTRACE_LISTEN
c6d234
+
c6d234
+  PTRACE_PEEKSIGINFO = 0x4209
c6d234
+#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
c6d234
 };
c6d234
 
c6d234
 
c6d234
@@ -132,6 +153,20 @@ enum __ptrace_eventcodes
c6d234
   PTRACE_EVENT_SECCOMP  = 7
c6d234
 };
c6d234
 
c6d234
+/* Arguments for PTRACE_PEEKSIGINFO.  */
c6d234
+struct __ptrace_peeksiginfo_args
c6d234
+{
c6d234
+  __uint64_t off;	/* From which siginfo to start.  */
c6d234
+  __uint32_t flags;	/* Flags for peeksiginfo.  */
c6d234
+  __int32_t nr;		/* How many siginfos to take.  */
c6d234
+};
c6d234
+
c6d234
+enum __ptrace_peeksiginfo_flags
c6d234
+{
c6d234
+  /* Read signals from a shared (process wide) queue.  */
c6d234
+  PTRACE_PEEKSIGINFO_SHARED = (1 << 0)
c6d234
+}
c6d234
+
c6d234
 /* Perform process tracing functions.  REQUEST is one of the values
c6d234
    above, and determines the action to be taken.
c6d234
    For all requests except PTRACE_TRACEME, PID specifies the process to be