mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 10:31:57 +00:00
12 lines
201 B
C++
12 lines
201 B
C++
#include <base/getPageSize.h>
|
|
#include <unistd.h>
|
|
#include <cstdlib>
|
|
|
|
Int64 getPageSize()
|
|
{
|
|
Int64 page_size = sysconf(_SC_PAGESIZE);
|
|
if (page_size < 0)
|
|
abort();
|
|
return page_size;
|
|
}
|