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

Function getpagesize

extlibs/fmt/src/os.cc:304–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302}
303
304long getpagesize() {
305# ifdef _WIN32
306 SYSTEM_INFO si;
307 GetSystemInfo(&si);
308 return si.dwPageSize;
309# else
310 long size = FMT_POSIX_CALL(sysconf(_SC_PAGESIZE));
311 if (size < 0) FMT_THROW(system_error(errno, "cannot get memory page size"));
312 return size;
313# endif
314}
315#endif // FMT_USE_FCNTL
316FMT_END_NAMESPACE

Callers

nothing calls this directly

Calls 1

system_errorFunction · 0.85

Tested by

no test coverage detected