blob: 24776ec9201e83267d7864a380c9e272f8d4bfa7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/**
* @file
*
* @brief Get System Page Size
* @ingroup libcsupport
*/
#if HAVE_CONFIG_H
#include "config.h"
#endif
#include <unistd.h>
#include <sys/param.h>
/**
* Get System Page Size (from SVR4 and 4.2+ BSD)
*
* This is not a functional version but the SPARC backend for at least
* gcc 2.8.1 plus gnat 3.13p and gcc 3.0.1 require it to be there and
* return a reasonable value.
*/
int getpagesize(void)
{
return PAGE_SIZE;
}
|