temp_file_wasi.odin 258 B

123456789
  1. #+private
  2. package os2
  3. import "base:runtime"
  4. _temp_dir :: proc(allocator: runtime.Allocator) -> (string, runtime.Allocator_Error) {
  5. // NOTE: requires user to add /tmp to their preopen dirs, no standard way exists.
  6. return clone_string("/tmp", allocator)
  7. }