Skip to content

Commit 2978d68

Browse files
committed
openbsd/netbsd siginfo_t adding si_addr field accessor.
1 parent 392d28c commit 2978d68

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ cfg_if! {
4444
}
4545

4646
impl siginfo_t {
47+
pub unsafe fn si_addr(&self) -> *mut ::c_void {
48+
self.si_addr
49+
}
50+
4751
pub unsafe fn si_value(&self) -> ::sigval {
4852
#[repr(C)]
4953
struct siginfo_timer {

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,10 @@ s! {
386386
}
387387

388388
impl siginfo_t {
389+
pub unsafe fn si_addr(&self) -> *mut ::c_char {
390+
self.si_addr
391+
}
392+
389393
pub unsafe fn si_value(&self) -> ::sigval {
390394
#[repr(C)]
391395
struct siginfo_timer {

0 commit comments

Comments
 (0)