home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / sgi / 12533 < prev    next >
Encoding:
Text File  |  1992-08-17  |  846 b   |  27 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!stanford.edu!CSD-NewsHost.Stanford.EDU!news
  3. From: philip@ziggy.stanford.edu (Philip Machanick)
  4. Subject: finding page size?
  5. Message-ID: <1992Aug18.072025.11920@CSD-NewsHost.Stanford.EDU>
  6. Sender: news@CSD-NewsHost.Stanford.EDU
  7. Reply-To: philip@ziggy.stanford.edu (Philip Machanick)
  8. Organization: CS Department, Stanford University, California, USA
  9. Date: Tue, 18 Aug 1992 07:20:25 GMT
  10. Lines: 15
  11.  
  12. I need to dynamically look up the page size (I know it is 4K now, but prefer  
  13. not to build such assumptions in).
  14.  
  15. Grepping through header files, I found
  16.  
  17. #define NBPP            4096            /* Number of bytes per page */
  18.  
  19. in sys/immu.h.
  20.  
  21. Is this a good constant to use (i.e. supported)?
  22.  
  23. Is there a more standard UNIX way of getting this sort of number?
  24. --
  25. Philip Machanick
  26. philip@pescadero.stanford.edu
  27.