getpagesize(3)

getpagesize3

Get system page size

Usage

#include <unistd.h>

int

getpagesize(void);

Library

Standard C Library (libc, -lc)

Overview

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.

Releases

163 releases since Mac OS X 10.0; the text changed 3 times.

  1. 10.0–10.1.5
  2. 10.2–10.2.8
  3. 10.3–10.6.8
  4. 10.7–26.5

History

The getpagesize() function appeared in 4.2BSD.

From Libc 1752.120.2 in macOS 26.5. Parsed by carta from the page's mdoc source.