commit 57e1adf7aa10739e5187a898c8afbed1d1d0d8a7
parent 715d380cda761932389ada491ca7885daa192dc5
Author: Sebastian <sebastian@sebsite.pw>
Date: Sat, 19 Feb 2022 19:23:45 -0500
rt: rename sigval_t to sigval
This is more consistent with the other struct types in rt, which don't
have a _t suffix.
Signed-off-by: Sebastian <sebastian@sebsite.pw>
Diffstat:
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/rt/+freebsd/types.ha b/rt/+freebsd/types.ha
@@ -40,6 +40,11 @@ export type siginfo = struct {
si_addr: *void,
};
+export type sigval = union {
+ sival_t: int,
+ sival_ptr: *void,
+};
+
export type pollfd = struct {
fd: int,
events: i16,
diff --git a/rt/+linux/types.ha b/rt/+linux/types.ha
@@ -393,7 +393,7 @@ export def SIG_SETMASK: int = 2;
def SI_MAX_SIZE: size = 128 / size(u8);
-export type sigval_t = union {
+export type sigval = union {
sival_t: int,
sival_ptr: *void,
};
@@ -419,7 +419,7 @@ export type siginfo = union {
struct {
si_tid: timer_t,
si_overrun: int,
- _sigval: sigval_t, // @ signals
+ _sigval: sigval, // @ signals
si_sys_private: int,
},
@@ -428,7 +428,7 @@ export type siginfo = union {
_sig_pid: pid_t, // @kill
_sig_uid: u32, // @ kill
union {
- si_value: sigval_t,
+ si_value: sigval,
si_int: int,
si_ptr: *void,
}