No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / lib / libmalloc / getpagesize.h
blob22b71726501c980ccb8857347b0ce1a66788621d
1 #include <sys/param.h>
2 #ifdef BSD
3 #ifndef BSD4_1
4 #define HAVE_GETPAGESIZE
5 #endif
6 #endif
8 #ifndef HAVE_GETPAGESIZE
10 #ifdef VMS
11 #define getpagesize() 512
12 #endif
14 #ifdef HAVE_UNISTD_H
15 #include <unistd.h>
16 #endif
18 #ifdef _SC_PAGESIZE
19 #define getpagesize() sysconf(_SC_PAGESIZE)
20 #else
22 #include <sys/param.h>
24 #ifdef EXEC_PAGESIZE
25 #define getpagesize() EXEC_PAGESIZE
26 #else
27 #ifdef NBPG
28 #define getpagesize() NBPG * CLSIZE
29 #ifndef CLSIZE
30 #define CLSIZE 1
31 #endif /* no CLSIZE */
32 #else /* no NBPG */
33 #define getpagesize() NBPC
34 #endif /* no NBPG */
35 #endif /* no EXEC_PAGESIZE */
36 #endif /* no _SC_PAGESIZE */
38 #endif /* not HAVE_GETPAGESIZE */