about summary refs log tree commit diff
path: root/include/sys/ptrace.h
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2013-07-24 22:07:15 +0000
committerSzabolcs Nagy <nsz@port70.net>2013-07-24 22:17:24 +0000
commita512c7d8496d587281a1da41adc02c7785339429 (patch)
treec862db28033461d1a8f7f0122fe3ece9bea41444 /include/sys/ptrace.h
parentb5c07e45fc40f4486f9c3441765ea2ae649cf99c (diff)
downloadmusl-a512c7d8496d587281a1da41adc02c7785339429.tar.gz
musl-a512c7d8496d587281a1da41adc02c7785339429.tar.xz
musl-a512c7d8496d587281a1da41adc02c7785339429.zip
add PTRACE_PEEKSIGINFO to ptrace.h
added in linux-v3.10 commit 84c751bd4aebbaae995fe32279d3dba48327bad4
using stdint.h types for the new ptrace_peeksiginfo_args struct
Diffstat (limited to 'include/sys/ptrace.h')
-rw-r--r--include/sys/ptrace.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/sys/ptrace.h b/include/sys/ptrace.h
index 21d4ca3a..6cd3afdd 100644
--- a/include/sys/ptrace.h
+++ b/include/sys/ptrace.h
@@ -4,6 +4,8 @@
 extern "C" {
 #endif
 
+#include <stdint.h>
+
 #define PTRACE_TRACEME 0
 #define PT_TRACE_ME PTRACE_TRACEME
 
@@ -34,6 +36,7 @@ extern "C" {
 #define PTRACE_SEIZE 0x4206
 #define PTRACE_INTERRUPT 0x4207
 #define PTRACE_LISTEN 0x4208
+#define PTRACE_PEEKSIGINFO 0x4209
 
 #define PT_READ_I PTRACE_PEEKTEXT
 #define PT_READ_D PTRACE_PEEKDATA
@@ -77,6 +80,14 @@ extern "C" {
 #define PTRACE_EVENT_EXIT 6
 #define PTRACE_EVENT_SECCOMP 7
 
+#define PTRACE_PEEKSIGINFO_SHARED 1
+
+struct ptrace_peeksiginfo_args {
+	uint64_t off;
+	uint32_t flags;
+	int32_t nr;
+};
+
 long ptrace(int, ...);
 
 #ifdef __cplusplus