X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=include%2Fuapi%2Flinux%2Fptrace.h;h=52ebcc89f306a3106489597c504ae60c0469b9ca;hb=38f56f33ca381751f9b8910f67e7a805ec0b68cb;hp=022ab186a81252ceaad11708b69a8fcd964f19ed;hpb=f741656d646f7a5b56ba86765205b954237e7956;p=~andy%2Flinux diff --git a/include/uapi/linux/ptrace.h b/include/uapi/linux/ptrace.h index 022ab186a81..52ebcc89f30 100644 --- a/include/uapi/linux/ptrace.h +++ b/include/uapi/linux/ptrace.h @@ -5,6 +5,7 @@ /* has the defines to get at the registers. */ +#include #define PTRACE_TRACEME 0 #define PTRACE_PEEKTEXT 1 @@ -52,6 +53,17 @@ #define PTRACE_INTERRUPT 0x4207 #define PTRACE_LISTEN 0x4208 +#define PTRACE_PEEKSIGINFO 0x4209 + +struct ptrace_peeksiginfo_args { + __u64 off; /* from which siginfo to start */ + __u32 flags; + __s32 nr; /* how may siginfos to take */ +}; + +/* Read signals from a shared (process wide) queue */ +#define PTRACE_PEEKSIGINFO_SHARED (1 << 0) + /* Wait extended result codes for the above trace options. */ #define PTRACE_EVENT_FORK 1 #define PTRACE_EVENT_VFORK 2