.\" -*- coding: UTF-8 -*- .\" Copyright (C) 2002, Michael Kerrisk .\" .\" %%%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 .\" .\" Modified 31 Jan 2002, Michael Kerrisk .\" Added description of mmap2 .\" Modified, 2004-11-25, mtk -- removed stray #endif in prototype .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH MMAP2 2 "15 septembre 2017" Linux "Manuel du programmeur Linux" .SH NOM mmap2 \- Établir une projection en mémoire d'un fichier ou d'un périphérique .SH SYNOPSIS .nf \fB#include \fP .PP \fBvoid *mmap2(void *\fP\fIaddr\fP\fB, size_t \fP\fIlength\fP\fB, int \fP\fIprot\fP\fB,\fP \fB int \fP\fIflags\fP\fB, int \fP\fIfd\fP\fB, off_t \fP\fIpgoffset\fP\fB);\fP .fi .SH DESCRIPTION Il ne s'agit probablement pas de l'appel système qui vous intéresse\ ; consultez \fBmmap\fP(2) qui décrit la fonction de la glibc qui joue le rôle d'intermédiaire avec cet appel système. .PP L'appel système \fBmmap2\fP() fournit la même interface que \fBmmap\fP(2), sauf que l'argument final spécifie un décalage dans le fichier en unité de 4096\ octets plutôt qu'en octets. Ceci permet aux applications d'utiliser un \fIoff_t\fP sur 32\ bits pour projeter des fichiers très grands (généralement jusqu'à 2^44\ octets). .SH "VALEUR RENVOYÉE" En cas de succès, \fBmmap2\fP() renvoie un pointeur vers la zone projetée. En cas d'erreur, \-1 est renvoyé et \fIerrno\fP contient le code d'erreur. .SH ERREURS .TP \fBEFAULT\fP Problème lors de la copie des données depuis l'espace utilisateur. .TP \fBEINVAL\fP (Pour diverses architectures sur lesquelles la taille de page n'est pas de 4096 octets.) \fIoffset\ *\ 4096\fP n'est pas un multiple de la taille de page du système. .PP \fBmmap2\fP() peut aussi renvoyer n'importe quelle erreur décrite en \fBmmap\fP(2). .SH VERSIONS La fonction \fBmmap2\fP() est disponible depuis Linux 2.3.31. .SH CONFORMITÉ Cet appel système est spécifique à Linux. .SH NOTES Pour les architectures où cet appel système est présent, la fonction \fBmmap\fP() de la glibc appelle cet appel système plutôt que l'appel système \fBmmap\fP(2). .PP Cet appel système n'existe pas sur l'architecture x86\-64. .PP .\" ia64 can have page sizes ranging from 4 kB to 64 kB. .\" On cris, it looks like the unit might also be the page size, .\" which is 8192 bytes. -- mtk, June 2007 Sur ia64, l'unité pour \fIoffset\fP est en fait la taille de page du système au lieu de 4096 octets. .SH "VOIR AUSSI" \fBgetpagesize\fP(2), \fBmmap\fP(2), \fBmremap\fP(2), \fBmsync\fP(2), \fBshm_open\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-Pierre Giraud . .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 .