darwin: use new wait on address API if possible

This commit is contained in:
Laytan Laats
2024-03-15 21:43:16 +01:00
parent 04f0fbf23a
commit 9c455b2213
5 changed files with 458 additions and 2 deletions
+9
View File
@@ -3,6 +3,8 @@ package darwin
import "core:c"
foreign import system "system:System.framework"
Bool :: b8
RUsage :: struct {
@@ -24,3 +26,10 @@ RUsage :: struct {
ru_nivcsw: c.long,
}
foreign system {
__error :: proc() -> ^i32 ---
}
errno :: #force_inline proc "contextless" () -> i32 {
return __error()^
}