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

Nicholas Wourms nwourms@netscape.net
Wed Oct 29 01:48:00 GMT 2003


Hi,

I'm not sure how this would be taken... The only problem I see in doing 
this is if we ever decided to start supporting ia64/x86_64.  However, at 
that point we'd have to change a *ton* of other machine-dependant macros 
as well, so it seems like a rather trivial addition.  These macros seem 
to be fairly standard in both the linux and bsd worlds, so it would be 
very beneficial if we went ahead and defined them.  The reason I would 
like them is merely as a convienience factor in some socket work I'm 
doing.  I'm assuming that the windows default page shift, 12[*], will be 
an acceptable value that we can agree on?  This macro defines the base 
value upon which the aother macros calculate their values.  Based on 
that, I have attached a patch with those macros defined and some 
whitespace/tab cleanup cause by my last patch.  Because I'm not sure 
about my MUA, I've gzipped the patch to preserve formatting.

Cheers,
Nicholas

* This is the same value used by Linux/ia32, *BSD/ia32, Wine, and the 
Windows DDK in the cvs repo.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ChangeLog.txt
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20031029/66da4271/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygwin-page-macros.patch.txt.gz
Type: application/x-gzip
Size: 980 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20031029/66da4271/attachment.bin>


More information about the Cygwin-patches mailing list