The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group

 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() can allocate. Moreover, the application cannot assume that an object of this size can be allocated with malloc().

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(), mmap(), mprotect(), munmap(), msync(), sysconf(), <unistd.h>.

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]