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

bob 295 icanprogram-sKcZck+fQKg at public.gmane.org
Wed Jan 6 13:36:54 UTC 2010


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.

Thanks in advance for your help.

bob
--
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