home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / libg++-2.7.1-bin.lha / lib / g++-include / getpagesize.h < prev    next >
C/C++ Source or Header  |  1996-10-12  |  471b  |  28 lines

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