You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
172 B
14 lines
172 B
7 months ago
|
#include "tests.h"
|
||
|
#include <unistd.h>
|
||
|
|
||
|
size_t
|
||
|
get_page_size(void)
|
||
|
{
|
||
|
static size_t page_size;
|
||
|
|
||
|
if (!page_size)
|
||
|
page_size = sysconf(_SC_PAGESIZE);
|
||
|
|
||
|
return page_size;
|
||
|
}
|