Explorar o código

add PTRACE_PEEKSIGINFO to ptrace.h
added in linux-v3.10 commit 84c751bd4aebbaae995fe32279d3dba48327bad4
using stdint.h types for the new ptrace_peeksiginfo_args struct

Szabolcs Nagy %!s(int64=11) %!d(string=hai) anos
pai
achega
a512c7d849
Modificáronse 1 ficheiros con 11 adicións e 0 borrados
  1. 11 0
      include/sys/ptrace.h

+ 11 - 0
include/sys/ptrace.h

@@ -4,6 +4,8 @@
 extern "C" {
 extern "C" {
 #endif
 #endif
 
 
+#include <stdint.h>
+
 #define PTRACE_TRACEME 0
 #define PTRACE_TRACEME 0
 #define PT_TRACE_ME PTRACE_TRACEME
 #define PT_TRACE_ME PTRACE_TRACEME
 
 
@@ -34,6 +36,7 @@ extern "C" {
 #define PTRACE_SEIZE 0x4206
 #define PTRACE_SEIZE 0x4206
 #define PTRACE_INTERRUPT 0x4207
 #define PTRACE_INTERRUPT 0x4207
 #define PTRACE_LISTEN 0x4208
 #define PTRACE_LISTEN 0x4208
+#define PTRACE_PEEKSIGINFO 0x4209
 
 
 #define PT_READ_I PTRACE_PEEKTEXT
 #define PT_READ_I PTRACE_PEEKTEXT
 #define PT_READ_D PTRACE_PEEKDATA
 #define PT_READ_D PTRACE_PEEKDATA
@@ -77,6 +80,14 @@ extern "C" {
 #define PTRACE_EVENT_EXIT 6
 #define PTRACE_EVENT_EXIT 6
 #define PTRACE_EVENT_SECCOMP 7
 #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, ...);
 long ptrace(int, ...);
 
 
 #ifdef __cplusplus
 #ifdef __cplusplus