mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-19 21:03:51 +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;
|
|
}
|