home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / LIBSRC.ZOO / libsrc / local / getpagesize.h < prev    next >
Text File  |  1991-12-29  |  516b  |  30 lines

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