home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / hp / 13002 < prev    next >
Encoding:
Text File  |  1992-11-17  |  1.0 KB  |  35 lines

  1. Newsgroups: comp.sys.hp
  2. Path: sparky!uunet!ukma!wupost!zaphod.mps.ohio-state.edu!sdd.hp.com!hp-col!fc.hp.com!rsh
  3. From: rsh@fc.hp.com
  4.  (R Scott Holbrook)
  5. Subject: Re: getpagesize  - Is there one?
  6. Sender: news@fc.hp.com (news daemon)
  7. Message-ID: <BxvK97.n2n@fc.hp.com>
  8. Date: Tue, 17 Nov 1992 19:17:31 GMT
  9. References: <7371467@hpfcso.FC.HP.COM>
  10. Organization: Hewlett-Packard, Fort Collins, CO
  11. X-Newsreader: TIN [version 1.1.1 PL6]
  12. Lines: 21
  13.  
  14. In comp.sys.hp, hurf@boa.graphics.cornell.edu (Hurf Sheldon) writes:
  15. >         
  16. > Is there an hp-ux s700 8.07 equvalent of Ultrix getpagesize() ?
  17.  
  18. And Mike Stroyan (stroyan@hpfcso.FC.HP.COM) responded:
  19. >
  20. > #include <sys/param.h> and use NBPG for to substitute for
  21. > getpagesize().
  22.  
  23. The more "portable" way to get the system physical page size is:
  24.  
  25. #include <unistd.h>
  26.  
  27. page_size = sysconf(_SC_PAGE_SIZE);
  28.  
  29. Scott Holbrook
  30. HP-UX Development Lab
  31. ---------------------
  32. The opinions expressed here are mine and mine only, they do not
  33. represent an official or un-official statement of the Hewlett-Packard
  34. Company.
  35.