| 291 | } |
| 292 | |
| 293 | buffered_file file::fdopen(const char* mode) { |
| 294 | // Don't retry as fdopen doesn't return EINTR. |
| 295 | FILE* f = FMT_POSIX_CALL(fdopen(fd_, mode)); |
| 296 | if (!f) |
| 297 | FMT_THROW( |
| 298 | system_error(errno, "cannot associate stream with file descriptor")); |
| 299 | buffered_file bf(f); |
| 300 | fd_ = -1; |
| 301 | return bf; |
| 302 | } |
| 303 | |
| 304 | long getpagesize() { |
| 305 | # ifdef _WIN32 |
nothing calls this directly
no test coverage detected