commit 45564c203da1b09d4fd3e5e1a3f9e68d656bbe91
parent dca536b40b983284dc6febf98b526bd6274d37b3
Author: Drew DeVault <sir@cmpwn.com>
Date: Tue, 2 Jan 2024 13:50:14 +0100
unix::signal: add addr to siginfo on +openbsd
Signed-off-by: Drew DeVault <sir@cmpwn.com>
Diffstat:
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/unix/signal/+openbsd.ha b/unix/signal/+openbsd.ha
@@ -192,11 +192,17 @@ export type siginfo = struct {
// [[errors::errno]] to convert to a Hare-native error.
errno: rt::errno,
union {
- struct {
- // Process ID of the sender.
- pid: int,
- // Real user ID of the sending process.
- uid: uint,
+ union {
+ struct {
+ // Process ID of the sender.
+ pid: int,
+ // Real user ID of the sending process.
+ uid: uint,
+ },
+ struct {
+ // Address of the faulting instruction.
+ addr: *opaque,
+ },
},
// Pads the structure out to the length used by the kernel; do not use.
_si_pad: [29]int,