getpagesize Subroutine

Purpose

Gets the system page size.

Library

Standard C Library (libc.a)

Syntax

#include <unistd.h>

int getpagesize( )

Description

The getpagesize subroutine returns the number of bytes in a page. Page granularity is the granularity for many of the memory management calls.

The page size is determined by the system and may not be the same as the underlying hardware page size.