diff options
author | bors <bors@rust-lang.org> | 2021-10-30 21:04:05 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2021-10-30 21:04:05 +0000 |
commit | e69f0c1940bc3b10da3670b3a617207d5b7fe511 (patch) | |
tree | 5c9317eb697206f7d55a72d65aa46a65f4a1d3cf | |
parent | 9ae849a665edb6b86de466af8cfbeaba9cc96ea7 (diff) | |
parent | 802ad47d4ec20d0310dba54835115752190ae325 (diff) | |
download | rust-libc-e69f0c1940bc3b10da3670b3a617207d5b7fe511.tar.gz |
Auto merge of #2492 - devnexen:netbsd_lwpinfo, r=JohnTitor
netbsd ptrace sig/lwpinfo additions
-rw-r--r-- | libc-test/semver/netbsd.txt | 5 | ||||
-rw-r--r-- | src/unix/bsd/netbsdlike/netbsd/mod.rs | 14 |
2 files changed, 19 insertions, 0 deletions
diff --git a/libc-test/semver/netbsd.txt b/libc-test/semver/netbsd.txt index ddc9e48649..d4de8281ab 100644 --- a/libc-test/semver/netbsd.txt +++ b/libc-test/semver/netbsd.txt @@ -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 diff --git a/src/unix/bsd/netbsdlike/netbsd/mod.rs b/src/unix/bsd/netbsdlike/netbsd/mod.rs index 4b7e508695..1551f4874b 100644 --- a/src/unix/bsd/netbsdlike/netbsd/mod.rs +++ b/src/unix/bsd/netbsdlike/netbsd/mod.rs @@ -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"))] { |