aboutsummaryrefslogtreecommitdiff
path: root/base/runtime/os_specific_freestanding.odin
diff options
context:
space:
mode:
Diffstat (limited to 'base/runtime/os_specific_freestanding.odin')
-rw-r--r--base/runtime/os_specific_freestanding.odin7
1 files changed, 7 insertions, 0 deletions
diff --git a/base/runtime/os_specific_freestanding.odin b/base/runtime/os_specific_freestanding.odin
new file mode 100644
index 000000000..a6d04cefb
--- /dev/null
+++ b/base/runtime/os_specific_freestanding.odin
@@ -0,0 +1,7 @@
+//+build freestanding
+package runtime
+
+// TODO(bill): reimplement `os.write`
+_os_write :: proc "contextless" (data: []byte) -> (int, _OS_Errno) {
+ return 0, -1
+}