mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +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;
|
|
}
|