mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 22:58:46 +00:00
21 lines
350 B
Odin
21 lines
350 B
Odin
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
|
|
|