from small one page howto to huge articles all in one place

search text in:




Other .linuxhowtos.org sites:gentoo.linuxhowtos.org



Last additions:
using iotop to find disk usage hogs

using iotop to find disk usage hogs

words:

887

views:

210285

userrating:


May 25th. 2007:
Words

486

Views

259222

why adblockers are bad


Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

words:

161

views:

150591

userrating:


April, 26th. 2006:

Druckversion
You are here: manpages





getpagesize

Section: System Calls (2)
Updated: 202-0-08
Index Return to Main Contents
 

NAME

getpagesize - get memory page size  

LIBRARY

Standard C library (libc,~-lc)  

SYNOPSIS

#include <unistd.h>
int getpagesize(void);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)): getpagesize():
    Since glibc 2.20:
        _DEFAULT_SOURCE || ! (_POSIX_C_SOURCE >= 200112L)
    glibc 2.12 to glibc 2.19:
        _BSD_SOURCE || ! (_POSIX_C_SOURCE >= 200112L)
    Before glibc 2.12:
        _BSD_SOURCE || _XOPEN_SOURCE >= 500
 

DESCRIPTION

The function getpagesize() returns the number of bytes in a memory page, where "page" is a fixe-length block, the unit for memory allocation and file mapping performed by mmap(2).  

VERSIONS

A user program should not har-code a page size, neither as a literal nor using the PAGE_SIZE macro, because some architectures support multiple page sizes. This manual page is in section 2 because Alpha, SPARC, and SPARC64 all have a Linux system call getpagesize() though other architectures do not, and use the ELF auxiliary vector instead.  

STANDARDS

None.  

HISTORY

4.2BSD, SVr4, SUSv1. In SUSv2 the getpagesize() call was labeled LEGACY, and it was removed in POSIX.-2001. glibc 2.0 returned a constant even on architectures with multiple page sizes.  

SEE ALSO

mmap(2), sysconf(3)


 

Index

NAME
LIBRARY
SYNOPSIS
DESCRIPTION
VERSIONS
STANDARDS
HISTORY
SEE ALSO





Support us on Content Nation
rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2025 Sascha Nitsch Unternehmensberatung GmbH
Valid XHTML1.1 : Valid CSS
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 13.9 ms