.\" -*- coding: UTF-8 -*- .\" Copyright (C) 2001 Andries Brouwer .\" .\" %%%LICENSE_START(VERBATIM) .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one. .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" %%%LICENSE_END .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH GETPAGESIZE 2 "15 septembre 2017" Linux "Manuel du programmeur Linux" .SH NOM getpagesize \- Obtenir la taille des pages mémoire du système .SH SYNOPSIS \fB#include \fP .PP \fBint getpagesize(void);\fP .PP .RS -4 Exigences de macros de test de fonctionnalités pour la glibc (consulter \fBfeature_test_macros\fP(7))\ : .RE .PP \fBgetpagesize\fP()\ : .ad l .RS 4 .PD 0 .TP 4 Depuis la glibc\ 2.19 : .nf _DEFAULT_SOURCE || ! (_POSIX_C_SOURCE\\ >=\\ 200112L) .fi .TP 4 De glibc 2.12 à 2.19\ : .nf _BSD_SOURCE || ! (_POSIX_C_SOURCE\\ >=\\ 200112L) .fi .TP 4 Avant la glibc 2.12\ : .\" || _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED _BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 .PD .RE .ad b .SH DESCRIPTION .\" .SH HISTORY .\" This call first appeared in 4.2BSD. La fonction \fBgetpagesize\fP() 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 \fBmmap\fP(2). .SH CONFORMITÉ SVr4, 4.4BSD, SUSv2. Dans SUSv2 l'appel \fBgetpagesize\fP() est indiqué comme historique, et dans POSIX.1\-2001 il a été abandonné\ ; HP\-UX n'offre pas cet appel. .SH NOTES Les applications portables doivent utiliser \fIsysconf(_SC_PAGESIZE)\fP plutôt que \fBgetpagesize\fP()\ : .PP .in +4n .EX #include long sz = sysconf(_SC_PAGESIZE); .EE .in .PP La plupart des systèmes autorisant le synonyme \fB_SC_PAGE_SIZE\fP pour \fB_SC_PAGESIZE\fP. .PP La présence de \fBgetpagesize\fP() sous la forme d'un appel sous Linux dépend de l'architecture. Si c'est le cas, elle renvoie le symbole \fBPAGE_SIZE\fP du noyau qui dépend de l'architecture et du modèle de la machine. Généralement, on utilise des exécutables binaires qui dépendent de l'architecture mais pas du modèle de machine afin d'avoir une seule distribution binaire par architecture. Ceci signifie qu'un programme utilisateur ne doit pas rechercher \fBPAGE_SIZE\fP dans un fichier d'en\(hytête lors de la compilation, mais invoquer véritablement un appel système, au moins pour les architectures où cette dépendance existe (comme sun4). La glibc 2.0 y échoue car sa \fBgetpagesize\fP() renvoie une valeur calculée statiquement, et n'invoque pas d'appel système. Tout est arrangé depuis la glibc 2.1. .SH "VOIR AUSSI" \fBmmap\fP(2), \fBsysconf\fP(3) .SH COLOPHON Cette page fait partie de la publication\ 5.10 du projet \fIman\-pages\fP Linux. Une description du projet et des instructions pour signaler des anomalies et la dernière version de cette page peuvent être trouvées à l'adresse \%https://www.kernel.org/doc/man\-pages/. .PP .SH TRADUCTION La traduction française de cette page de manuel a été créée par Christophe Blaess , Stéphan Rafin , Thierry Vignaud , François Micaux, Alain Portal , Jean-Philippe Guérard , Jean-Luc Coulon (f5ibh) , Julien Cristau , Thomas Huriaux , Nicolas François , Florentin Duneau , Simon Paillard , Denis Barbier , David Prévot et Jean-Philippe MENGUAL . .PP Cette traduction est une documentation libre ; veuillez vous reporter à la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License version 3 .UE concernant les conditions de copie et de distribution. Il n'y a aucune RESPONSABILITÉ LÉGALE. .PP Si vous découvrez un bogue dans la traduction de cette page de manuel, veuillez envoyer un message à .MT debian-l10n-french@lists.debian.org .ME .