mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 23:58:50 +00:00
posix: add package
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package posix
|
||||
|
||||
import "base:intrinsics"
|
||||
|
||||
import "core:c"
|
||||
|
||||
result :: enum c.int {
|
||||
// Use `errno` and `strerror` for more information.
|
||||
FAIL = -1,
|
||||
// Operation succeeded.
|
||||
OK = 0,
|
||||
}
|
||||
|
||||
FD :: distinct c.int
|
||||
|
||||
@(private)
|
||||
log2 :: intrinsics.constant_log2
|
||||
|
||||
when ODIN_OS == .Darwin && ODIN_ARCH == .amd64 {
|
||||
@(private)
|
||||
INODE_SUFFIX :: "$INODE64"
|
||||
} else {
|
||||
@(private)
|
||||
INODE_SUFFIX :: ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user