| 268 | } |
| 269 | |
| 270 | void File::fclose(void* file) { |
| 271 | if (::close(fdFromHandle(file)) < 0) |
| 272 | throw IOException::format("Close error: {}", strerror(errno)); |
| 273 | } |
| 274 | |
| 275 | StreamOffset File::fsize(void* file) { |
| 276 | StreamOffset pos = ftell(file); |
nothing calls this directly
no test coverage detected