Skip to content

Commit 802ad47

Browse files
committed
netbsd ptrace sig/lwpinfo additions
1 parent 6058062 commit 802ad47

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

libc-test/semver/netbsd.txt

+5
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,9 @@ PIOD_READ_I
730730
PIOD_WRITE_D
731731
PIOD_WRITE_I
732732
PIPE_BUF
733+
PL_EVENT_NONE
734+
PL_EVENT_SIGNAL
735+
PL_EVENT_SUSPENDED
733736
PM_STR
734737
POLLRDBAND
735738
POLLRDNORM
@@ -1323,6 +1326,8 @@ pthread_setaffinity_np
13231326
pthread_setname_np
13241327
ptrace
13251328
ptrace_io_desc
1329+
ptrace_lwpinfo
1330+
ptrace_siginfo
13261331
pututxline
13271332
pwritev
13281333
qsort

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

+14
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,16 @@ s! {
538538
#[cfg(libc_union)]
539539
pub fae: *mut posix_spawn_file_actions_entry_t,
540540
}
541+
542+
pub struct ptrace_lwpinfo {
543+
pub pl_lwpid: lwpid_t,
544+
pub pl_event: ::c_int,
545+
}
546+
547+
pub struct ptrace_siginfo {
548+
pub psi_siginfo: siginfo_t,
549+
pub psi_lwpid: lwpid_t,
550+
}
541551
}
542552

543553
s_no_extra_traits! {
@@ -1598,6 +1608,10 @@ pub const TIME_ERROR: ::c_int = 5;
15981608
pub const LITTLE_ENDIAN: ::c_int = 1234;
15991609
pub const BIG_ENDIAN: ::c_int = 4321;
16001610

1611+
pub const PL_EVENT_NONE: ::c_int = 0;
1612+
pub const PL_EVENT_SIGNAL: ::c_int = 1;
1613+
pub const PL_EVENT_SUSPENDED: ::c_int = 2;
1614+
16011615
cfg_if! {
16021616
if #[cfg(any(target_arch = "sparc", target_arch = "sparc64",
16031617
target_arch = "x86", target_arch = "x86_64"))] {

0 commit comments

Comments
 (0)