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