|Linux / Unix Command: getpagesize|
NAMEgetpagesize - get memory page size
DESCRIPTIONThe function getpagesize() returns the number of bytes in a page, where a "page" is the thing used where it says in the description of mmap(2) that files are mapped in page-sized units.
The size of the kind of pages that mmap uses, is found using
#include <unistd.h> long sz = sysconf(_SC_PAGESIZE);
(where some systems also allow the synonym _SC_PAGE_SIZE for _SC_PAGESIZE), or
#include <unistd.h> int sz = getpagesize();
SEE ALSOmmap(2), sysconf(3)
Important: Use the man command (% man) to see how a command is used on your particular computer.