|
@@ -12,7 +12,6 @@ import "core:intrinsics"
|
|
Handle :: distinct i32;
|
|
Handle :: distinct i32;
|
|
File_Time :: distinct u64;
|
|
File_Time :: distinct u64;
|
|
Errno :: distinct i32;
|
|
Errno :: distinct i32;
|
|
-Syscall :: distinct i32;
|
|
|
|
|
|
|
|
INVALID_HANDLE :: ~Handle(0);
|
|
INVALID_HANDLE :: ~Handle(0);
|
|
|
|
|
|
@@ -266,7 +265,7 @@ X_OK :: 1; // Test for execute permission
|
|
W_OK :: 2; // Test for write permission
|
|
W_OK :: 2; // Test for write permission
|
|
R_OK :: 4; // Test for read permission
|
|
R_OK :: 4; // Test for read permission
|
|
|
|
|
|
-SYS_GETTID: Syscall : 186;
|
|
|
|
|
|
+SYS_GETTID :: 186;
|
|
|
|
|
|
foreign libc {
|
|
foreign libc {
|
|
@(link_name="__errno_location") __errno_location :: proc() -> ^int ---;
|
|
@(link_name="__errno_location") __errno_location :: proc() -> ^int ---;
|