MCPcopy Index your code
hub / github.com/bytecodealliance/system-interface / tmpdir

Function tmpdir

tests/sys_common/io.rs:6–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5#[allow(unused)]
6pub fn tmpdir() -> TempDir {
7 // It's ok to wrap this in an unsafe block, rather than an unsafe function,
8 // because this function is only used by tests.
9 unsafe { tempdir(ambient_authority()) }
10 .expect("expected to be able to create a temporary directory")
11}

Callers 8

cap_append_all_vectoredFunction · 0.85
test_get_set_fd_flagsFunction · 0.85
test_appendFunction · 0.85
file_is_read_writeFunction · 0.85

Calls

no outgoing calls

Tested by 8

cap_append_all_vectoredFunction · 0.68
test_get_set_fd_flagsFunction · 0.68
test_appendFunction · 0.68
file_is_read_writeFunction · 0.68