X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fsys%2Fptrace.h;h=a133e66a1764441b217bf20f8233926967daa9e3;hb=839cc4e6da609a0b24f6cc32b0b11558fd77dd83;hp=21d4ca3a98da75d425c8c7725c674cc9c12eb849;hpb=21f01e1bf951dc3c543bb53de4d001dd4194da84;p=musl diff --git a/include/sys/ptrace.h b/include/sys/ptrace.h index 21d4ca3a..a133e66a 100644 --- a/include/sys/ptrace.h +++ b/include/sys/ptrace.h @@ -4,6 +4,8 @@ extern "C" { #endif +#include + #define PTRACE_TRACEME 0 #define PT_TRACE_ME PTRACE_TRACEME @@ -34,6 +36,9 @@ extern "C" { #define PTRACE_SEIZE 0x4206 #define PTRACE_INTERRUPT 0x4207 #define PTRACE_LISTEN 0x4208 +#define PTRACE_PEEKSIGINFO 0x4209 +#define PTRACE_GETSIGMASK 0x420a +#define PTRACE_SETSIGMASK 0x420b #define PT_READ_I PTRACE_PEEKTEXT #define PT_READ_D PTRACE_PEEKDATA @@ -77,6 +82,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