HP-UX Reference (11i v1 00/12) - 2 System Calls (vol 5)

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man2/!!!intro.2
________________________________________________________________
___ ___
g
getpagesize(2) getpagesize(2)
NAME
getpagesize - get the current page size
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).
RETURN VALUE
The getpagesize() function returns the current page size.
ERRORS
No errors are defined.
APPLICATION USAGE
The value returned by
getpagesize() need not be the minimum value that
malloc() can allocate.
Moreover, the application cannot assume that an object of this size can be allocated with
malloc().
SEE ALSO
brk(2), getrlimit(2), mmap(2), mprotect(2), munmap(2), msync(2), sysconf(2), <unistd.h>.
CHANGE HISTORY
First released in Issue 4, Version 2.
HP-UX Release 11i: December 2000 1 Section 297
___
___