home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.2 (Developer) / NS_dev_3.2.iso / NextDeveloper / Headers / g++ / getpagesize.h < prev    next >
C/C++ Source or Header  |  1993-06-29  |  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.