home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!stanford.edu!CSD-NewsHost.Stanford.EDU!news
- From: philip@ziggy.stanford.edu (Philip Machanick)
- Subject: finding page size?
- Message-ID: <1992Aug18.072025.11920@CSD-NewsHost.Stanford.EDU>
- Sender: news@CSD-NewsHost.Stanford.EDU
- Reply-To: philip@ziggy.stanford.edu (Philip Machanick)
- Organization: CS Department, Stanford University, California, USA
- Date: Tue, 18 Aug 1992 07:20:25 GMT
- Lines: 15
-
- I need to dynamically look up the page size (I know it is 4K now, but prefer
- not to build such assumptions in).
-
- Grepping through header files, I found
-
- #define NBPP 4096 /* Number of bytes per page */
-
- in sys/immu.h.
-
- Is this a good constant to use (i.e. supported)?
-
- Is there a more standard UNIX way of getting this sort of number?
- --
- Philip Machanick
- philip@pescadero.stanford.edu
-