mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
getpagesize(3): add .Xr to sysconf(3)
POSIX deprecated getpagesize(3). The portable way to obtain the page size is `sysconf(_SC_PAGESIZE)`. Reviewed by: cperciva (earlier), imp Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D35352
This commit is contained in:
parent
5acb4c862b
commit
49c937e704
1 changed files with 10 additions and 2 deletions
|
|
@ -28,7 +28,7 @@
|
|||
.\" @(#)getpagesize.3 8.1 (Berkeley) 6/4/93
|
||||
.\" $FreeBSD$
|
||||
.\"
|
||||
.Dd April 26, 2017
|
||||
.Dd June 1, 2022
|
||||
.Dt GETPAGESIZE 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
|
@ -51,9 +51,17 @@ management calls.
|
|||
The page size is a system
|
||||
page size and may not be the same as the underlying
|
||||
hardware page size.
|
||||
.Pp
|
||||
.St -p1003.1-2001
|
||||
removed
|
||||
.Nm .
|
||||
Portable applications should use
|
||||
.Ql sysconf(_SC_PAGESIZE)
|
||||
instead.
|
||||
.Sh SEE ALSO
|
||||
.Xr pagesize 1 ,
|
||||
.Xr sbrk 2
|
||||
.Xr sbrk 2 ,
|
||||
.Xr sysconf 3
|
||||
.Sh HISTORY
|
||||
The
|
||||
.Fn getpagesize
|
||||
|
|
|
|||
Loading…
Reference in a new issue