commit 8271dd25175de6b33cf221505273d23b829c0e98
parent 9c6885a6cbdfa717750c45fe5a2c3f835752623c
Author: illiliti <illiliti@dimension.sh>
Date: Sat, 18 Feb 2023 20:38:11 +0300
rt: add missing SIG_* constants
Signed-off-by: illiliti <illiliti@dimension.sh>
Diffstat:
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/rt/+freebsd/types.ha b/rt/+freebsd/types.ha
@@ -27,6 +27,12 @@ export type sigset = struct {
__bits: [4]u32,
};
+export def SIG_ERR: uintptr = -1;
+export def SIG_DFL: uintptr = 0;
+export def SIG_IGN: uintptr = 1;
+export def SIG_CATCH: uintptr = 2;
+export def SIG_HOLD: uintptr = 3;
+
export type sigact = struct {
union {
sa_handler: *fn (_: int) void,
diff --git a/rt/+linux/types.ha b/rt/+linux/types.ha
@@ -504,6 +504,11 @@ export def SA_NOMASK: u64 = SA_NODEFER;
export def SA_ONESHOT: u64 = SA_RESETHAND;
export def SA_RESTORER: u64 = 0x04000000;
+export def SIG_ERR: uintptr = -1;
+export def SIG_DFL: uintptr = 0;
+export def SIG_IGN: uintptr = 1;
+export def SIG_HOLD: uintptr = 2;
+
export type sigact = struct {
union {
sa_handler: *fn (_: int) void,