| 58 | __attribute__((weak)) extern "C" void __lsan_do_leak_check(void) {} |
| 59 | |
| 60 | extern "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 | |
| 69 | WasmFS::~WasmFS() { |
| 70 | // See comment above on this function. |