NAME
getpagesize — get
the current page size (LEGACY)
SYNOPSIS
#include <unistd.h> int getpagesize(void);
DESCRIPTION
The getpagesize() function returns the current page size.
The getpagesize() function is equivalent to sysconf (_SC_PAGE_SIZE) and sysconf (_SC_PAGESIZE).
This interface need not be reentrant.
RETURN VALUE
The getpagesize() function returns the current page size.
ERRORS
No errors are defined.
EXAMPLES
None.
APPLICATION USAGE
The value returned by getpagesize() need not be the minimum value that malloc(3) can allocate. Moreover, the application cannot assume that an object of this size can be allocated with malloc(3) .
This interface, returning an int, may have problems representing appropriate values in the future. Applications should use the sysconf() function instead.
FUTURE DIRECTIONS
None.
SEE ALSO
getrlimit(3) , mmap(3) , mprotect(3) , munmap(3) , msync(3) , sysconf(3) , <unistd.h> .