33 lines
841 B
Groff
33 lines
841 B
Groff
'\"macro stdmacro
|
|
.\" Copyright (c) 1983 Regents of the University of California.
|
|
.\" All rights reserved. The Berkeley software License Agreement
|
|
.\" specifies the terms and conditions for redistribution.
|
|
.\"
|
|
.\" @(#)getpagesize.2 6.1 (Berkeley) 5/15/85
|
|
.\"
|
|
.TH GETPAGESIZE 2
|
|
.UC 5
|
|
.SH NAME
|
|
getpagesize \- get system page size
|
|
.SH SYNOPSIS
|
|
.B "#include <unistd.h>"
|
|
.sp
|
|
.B "int getpagesize (void);"
|
|
.SH DESCRIPTION
|
|
.I Getpagesize
|
|
returns the number of bytes in a page.
|
|
Page granularity is the granularity of many of the memory
|
|
management calls.
|
|
.PP
|
|
The page size is a
|
|
.I system
|
|
page size and may not be the same as the underlying
|
|
hardware page size.
|
|
.PP
|
|
In systems with multiple page sizes, the base page size
|
|
is returned. The base page size is the smallest page size
|
|
used by a system.
|
|
.SH SEE ALSO
|
|
sbrk(2)
|
|
'\".so /pubs/tools/origin.bsd
|