12345678910111213141516171819202122232425262728293031323334353637383940 |
- #include <unistd.h>
- #include <features.h>
- #include <sys/param.h>
- int __getpagesize()
- {
- #ifdef EXEC_PAGESIZE
- return EXEC_PAGESIZE;
- #else
- #ifdef NBPG
- #ifndef CLSIZE
- #define CLSIZE 1
- #endif
- return NBPG * CLSIZE;
- #else
- return NBPC;
- #endif
- #endif
- }
- weak_alias(__getpagesize, getpagesize);
|