Add PAGE_SIZE, PAGE_SHIFT, PAGE_MASK to sys/param.h

Brian Ford ford@vss.fsi.com
Wed Oct 29 18:39:00 GMT 2003


On Wed, 29 Oct 2003, Corinna Vinschen wrote:

> First of all, you shouldn't use them in applications.  Applications
> should call getpagesize() or sysconf(_SC_PAGESIZE) to get the page
> size.
>
FYI, Solaris defines these as:

#define PAGESIZE        (_sysconf(_SC_PAGESIZE))
#define PAGEOFFSET      (PAGESIZE - 1)
#define PAGEMASK        (~PAGEOFFSET)

It might be good to have them just for compatability.

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444



More information about the Cygwin-patches mailing list