Skip to content

Commit a104192

Browse files
committed
Auto merge of #3163 - mbyzhang:master, r=JohnTitor
linux: add PTRACE_GETSIGMASK and PTRACE_SETSIGMASK linux: add PTRACE_GETSIGMASK and PTRACE_SETSIGMASK
2 parents a1ad825 + f1ede75 commit a104192

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

libc-test/semver/linux.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1991,6 +1991,7 @@ PTRACE_EVENT_VFORK_DONE
19911991
PTRACE_GETEVENTMSG
19921992
PTRACE_GETREGSET
19931993
PTRACE_GETSIGINFO
1994+
PTRACE_GETSIGMASK
19941995
PTRACE_INTERRUPT
19951996
PTRACE_KILL
19961997
PTRACE_LISTEN
@@ -2016,6 +2017,7 @@ PTRACE_SEIZE
20162017
PTRACE_SETOPTIONS
20172018
PTRACE_SETREGSET
20182019
PTRACE_SETSIGINFO
2020+
PTRACE_SETSIGMASK
20192021
PTRACE_SINGLESTEP
20202022
PTRACE_SYSCALL
20212023
PTRACE_TRACEME

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

+2
Original file line numberDiff line numberDiff line change
@@ -852,6 +852,8 @@ pub const PTRACE_SEIZE: ::c_uint = 0x4206;
852852
pub const PTRACE_INTERRUPT: ::c_uint = 0x4207;
853853
pub const PTRACE_LISTEN: ::c_uint = 0x4208;
854854
pub const PTRACE_PEEKSIGINFO: ::c_uint = 0x4209;
855+
pub const PTRACE_GETSIGMASK: ::c_uint = 0x420a;
856+
pub const PTRACE_SETSIGMASK: ::c_uint = 0x420b;
855857
pub const PTRACE_GET_SYSCALL_INFO: ::c_uint = 0x420e;
856858
pub const PTRACE_SYSCALL_INFO_NONE: ::__u8 = 0;
857859
pub const PTRACE_SYSCALL_INFO_ENTRY: ::__u8 = 1;

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

+2
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,8 @@ pub const PTRACE_SEIZE: ::c_int = 0x4206;
591591
pub const PTRACE_INTERRUPT: ::c_int = 0x4207;
592592
pub const PTRACE_LISTEN: ::c_int = 0x4208;
593593
pub const PTRACE_PEEKSIGINFO: ::c_int = 0x4209;
594+
pub const PTRACE_GETSIGMASK: ::c_uint = 0x420a;
595+
pub const PTRACE_SETSIGMASK: ::c_uint = 0x420b;
594596

595597
pub const AF_IB: ::c_int = 27;
596598
pub const AF_MPLS: ::c_int = 28;

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

+2
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,9 @@ pub const PF_NFC: ::c_int = 39;
280280
pub const PF_VSOCK: ::c_int = 40;
281281
pub const POSIX_MADV_DONTNEED: ::c_int = 4;
282282
pub const PTRACE_EVENT_STOP: ::c_int = 128;
283+
pub const PTRACE_GETSIGMASK: ::c_uint = 0x420a;
283284
pub const PTRACE_PEEKSIGINFO: ::c_int = 0x4209;
285+
pub const PTRACE_SETSIGMASK: ::c_uint = 0x420b;
284286
pub const RTLD_NOLOAD: ::c_int = 0x00004;
285287
pub const RUSAGE_THREAD: ::c_int = 1;
286288
pub const SHM_EXEC: ::c_int = 0100000;

0 commit comments

Comments
 (0)