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.odin8
1 files changed, 8 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..817b22483
--- /dev/null
+++ b/base/runtime/os_specific_freestanding.odin
@@ -0,0 +1,8 @@
+//+build freestanding
+//+private
+package runtime
+
+// TODO(bill): reimplement `os.write`
+_os_write :: proc "contextless" (data: []byte) -> (int, _OS_Errno) {
+ return 0, -1
+}