Last change
on this file since 8945 was 3745, checked in by mdewsnip, 21 years ago |
Addition of MG package for search and retrieval
|
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
685 bytes
|
Line | |
---|
1 | /* Emulate getpagesize on systems that lack it. */
|
---|
2 |
|
---|
3 | #ifndef HAVE_GETPAGESIZE
|
---|
4 |
|
---|
5 | #ifdef VMS
|
---|
6 | #define getpagesize() 512
|
---|
7 | #endif
|
---|
8 |
|
---|
9 | #ifdef HAVE_UNISTD_H
|
---|
10 | #include <unistd.h>
|
---|
11 | #endif
|
---|
12 |
|
---|
13 | #ifdef _SC_PAGESIZE
|
---|
14 | #define getpagesize() sysconf(_SC_PAGESIZE)
|
---|
15 | #else
|
---|
16 |
|
---|
17 | /* [RPAP - Feb 97: WIN32 Port] */
|
---|
18 | #ifndef __WIN32__
|
---|
19 | #include <sys/param.h>
|
---|
20 | #endif
|
---|
21 |
|
---|
22 | #ifdef EXEC_PAGESIZE
|
---|
23 | #define getpagesize() EXEC_PAGESIZE
|
---|
24 | #else
|
---|
25 | #ifdef NBPG
|
---|
26 | #define getpagesize() NBPG * CLSIZE
|
---|
27 | #ifndef CLSIZE
|
---|
28 | #define CLSIZE 1
|
---|
29 | #endif /* no CLSIZE */
|
---|
30 | #else /* no NBPG */
|
---|
31 | #ifdef NBPC
|
---|
32 | #define getpagesize() NBPC
|
---|
33 | #endif /* NBPC */
|
---|
34 | #endif /* no NBPG */
|
---|
35 | #endif /* no EXEC_PAGESIZE */
|
---|
36 | #endif /* no _SC_PAGESIZE */
|
---|
37 |
|
---|
38 | #endif /* not HAVE_GETPAGESIZE */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.