ANSI C; sprintf now returns an int.
[unix-history] / usr / src / lib / libc / gen / getpagesize.3
.\" 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.3 6.1 (Berkeley) %G%
.\"
.TH GETPAGESIZE 2 ""
.UC 5
.SH NAME
getpagesize \- get system page size
.SH SYNOPSIS
.nf
.ft B
pagesize = getpagesize()
int pagesize;
.ft R
.fi
.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.
.SH SEE ALSO
sbrk(2), pagesize(1)