Merge Darwin signals into other UNIX-likes

They're all the same.
This commit is contained in:
Feoramund
2024-06-28 19:03:43 -04:00
parent 06652bebce
commit 929cc48703
+1 -14
View File
@@ -34,20 +34,7 @@ when ODIN_OS == .Windows {
SIGTERM :: 15 SIGTERM :: 15
} }
when ODIN_OS == .Linux || ODIN_OS == .FreeBSD || ODIN_OS == .Haiku || ODIN_OS == .OpenBSD || ODIN_OS == .NetBSD { when ODIN_OS == .Linux || ODIN_OS == .FreeBSD || ODIN_OS == .Haiku || ODIN_OS == .OpenBSD || ODIN_OS == .NetBSD || ODIN_OS == .Darwin {
SIG_ERR :: rawptr(~uintptr(0))
SIG_DFL :: rawptr(uintptr(0))
SIG_IGN :: rawptr(uintptr(1))
SIGABRT :: 6
SIGFPE :: 8
SIGILL :: 4
SIGINT :: 2
SIGSEGV :: 11
SIGTERM :: 15
}
when ODIN_OS == .Darwin {
SIG_ERR :: rawptr(~uintptr(0)) SIG_ERR :: rawptr(~uintptr(0))
SIG_DFL :: rawptr(uintptr(0)) SIG_DFL :: rawptr(uintptr(0))
SIG_IGN :: rawptr(uintptr(1)) SIG_IGN :: rawptr(uintptr(1))