oracular (2) getpagesize.2.gz

Provided by: manpages-fr-dev_4.23.1-1_all bug

NOM

       getpagesize - Obtenir la taille des pages mémoire du système

BIBLIOTHÈQUE

       Bibliothèque C standard (libc, -lc)

SYNOPSIS

       #include <unistd.h>

       int getpagesize(void);

   Exigences de macros de test de fonctionnalités pour la glibc (consulter feature_test_macros(7)) :

       getpagesize() :
           Depuis la glibc 2.20 :
               _DEFAULT_SOURCE || ! (_POSIX_C_SOURCE >= 200112L)
           De la glibc 2.12 à la glibc 2.19 :
               _BSD_SOURCE || ! (_POSIX_C_SOURCE >= 200112L)
           Avant la glibc 2.12 :
               _BSD_SOURCE || _XOPEN_SOURCE >= 500

DESCRIPTION

       La  fonction  getpagesize()  renvoie le nombre d'octets dans une page. Une « page » est un bloc de taille
       fixe, et est l'unité pour l'allocation de la mémoire et la projection de fichiers réalisées par mmap(2).

VERSIONS

       A user program should not hard-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

       Aucun.

HISTORIQUE

       This call first appeared in 4.2BSD. SVr4, 4.4BSD, SUSv2. In SUSv2 the  getpagesize()   call  was  labeled
       LEGACY, and it was removed in POSIX.1-2001.

       glibc 2.0 returned a constant even on architectures with multiple page sizes.

VOIR AUSSI

       mmap(2), sysconf(3)

TRADUCTION

       La   traduction   française   de   cette   page   de   manuel   a   été   créée   par  Christophe  Blaess
       <https://www.blaess.fr/christophe/>,   Stéphan   Rafin   <stephan.rafin@laposte.net>,   Thierry   Vignaud
       <tvignaud@mandriva.com>,  François  Micaux,  Alain Portal <aportal@univ-montp2.fr>, Jean-Philippe Guérard
       <fevrier@tigreraye.org>,   Jean-Luc   Coulon   (f5ibh)   <jean-luc.coulon@wanadoo.fr>,   Julien   Cristau
       <jcristau@debian.org>,      Thomas      Huriaux      <thomas.huriaux@gmail.com>,     Nicolas     François
       <nicolas.francois@centraliens.net>,    Florentin    Duneau    <fduneau@gmail.com>,     Simon     Paillard
       <simon.paillard@resel.enst-bretagne.fr>,     Denis    Barbier    <barbier@debian.org>,    David    Prévot
       <david@tilapin.org> et Jean-Philippe MENGUAL <jpmengual@debian.org>

       Cette traduction est une documentation libre ; veuillez vous reporter à la  GNU  General  Public  License
       version 3   ⟨https://www.gnu.org/licenses/gpl-3.0.html⟩   concernant   les  conditions  de  copie  et  de
       distribution. Il n'y a aucune RESPONSABILITÉ LÉGALE.

       Si vous découvrez un bogue dans la traduction de cette page de manuel,  veuillez  envoyer  un  message  à
       ⟨debian-l10n-french@lists.debian.org⟩.