Auto merge of #2492 - devnexen:netbsd_lwpinfo, r=JohnTitor

netbsd ptrace sig/lwpinfo additions
This commit is contained in:
bors 2021-10-30 21:04:05 +00:00
commit e69f0c1940
2 changed files with 19 additions and 0 deletions

View file

@ -730,6 +730,9 @@ PIOD_READ_I
PIOD_WRITE_D
PIOD_WRITE_I
PIPE_BUF
PL_EVENT_NONE
PL_EVENT_SIGNAL
PL_EVENT_SUSPENDED
PM_STR
POLLRDBAND
POLLRDNORM
@ -1330,6 +1333,8 @@ pthread_setaffinity_np
pthread_setname_np
ptrace
ptrace_io_desc
ptrace_lwpinfo
ptrace_siginfo
pututxline
pwritev
qsort

View file

@ -538,6 +538,16 @@ s! {
#[cfg(libc_union)]
pub fae: *mut posix_spawn_file_actions_entry_t,
}
pub struct ptrace_lwpinfo {
pub pl_lwpid: lwpid_t,
pub pl_event: ::c_int,
}
pub struct ptrace_siginfo {
pub psi_siginfo: siginfo_t,
pub psi_lwpid: lwpid_t,
}
}
s_no_extra_traits! {
@ -1598,6 +1608,10 @@ pub const TIME_ERROR: ::c_int = 5;
pub const LITTLE_ENDIAN: ::c_int = 1234;
pub const BIG_ENDIAN: ::c_int = 4321;
pub const PL_EVENT_NONE: ::c_int = 0;
pub const PL_EVENT_SIGNAL: ::c_int = 1;
pub const PL_EVENT_SUSPENDED: ::c_int = 2;
cfg_if! {
if #[cfg(any(target_arch = "sparc", target_arch = "sparc64",
target_arch = "x86", target_arch = "x86_64"))] {