xref: /csrg-svn/lib/libc/gen/getpagesize.3 (revision 61111)
1*61111Sbostic.\" Copyright (c) 1983, 1991, 1993
2*61111Sbostic.\"	The Regents of the University of California.  All rights reserved.
320231Smckusick.\"
443568Strent.\" %sccs.include.redist.man%
520231Smckusick.\"
6*61111Sbostic.\"     @(#)getpagesize.3	8.1 (Berkeley) 06/04/93
738053Sbostic.\"
847208Scael.Dd
958949Smckusick.Dt GETPAGESIZE 3
1047208Scael.Os BSD 4.2
1147208Scael.Sh NAME
1247208Scael.Nm getpagesize
1347208Scael.Nd get system page size
1447208Scael.Sh SYNOPSIS
1547208Scael.Fd #include <unistd.h>
1647208Scael.Ft int
1747208Scael.Fn getpagesize void
1847208Scael.Sh DESCRIPTION
1947208Scael.Fn Getpagesize
2020231Smckusickreturns the number of bytes in a page.
2120231SmckusickPage granularity is the granularity of many of the memory
2220231Smckusickmanagement calls.
2347208Scael.Pp
2420231SmckusickThe page size is a
2547208Scael.Xr system
2620231Smckusickpage size and may not be the same as the underlying
2720231Smckusickhardware page size.
2847208Scael.Sh SEE ALSO
2947208Scael.Xr sbrk 2 ,
3047208Scael.Xr pagesize 1
3147208Scael.Sh HISTORY
3247208ScaelThe
3347208Scael.Nm
3447208Scaelfunction call appeared in
3547208Scael.Bx 4.2 .
36