aboutsummaryrefslogtreecommitdiff
path: root/core/os/temp_file_wasi.odin
blob: d3fa941f799403b5729d71cd383053266305ddac (plain)
1
2
3
4
5
6
7
8
9
#+private
package os

import "base:runtime"

_temp_dir :: proc(allocator: runtime.Allocator) -> (string, runtime.Allocator_Error) {
	// NOTE: requires user to add /tmp to their preopen dirs, no standard way exists.
	return clone_string("/tmp", allocator)
}