Remove core:os dependency for base:runtime

This commit is contained in:
gingerBill
2024-01-28 22:40:46 +00:00
parent eee8e0faa2
commit 9a16bc5fc5
19 changed files with 200 additions and 118 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
//+private
package mem_virtual
foreign import libc "System.framework"
foreign import libc "system:System.framework"
import "core:c"
PROT_NONE :: 0x0 /* [MC2] no permissions */
+2 -2
View File
@@ -1,8 +1,8 @@
package os
foreign import dl "system:dl"
foreign import libc "System.framework"
foreign import pthread "System.framework"
foreign import libc "system:System.framework"
foreign import pthread "system:System.framework"
import "base:runtime"
import "core:strings"
+1 -1
View File
@@ -2,7 +2,7 @@
package filepath
when ODIN_OS == .Darwin {
foreign import libc "System.framework"
foreign import libc "system:System.framework"
} else {
foreign import libc "system:c"
}
+1 -1
View File
@@ -5,7 +5,7 @@ package sync
import "core:c"
import "core:time"
foreign import System "System.framework"
foreign import System "system:System.framework"
foreign System {
// __ulock_wait is not available on 10.15
+1 -1
View File
@@ -5,7 +5,7 @@ package sync
import "core:c"
import "base:intrinsics"
foreign import pthread "System.framework"
foreign import pthread "system:System.framework"
_current_thread_id :: proc "contextless" () -> int {
tid: u64
+1 -1
View File
@@ -1,6 +1,6 @@
package darwin
foreign import pthread "System.framework"
foreign import pthread "system:System.framework"
import "core:c"
+1 -1
View File
@@ -86,7 +86,7 @@ PTHREAD_CANCEL_DISABLE :: 1
PTHREAD_CANCEL_DEFERRED :: 0
PTHREAD_CANCEL_ASYNCHRONOUS :: 1
foreign import pthread "System.framework"
foreign import pthread "system:System.framework"
@(default_calling_convention="c")
foreign pthread {
+1 -1
View File
@@ -2,7 +2,7 @@
package unix
when ODIN_OS == .Darwin {
foreign import libc "System.framework"
foreign import libc "system:System.framework"
} else {
foreign import libc "system:c"
}
+1 -1
View File
@@ -4,7 +4,7 @@ package time
import "core:c"
foreign import libc "System.framework"
foreign import libc "system:System.framework"
foreign libc {
@(link_name="sysctlbyname") _sysctlbyname :: proc(path: cstring, oldp: rawptr, oldlenp: rawptr, newp: rawptr, newlen: int) -> c.int ---
}