Skip to content

Commit

Permalink
Auto merge of #2580 - devnexen:netbsd_few_more_ptrace_queries, r=Amanieu
Browse files Browse the repository at this point in the history
netbsd adding few more ptrace queries types.
  • Loading branch information
bors committed Dec 9, 2021
2 parents bd967ef + 0e82ece commit 1725ca0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/unix/bsd/netbsdlike/netbsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -552,11 +552,23 @@ s! {
pub pl_event: ::c_int,
}
pub struct ptrace_lwpstatus {
pub pl_lwpid: lwpid_t,
pub pl_sigpend: sigset_t,
pub pl_sigmask: sigset_t,
pub pl_name: [::c_char; 20],
pub pl_private: *mut ::c_void,
}
pub struct ptrace_siginfo {
pub psi_siginfo: siginfo_t,
pub psi_lwpid: lwpid_t,
}
pub struct ptrace_event {
pub pe_set_event: ::c_int,
}
pub struct sysctldesc {
pub descr_num: i32,
pub descr_ver: u32,
Expand Down Expand Up @@ -2000,6 +2012,15 @@ pub const PT_SYSCALLEMU: ::c_int = 15;
pub const PT_SET_EVENT_MASK: ::c_int = 16;
pub const PT_GET_EVENT_MASK: ::c_int = 17;
pub const PT_GET_PROCESS_STATE: ::c_int = 18;
pub const PT_SET_SIGINFO: ::c_int = 19;
pub const PT_GET_SIGINFO: ::c_int = 20;
pub const PT_RESUME: ::c_int = 21;
pub const PT_SUSPEND: ::c_int = 23;
pub const PT_STOP: ::c_int = 23;
pub const PT_LWPSTATUS: ::c_int = 24;
pub const PT_LWPNEXT: ::c_int = 25;
pub const PT_SET_SIGPASS: ::c_int = 26;
pub const PT_GET_SIGPASS: ::c_int = 27;
pub const PT_FIRSTMACH: ::c_int = 32;

pub const POSIX_SPAWN_RESETIDS: ::c_int = 0x01;
Expand Down

0 comments on commit 1725ca0

Please sign in to comment.