manpages.info - online man pages   

Mac OS X / Darwin man pages : getpagesize (3)
getpagesize (3)

Table of Contents

Name

getpagesize - get system page size

Library

Standard C Library (libc, -lc)

Synopsis

#include <unistd.h>

int
getpagesize(void);

Description

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 may not be the same as the underlying hardware page size.

See Also

pagesize(1) , sbrk(2)

History

The getpagesize() function appeared in 4.2BSD.


Table of Contents