| 14 | FdTable fd_table; |
| 15 | |
| 16 | FdTable::FdTable() { |
| 17 | // Pre-open stdin / stdout / stderr so wasm fd 0/1/2 map to the host's. |
| 18 | table_[0] = FdEntry{0, false, nullptr}; |
| 19 | table_[1] = FdEntry{1, false, nullptr}; |
| 20 | table_[2] = FdEntry{2, false, nullptr}; |
| 21 | } |
| 22 | |
| 23 | i32_t FdTable::alloc(int os_fd) { |
| 24 | i32_t wfd = next_fd_++; |
nothing calls this directly
no outgoing calls
no test coverage detected