home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.hp
- Path: sparky!uunet!ukma!wupost!zaphod.mps.ohio-state.edu!sdd.hp.com!hp-col!fc.hp.com!rsh
- From: rsh@fc.hp.com
- (R Scott Holbrook)
- Subject: Re: getpagesize - Is there one?
- Sender: news@fc.hp.com (news daemon)
- Message-ID: <BxvK97.n2n@fc.hp.com>
- Date: Tue, 17 Nov 1992 19:17:31 GMT
- References: <7371467@hpfcso.FC.HP.COM>
- Organization: Hewlett-Packard, Fort Collins, CO
- X-Newsreader: TIN [version 1.1.1 PL6]
- Lines: 21
-
- In comp.sys.hp, hurf@boa.graphics.cornell.edu (Hurf Sheldon) writes:
- >
- > Is there an hp-ux s700 8.07 equvalent of Ultrix getpagesize() ?
-
- And Mike Stroyan (stroyan@hpfcso.FC.HP.COM) responded:
- >
- > #include <sys/param.h> and use NBPG for to substitute for
- > getpagesize().
-
- The more "portable" way to get the system physical page size is:
-
- #include <unistd.h>
-
- page_size = sysconf(_SC_PAGE_SIZE);
-
- Scott Holbrook
- HP-UX Development Lab
- ---------------------
- The opinions expressed here are mine and mine only, they do not
- represent an official or un-official statement of the Hewlett-Packard
- Company.
-