home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / sgi / 12549 < prev    next >
Encoding:
Internet Message Format  |  1992-08-18  |  1.3 KB

  1. Path: sparky!uunet!olivea!sgigate!odin!fido!zola!zuni!anchor!olson
  2. From: olson@anchor.esd.sgi.com (Dave Olson)
  3. Newsgroups: comp.sys.sgi
  4. Subject: Re: finding page size?
  5. Message-ID: <onughl0@zuni.esd.sgi.com>
  6. Date: 18 Aug 92 17:04:35 GMT
  7. References: <1992Aug18.072025.11920@CSD-NewsHost.Stanford.EDU>
  8. Sender: news@zuni.esd.sgi.com (Net News)
  9. Organization: Silicon Graphics, Inc.  Mountain View, CA
  10. Lines: 22
  11.  
  12. In <1992Aug18.072025.11920@CSD-NewsHost.Stanford.EDU> philip@ziggy.stanford.edu (Philip Machanick) writes:
  13.  
  14. | I need to dynamically look up the page size (I know it is 4K now, but prefer  
  15. | not to build such assumptions in).
  16. | Grepping through header files, I found
  17. | #define NBPP            4096            /* Number of bytes per page */
  18. | in sys/immu.h.
  19. | Is this a good constant to use (i.e. supported)?
  20.  
  21. Yes, and no.  r4k systems can have multiple page sizes, and one
  22. of these days we will use that feature.  Besides, it may not
  23. be terribly portable.  See 'man getpagesize'.  Remember folks,
  24. apropos is your friend (try 'apropos page', assuming you have
  25. run makewhatis).
  26. --
  27. Let no one tell me that silence gives consent,  |   Dave Olson
  28. because whoever is silent dissents.             |   Silicon Graphics, Inc.
  29.     Maria Isabel Barreno                        |   olson@sgi.com
  30.