Commit | Line | Data |
---|---|---|
38ff2b5a KM |
1 | .\" Copyright (c) 1983 Regents of the University of California. |
2 | .\" All rights reserved. The Berkeley software License Agreement | |
3 | .\" specifies the terms and conditions for redistribution. | |
4 | .\" | |
c9af5276 | 5 | .\" @(#)getpagesize.3 6.1 (Berkeley) %G% |
38ff2b5a | 6 | .\" |
c9af5276 | 7 | .TH GETPAGESIZE 2 "" |
38ff2b5a KM |
8 | .UC 5 |
9 | .SH NAME | |
10 | getpagesize \- get system page size | |
11 | .SH SYNOPSIS | |
12 | .nf | |
13 | .ft B | |
14 | pagesize = getpagesize() | |
15 | int pagesize; | |
16 | .ft R | |
17 | .fi | |
18 | .SH DESCRIPTION | |
19 | .I Getpagesize | |
20 | returns the number of bytes in a page. | |
21 | Page granularity is the granularity of many of the memory | |
22 | management calls. | |
23 | .PP | |
24 | The page size is a | |
25 | .I system | |
26 | page size and may not be the same as the underlying | |
27 | hardware page size. | |
28 | .SH SEE ALSO | |
29 | sbrk(2), pagesize(1) |