home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / libg_ / libgpp / !libgpp / h / getpagesiz < prev    next >
Encoding:
Text File  |  1996-11-12  |  492 b   |  28 lines

  1.  
  2. #if defined(BSD) || defined(DGUX) || defined(__riscos__)
  3. #ifndef BSD4_1
  4. #define HAVE_GETPAGESIZE
  5. #endif
  6. #endif
  7.  
  8. #ifndef HAVE_GETPAGESIZE
  9.  
  10. #include <sys/param.h>
  11.  
  12. #ifdef EXEC_PAGESIZE
  13. #define getpagesize() EXEC_PAGESIZE
  14. #else
  15. #ifdef NBPG
  16. #define getpagesize() NBPG * CLSIZE
  17. #ifndef CLSIZE
  18. #define CLSIZE 1
  19. #endif /* no CLSIZE */
  20. #else /* no NBPG */
  21. #ifdef NBPC
  22. #define getpagesize() NBPC
  23. #endif /* NBPC */
  24. #endif /* no NBPG */
  25. #endif /* no EXEC_PAGESIZE */
  26.  
  27. #endif /* not HAVE_GETPAGESIZE */
  28.