Query: getpagesizes
OS: freebsd
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
GETPAGESIZES(3) BSD Library Functions Manual GETPAGESIZES(3)NAMEgetpagesizes -- get system page sizesLIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <sys/mman.h> int getpagesizes(size_t pagesize[], int nelem);DESCRIPTIONThe getpagesizes() function retrieves page size information from the system. When it is called with pagesize specified as NULL and nelem specified as 0, it returns the number of distinct page sizes that are supported by the system. Otherwise, it assigns up to nelem of the sys- tem-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.RETURN VALUESIf successful, the getpagesizes() function returns either the number of page sizes that are supported by the system or the number of sup- ported page sizes that it assigned to the array referenced by pagesize. Otherwise, it returns the value -1 and sets errno to indicate the error.ERRORSThe 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.SEE ALSOgetpagesize(3)HISTORYThe getpagesizes() function first appeared in Solaris 9. This manual page was written in conjunction with a new but compatible implementa- tion that was first released in FreeBSD 7.3.AUTHORSThis manual page was written by Alan L. Cox <alc@cs.rice.edu>.BSDSeptember 21, 2009 BSD
Related Man Pages |
---|
getpagesizes(3c) - debian |
getpagesizes(3c) - opendarwin |
getpagesizes(3c) - posix |
getpagesizes(3c) - mojave |
getpagesizes(3c) - plan9 |
Similar Topics in the Unix Linux Community |
---|
Unix File Permissions |
Mac OS X: Based on UNIX - Solid As a Rock |
The Whole Story on #! /usr/bin/ksh |
Controlling user input |