aboutsummaryrefslogtreecommitdiff
path: root/base/runtime/os_specific_freestanding.odin
blob: 3b2b5a714ff0eaa15beda1d6e68b4d038dcc9afb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#+build freestanding
#+private
package runtime

_HAS_RAND_BYTES :: false

// TODO(bill): reimplement `os.write`
_stderr_write :: proc "contextless" (data: []byte) -> (int, _OS_Errno) {
	return 0, -1
}

_exit :: proc "contextless" (code: int) -> ! {
	trap()
}