aboutsummaryrefslogtreecommitdiff
path: root/core/os
diff options
context:
space:
mode:
authorflysand7 <yyakut.ac@gmail.com>2023-10-18 01:57:26 +1100
committerflysand7 <yyakut.ac@gmail.com>2023-10-27 10:51:21 +1100
commit4d65b1ab9cb86bcbbfb0e5b26e3552f6f3582004 (patch)
treeb61fb2dbcfe8fbd8574cbda546c27ed91e49d44a /core/os
parent8e4bdcfb9837d70e94634db02e79a06036a3dde7 (diff)
Implement new sys/unix package
Diffstat (limited to 'core/os')
-rw-r--r--core/os/os_linux.odin13
1 files changed, 12 insertions, 1 deletions
diff --git a/core/os/os_linux.odin b/core/os/os_linux.odin
index 51a14ab44..aabf42574 100644
--- a/core/os/os_linux.odin
+++ b/core/os/os_linux.odin
@@ -8,7 +8,18 @@ import "core:strings"
import "core:c"
import "core:strconv"
import "core:intrinsics"
-import "core:sys/unix"
+
+// NOTE(flysand): For compatibility we'll make core:os package
+// depend on the old (scheduled for removal) linux package.
+// Seeing that there are plans for os2, I'm imagining that *that*
+// package should inherit the new sys functionality.
+// The reasons for these are as follows:
+// 1. It's very hard to update this package without breaking *a lot* of code.
+// 2. os2 is not stable anyways, so we can break compatibility all we want
+// It might be weird to bring up compatibility when Odin in it's nature isn't
+// all that about compatibility. But we don't want to push experimental changes
+// and have people's code break while it's still work in progress.
+import unix "core:sys/unix"
Handle :: distinct i32
Pid :: distinct i32