MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / fdopen

Method fdopen

extlibs/fmt/src/os.cc:293–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293buffered_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
304long getpagesize() {
305# ifdef _WIN32

Callers

nothing calls this directly

Calls 1

system_errorFunction · 0.85

Tested by

no test coverage detected