Skip to content

Commit 0e82ece

Browse files
committed
netbsd adding few more ptrace queries types.
1 parent e497f18 commit 0e82ece

File tree

1 file changed

+21
-0
lines changed
  • src/unix/bsd/netbsdlike/netbsd

1 file changed

+21
-0
lines changed

src/unix/bsd/netbsdlike/netbsd/mod.rs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,11 +552,23 @@ s! {
552552
pub pl_event: ::c_int,
553553
}
554554

555+
pub struct ptrace_lwpstatus {
556+
pub pl_lwpid: lwpid_t,
557+
pub pl_sigpend: sigset_t,
558+
pub pl_sigmask: sigset_t,
559+
pub pl_name: [::c_char; 20],
560+
pub pl_private: *mut ::c_void,
561+
}
562+
555563
pub struct ptrace_siginfo {
556564
pub psi_siginfo: siginfo_t,
557565
pub psi_lwpid: lwpid_t,
558566
}
559567

568+
pub struct ptrace_event {
569+
pub pe_set_event: ::c_int,
570+
}
571+
560572
pub struct sysctldesc {
561573
pub descr_num: i32,
562574
pub descr_ver: u32,
@@ -2000,6 +2012,15 @@ pub const PT_SYSCALLEMU: ::c_int = 15;
20002012
pub const PT_SET_EVENT_MASK: ::c_int = 16;
20012013
pub const PT_GET_EVENT_MASK: ::c_int = 17;
20022014
pub const PT_GET_PROCESS_STATE: ::c_int = 18;
2015+
pub const PT_SET_SIGINFO: ::c_int = 19;
2016+
pub const PT_GET_SIGINFO: ::c_int = 20;
2017+
pub const PT_RESUME: ::c_int = 21;
2018+
pub const PT_SUSPEND: ::c_int = 23;
2019+
pub const PT_STOP: ::c_int = 23;
2020+
pub const PT_LWPSTATUS: ::c_int = 24;
2021+
pub const PT_LWPNEXT: ::c_int = 25;
2022+
pub const PT_SET_SIGPASS: ::c_int = 26;
2023+
pub const PT_GET_SIGPASS: ::c_int = 27;
20032024
pub const PT_FIRSTMACH: ::c_int = 32;
20042025

20052026
pub const POSIX_SPAWN_RESETIDS: ::c_int = 0x01;

0 commit comments

Comments
 (0)