Skip to content

Commit f1ede75

Browse files
committed
linux: add PTRACE_GETSIGMASK and PTRACE_SETSIGMASK
1 parent 74e81a5 commit f1ede75

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

libc-test/semver/linux.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1888,6 +1888,7 @@ PTRACE_EVENT_VFORK_DONE
18881888
PTRACE_GETEVENTMSG
18891889
PTRACE_GETREGSET
18901890
PTRACE_GETSIGINFO
1891+
PTRACE_GETSIGMASK
18911892
PTRACE_INTERRUPT
18921893
PTRACE_KILL
18931894
PTRACE_LISTEN
@@ -1913,6 +1914,7 @@ PTRACE_SEIZE
19131914
PTRACE_SETOPTIONS
19141915
PTRACE_SETREGSET
19151916
PTRACE_SETSIGINFO
1917+
PTRACE_SETSIGMASK
19161918
PTRACE_SINGLESTEP
19171919
PTRACE_SYSCALL
19181920
PTRACE_TRACEME

src/unix/linux_like/linux/gnu/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,8 @@ pub const PTRACE_SEIZE: ::c_uint = 0x4206;
853853
pub const PTRACE_INTERRUPT: ::c_uint = 0x4207;
854854
pub const PTRACE_LISTEN: ::c_uint = 0x4208;
855855
pub const PTRACE_PEEKSIGINFO: ::c_uint = 0x4209;
856+
pub const PTRACE_GETSIGMASK: ::c_uint = 0x420a;
857+
pub const PTRACE_SETSIGMASK: ::c_uint = 0x420b;
856858
pub const PTRACE_GET_SYSCALL_INFO: ::c_uint = 0x420e;
857859
pub const PTRACE_SYSCALL_INFO_NONE: ::__u8 = 0;
858860
pub const PTRACE_SYSCALL_INFO_ENTRY: ::__u8 = 1;

src/unix/linux_like/linux/musl/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,8 @@ pub const PTRACE_SEIZE: ::c_int = 0x4206;
579579
pub const PTRACE_INTERRUPT: ::c_int = 0x4207;
580580
pub const PTRACE_LISTEN: ::c_int = 0x4208;
581581
pub const PTRACE_PEEKSIGINFO: ::c_int = 0x4209;
582+
pub const PTRACE_GETSIGMASK: ::c_uint = 0x420a;
583+
pub const PTRACE_SETSIGMASK: ::c_uint = 0x420b;
582584

583585
pub const FAN_MARK_INODE: ::c_uint = 0x0000_0000;
584586
pub const FAN_MARK_MOUNT: ::c_uint = 0x0000_0010;

src/unix/linux_like/linux/uclibc/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,9 @@ pub const PF_NFC: ::c_int = 39;
282282
pub const PF_VSOCK: ::c_int = 40;
283283
pub const POSIX_MADV_DONTNEED: ::c_int = 4;
284284
pub const PTRACE_EVENT_STOP: ::c_int = 128;
285+
pub const PTRACE_GETSIGMASK: ::c_uint = 0x420a;
285286
pub const PTRACE_PEEKSIGINFO: ::c_int = 0x4209;
287+
pub const PTRACE_SETSIGMASK: ::c_uint = 0x420b;
286288
pub const RTLD_NOLOAD: ::c_int = 0x00004;
287289
pub const RUSAGE_THREAD: ::c_int = 1;
288290
pub const SHM_EXEC: ::c_int = 0100000;

0 commit comments

Comments
 (0)