mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-03 14:18:47 +00:00
27 lines
384 B
Odin
27 lines
384 B
Odin
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 :: ""
|
|
}
|
|
|