home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!sgigate!odin!fido!zola!zuni!anchor!olson
- From: olson@anchor.esd.sgi.com (Dave Olson)
- Newsgroups: comp.sys.sgi
- Subject: Re: finding page size?
- Message-ID: <onughl0@zuni.esd.sgi.com>
- Date: 18 Aug 92 17:04:35 GMT
- References: <1992Aug18.072025.11920@CSD-NewsHost.Stanford.EDU>
- Sender: news@zuni.esd.sgi.com (Net News)
- Organization: Silicon Graphics, Inc. Mountain View, CA
- Lines: 22
-
- In <1992Aug18.072025.11920@CSD-NewsHost.Stanford.EDU> philip@ziggy.stanford.edu (Philip Machanick) writes:
-
- | 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)?
-
- Yes, and no. r4k systems can have multiple page sizes, and one
- of these days we will use that feature. Besides, it may not
- be terribly portable. See 'man getpagesize'. Remember folks,
- apropos is your friend (try 'apropos page', assuming you have
- run makewhatis).
- --
- Let no one tell me that silence gives consent, | Dave Olson
- because whoever is silent dissents. | Silicon Graphics, Inc.
- Maria Isabel Barreno | olson@sgi.com
-