MCPcopy Create free account
hub / github.com/apache/arrow / GetPageSizeInternal

Function GetPageSizeInternal

cpp/src/arrow/util/io_util.cc:1407–1422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1405}
1406
1407int64_t GetPageSizeInternal() {
1408#if defined(__APPLE__)
1409 return getpagesize();
1410#elif defined(_WIN32)
1411 SYSTEM_INFO si;
1412 GetSystemInfo(&si);
1413 return si.dwPageSize;
1414#else
1415 errno = 0;
1416 const auto ret = sysconf(_SC_PAGESIZE);
1417 if (ret == -1) {
1418 ARROW_LOG(FATAL) << "sysconf(_SC_PAGESIZE) failed: " << ErrnoMessage(errno);
1419 }
1420 return static_cast<int64_t>(ret);
1421#endif
1422}
1423
1424} // namespace
1425

Callers 1

GetPageSizeFunction · 0.85

Calls 1

ErrnoMessageFunction · 0.85

Tested by

no test coverage detected