The getpagesize() function returns the number of bytes in a page. Page granularity is the granularity of many of the memory management calls.
The page size is a system page size and need not be the same as the underlying hardware page size.
The getpagesize() function is equivalent to sysconf(_SC_PAGE_SIZE) and sysconf(_SC_PAGESIZE). See sysconf(3C).