fix core and libc

This commit is contained in:
avanspector
2024-02-25 03:32:35 +01:00
parent 0fa6ba726f
commit c3746d9f56
4 changed files with 23 additions and 3 deletions
+20
View File
@@ -0,0 +1,20 @@
package os
foreign import libc "system:c"
import "core:strings"
import "core:c"
import "base:runtime"
Handle :: distinct i32
Pid :: distinct i32
File_Time :: distinct i64
Errno :: distinct i32
B_GENERAL_ERROR_BASE :: min(i32)
B_POSIX_ERROR_BASE :: B_GENERAL_ERROR_BASE + 0x7000
INVALID_HANDLE :: ~Handle(0)
ERROR_NONE: Errno: 0