.\" -*- coding: UTF-8 -*- .\" Copyright (C) 2002 Andries Brouwer (aeb@cwi.nl) .\" .\" %%%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 .\" .\" Inspired by a page written by Walter Harms. .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH GETFSENT 3 "15 septembre 2017" GNU "Manuel du programmeur Linux" .SH NOM getfsent, getfsspec, getfsfile, setfsent, endfsent \- Gérer la table des systèmes de fichiers .SH SYNOPSIS \fB#include \fP .PP \fBvoid endfsent(void);\fP .PP \fBstruct fstab *getfsent(void);\fP .PP \fBstruct fstab *getfsfile(const char *\fP\fImount_point\fP\fB);\fP .PP \fBstruct fstab *getfsspec(const char *\fP\fIspecial_file\fP\fB);\fP .PP \fBint setfsent(void);\fP .SH DESCRIPTION Ces fonctions lisent depuis le fichier \fI/etc/fstab\fP. La structure \fIfstab\fP est définie ainsi\ : .PP .in +4n .EX struct fstab { char *fs_spec; /* nom du périphérique bloc */ char *fs_file; /* point de montage */ char *fs_vfstype; /* type système de fichiers */ char *fs_mntops; /* options de montage */ const char *fs_type; /* option rw/rq/ro/sw/xx */ int fs_freq; /* période sauvegarde en jours */ int fs_passno; /* numéro de passage parallèle */ }; .EE .in .PP Ici, le champ \fIfs_type\fP contient (sur un système type BSD) l'une des cinq chaînes «\ rw\ », «\ rq\ », «\ ro\ », «\ sw\ », «\ xx\ » (read\-write, read\-write et quota, read\-only, swap, ignore). .PP La fonction \fBsetfsent\fP() ouvre le fichier au besoin et se positionne sur la première ligne. .PP La fonction \fBgetfsent\fP() examine la ligne suivante du fichier (après ouverture si besoin). .PP La fonction \fBendfsent\fP() ferme le fichier si nécessaire. .PP La fonction \fBgetfsspec\fP() recherche dans le fichier la première entrée pour laquelle le champ \fIfs_spec\fP correspond à l'argument \fIspecial_file\fP. .PP La fonction \fBgetfsfile\fP() recherche dans le fichier la première entrée pour laquelle le champ \fIfs_file\fP correspond à l'argument \fImount_point\fP. .SH "VALEUR RENVOYÉE" .\" .SH HISTORY .\" The .\" .BR getfsent () .\" function appeared in 4.0BSD; the other four functions appeared in 4.3BSD. Si elles réussissent, les fonctions \fBgetfsent\fP(), \fBgetfsfile\fP() et \fBgetfsspec\fP() renvoient un pointeur sur une structure \fIfstab\fP, et \fBsetfsent\fP() renvoie 1. En cas d'échec ou de fin de fichier, ces fonctions renvoient NULL et 0, respectivement. .SH ATTRIBUTS Pour une explication des termes utilisés dans cette section, consulter \fBattributes\fP(7). .TS allbox; lb lb lbw24 l l l. Interface Attribut Valeur T{ \fBendfsent\fP(), .br \fBsetfsent\fP() T} Sécurité des threads MT\-Unsafe race:fsent T{ \fBgetfsent\fP(), .br \fBgetfsspec\fP(), .br \fBgetfsfile\fP() T} Sécurité des threads MT\-Unsafe race:fsent locale .TE .SH CONFORMITÉ These functions are not in POSIX.1. Several operating systems have them, for example, *BSD, SunOS, Digital UNIX, AIX (which also has a \fBgetfstype\fP()). HP\-UX has functions of the same names, that however use a \fIstruct checklist\fP instead of a \fIstruct fstab\fP, and calls these functions obsolete, superseded by \fBgetmntent\fP(3). .SH NOTES Ces routines ne sont pas sûres dans un contexte multithread. .PP Comme Linux autorise le montage d'un périphérique bloc en plusieurs endroits, comme plusieurs périphériques peuvent avoir le même point de montage (le dernier est celui qui compte), et comme \fBgetfsfile\fP() et \fBgetfsspec\fP() ne renvoient que les premières occurrences, ces deux fonctions ne sont pas très utilisables sous Linux. .SH "VOIR AUSSI" \fBgetmntent\fP(3), \fBfstab\fP(5) .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/. .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 et David Prévot . 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 .