what is the proper way to find page size in C program?

Robert P. J. Day rpjday-L09J2beyid0N/H6P543EQg at public.gmane.org
Wed Jan 6 14:19:06 UTC 2010


On Wed, 6 Jan 2010, bob 295 wrote:

> I've always used the PAGE_SIZE define.  However it seems that in
> more recent Linux implementations this define has been eliminated.
>
> What is the proper way to find the Linux page size?  A quick Google
> came up with the function getpagesize(), however this is labelled as
> legacy.

$ man sysconf

rday
--

========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA

            Linux Consulting, Training and Kernel Pedantry.

Web page:                                          http://crashcourse.ca
Twitter:                                       http://twitter.com/rpjday
========================================================================
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list