On 01/29/10 19:02, David Woodhouse wrote:
> On Fri, 2010-01-29 at 14:24 -0500, Wyllys Ingersoll wrote:
>>
>> The code I submitted ensures the alignment for Solaris, but will fail on 
>> Linux
>> because some of the macros are not defined.  I can fix it, though.  Once you
>> know PAGESIZE, it is easy to compute PAGEOFFSET and PAGEMASK.  I will work up
>> a new patch and submit one that will compile under Linux as well.
>
> Be careful. Page size isn't known at build timeon Linux; you have to use
> getpagesize() or sysconf() to get it.
>

Not a problem, the linux PAGE_SIZE macro (/usr/include/sys/user.h) is defined
to call sysconf to get the runtime value.

-Wyllys


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
TrouSerS-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-tech

Reply via email to