Skip to content

Commit e69f0c1

Browse files
committed
Auto merge of #2492 - devnexen:netbsd_lwpinfo, r=JohnTitor
netbsd ptrace sig/lwpinfo additions
2 parents 9ae849a + 802ad47 commit e69f0c1

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
@@ -1330,6 +1333,8 @@ pthread_setaffinity_np
13301333
pthread_setname_np
13311334
ptrace
13321335
ptrace_io_desc
1336+
ptrace_lwpinfo
1337+
ptrace_siginfo
13331338
pututxline
13341339
pwritev
13351340
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)