MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / wasmfs_flush

Function wasmfs_flush

system/lib/wasmfs/wasmfs.cpp:60–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58__attribute__((weak)) extern "C" void __lsan_do_leak_check(void) {}
59
60extern "C" void wasmfs_flush(void) {
61 // Flush musl libc streams.
62 fflush(0);
63
64 // Flush our own streams. TODO: flush all backends.
65 (void)SpecialFiles::getStdout()->locked().flush();
66 (void)SpecialFiles::getStderr()->locked().flush();
67}
68
69WasmFS::~WasmFS() {
70 // See comment above on this function.

Callers 1

~WasmFSMethod · 0.85

Calls 5

fflushFunction · 0.85
getStdoutFunction · 0.85
getStderrFunction · 0.85
flushMethod · 0.45
lockedMethod · 0.45

Tested by

no test coverage detected