.\" -*- coding: UTF-8 -*- .\" Copyright 2004 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 LSEEK64 3 "15 septembre 2017" Linux "Manuel du programmeur Linux" .SH NOM lseek64 \- Positionner la tête de lecture/écriture dans un fichier (version 64\ bits) .SH SYNOPSIS \fB#define _LARGEFILE64_SOURCE\fP /* Consultez feature_test_macros(7) */ .br \fB#include \fP .br \fB#include \fP .PP \fBoff64_t lseek64(int \fP\fIfd\fP\fB, off64_t \fP\fIoffset\fP\fB, int \fP\fIwhence\fP\fB);\fP .SH DESCRIPTION Les fonctions de la famille \fBlseek\fP(2) repositionnent la tête de lecture d'un fichier ouvert associé au descripteur de fichier \fIfd\fP à \fIoffset\fP octets relativement au début du fichier, à la position actuelle et à la fin du fichier lorsque \fIwhence\fP a respectivement la valeur \fBSEEK_SET\fP, \fBSEEK_CUR\fP ou \fBSEEK_END\fP. .PP Pour plus de détails sur les valeurs renvoyées et les erreurs, consultez \fBlseek\fP(2). .PP Four interfaces are available: \fBlseek\fP(2), \fBlseek64\fP(), \fBllseek\fP(2), and \fB_llseek\fP(2). .SS lseek() Prototype\ : .PP .in +4n .EX \fBoff_t lseek(int \fP\fIfd\fP\fB, off_t \fP\fIoffset\fP\fB, int \fP\fIwhence\fP\fB);\fP .EE .in .PP \fBlseek\fP(2) utilise le type \fIoff_t\fP. C'est un type signé sur 32\ bits pour les architectures 32\ bits, à moins que l'on compile avec .PP .in +4n .EX #define _FILE_OFFSET_BITS 64 .EE .in .PP auquel cas c'est un type 64\ bits signé. .SS lseek64() Prototype\ : .PP .in +4n .EX \fBoff64_t lseek64(int \fP\fIfd\fP\fB, off64_t \fP\fIoffset\fP\fB, int \fP\fIwhence\fP\fB);\fP .EE .in .PP La routine de bibliothèque \fBlseek64\fP() utilise un type sur 64\ bits même si \fIoff_t\fP est un type 32\ bits. Son prototype (et le type \fIoff64_t\fP) n'est disponible que lorsqu'on compile avec .PP .in +4n .EX #define _LARGEFILE64_SOURCE .EE .in .PP .\" in glibc 2.0.94, not in 2.0.6 La fonction \fBlseek64\fP() est disponible depuis la glibc\ 2.1, et elle est définie comme un alias de \fBllseek\fP(). .SS llseek() Prototype\ : .PP .in +4n .EX \fBloff_t llseek(int \fP\fIfd\fP\fB, loff_t \fP\fIoffset\fP\fB, int \fP\fIwhence\fP\fB);\fP .EE .in .PP .\" in libc 5.0.9, not in 4.7.6 The type \fIloff_t\fP is a 64\-bit signed type. The library routine \fBllseek\fP() is available in glibc and works without special defines. However, the glibc headers do not provide a prototype. Users should add the above prototype, or something equivalent, to their own source. When users complained about data loss caused by a miscompilation of \fBe2fsck\fP(8), glibc 2.1.3 added the link\-time warning .PP .in +4n "la fonction «\ llseek\ » peut être dangereuse\ ; utilisez «\ lseek64\ » à la place." .in .PP Cela fait que cette fonction est inutilisable si l'on souhaite une compilation vierge de tout avertissement. .SS _llseek() On 32\-bit architectures, this is the system call that is used to implement all of the above functions. The prototype is: .PP .in +4n .EX \fBint _llseek(int \fP\fIfd\fP\fB, off_t \fP\fIoffset_hi\fP\fB, off_t \fP\fIoffset_lo\fP\fB,\fP \fB loff_t *\fP\fIresult\fP\fB, int \fP\fIwhence\fP\fB);\fP .EE .in .PP Pour plus de détails, consultez \fBllseek\fP(2). .PP 64\-bit systems don't need an \fB_llseek\fP() system call. Instead, they have an \fBlseek\fP(2) system call that supports 64\-bit file offsets. .SH ATTRIBUTS Pour une explication des termes utilisés dans cette section, consulter \fBattributes\fP(7). .TS allbox; lb lb lb l l l. Interface Attribut Valeur T{ \fBlseek64\fP() T} Sécurité des threads MT\-Safe .TE .SH "VOIR AUSSI" \fBllseek\fP(2), \fBlseek\fP(2) .SH COLOPHON Cette page fait partie de la publication\ 5.04 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/. .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 Frédéric Hantrais . 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. 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 .