getpagesizes man page on FreeBSD

Man page or keyword search:  
man Server   9747 pages
apropos Keyword Search (all sections)
Output format
FreeBSD logo
[printable version]

GETPAGESIZES(3)		 BSD Library Functions Manual	       GETPAGESIZES(3)

     getpagesizes — get system page sizes

     Standard C Library (libc, -lc)

     #include <sys/mman.h>

     getpagesizes(size_t pagesize[], int nelem);

     The getpagesizes() function retrieves page size information from the sys‐
     tem.  When it is called with pagesize specified as NULL and nelem speci‐
     fied as 0, it returns the number of distinct page sizes that are sup‐
     ported by the system.  Otherwise, it assigns up to nelem of the system-
     supported page sizes to consecutive elements of the array referenced by
     pagesize.	These page sizes are expressed in bytes.  In this case,
     getpagesizes() returns the number of such page sizes that it assigned to
     the array.

     If successful, the getpagesizes() function returns either the number of
     page sizes that are supported by the system or the number of supported
     page sizes that it assigned to the array referenced by pagesize.  Other‐
     wise, it returns the value -1 and sets errno to indicate the error.

     The getpagesizes() function will succeed unless:

     [EINVAL]		The pagesize argument is NULL and the nelem argument
			is non-zero.

     [EINVAL]		The nelem argument is less than zero.


     The getpagesizes() function first appeared in Solaris 9.  This manual
     page was written in conjunction with a new but compatible implementation
     that was first released in FreeBSD 7.3.

     This manual page was written by Alan L. Cox ⟨⟩.

BSD			      September 21, 2009			   BSD

List of man pages available for FreeBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net