getpagesize

Returns the current page size.

Library:LibC
Classification:Single UNIX
Service:File and Directory I/O

Syntax

  #include <unistd.h> 
   
  int  getpagesize ( void );
  

Return Values

Returns the current page size. No errors are defined.

Remarks

The getpagesize function is equivalent to sysconf (_SC_PAGESIZE). The synconf function is the preferred function, because it allows for page size values greater than those allowed in an int.

See Also