.\" -*- coding: UTF-8 -*- '\" t .\" Copyright 2002 walter harms (walter.harms@informatik.uni-oldenburg.de) .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH getttyent 3 "20 juillet 2023" "Pages du manuel de Linux 6.05.01" .SH NOM getttyent, getttynam, setttyent, endttyent \- Lire le fichier des terminaux .SH BIBLIOTHÈQUE Bibliothèque C standard (\fIlibc\fP, \fI\-lc\fP) .SH SYNOPSIS .nf \fB#include \fP .PP \fBstruct ttyent *getttyent(void);\fP \fBstruct ttyent *getttynam(const char *\fP\fInom\fP\fB);\fP .PP \fBint setttyent(void);\fP \fBint endttyent(void);\fP .fi .SH DESCRIPTION Ces fonctions fournissent une interface pour le fichier \fB_PATH_TTYS\fP (par exemple \fI/etc/ttys\fP). .PP La fonction \fBsetttyent\fP() ouvre le fichier, ou reprend la lecture au début s'il était déjà ouvert. .PP La fonction \fBendttyent\fP() ferme le fichier. .PP La fonction \fBgetttynam\fP() recherche un nom de terminal dans le fichier. Elle renvoie un pointeur sur une structure \fIttyent\fP (voir ci\-dessous). .PP La fonction \fBgetttyent\fP() ouvre le fichier \fB_PATH_TTYS\fP (si besoin) et renvoie la première entrée. Si le fichier est déjà ouvert, elle renvoie l'entrée suivante. La structure \fIttyent\fP est définie comme suit\ : .PP .in +4n .EX struct ttyent { char *ty_name; /* nom du terminal */ char *ty_getty; /* commande à exécuter (p.ex.\ : getty) */ char *ty_type; /* type termcap de terminal */ int ty_status; /* attributs d'état */ char *ty_window; /* commande gestionnaire de fenêtres */ char *ty_comment; /* commentaires */ }; .EE .in .PP Le champ \fIty_status\fP peut valoir\ : .PP .in +4n .EX #define TTY_ON 0x01 /* autoriser les logins (avec ty_getty) */ #define TTY_SECURE 0x02 /* autoriser le login de l'UID zéro */ .EE .in .SH ATTRIBUTS Pour une explication des termes utilisés dans cette section, consulter \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Interface Attribut Valeur T{ .na .nh \fBgetttyent\fP(), \fBsetttyent\fP(), \fBendttyent\fP(), \fBgetttynam\fP() T} Sécurité des threads MT\-Unsafe race:ttyent .TE .sp 1 .SH STANDARDS BSD. .SH NOTES Sous Linux, le fichier \fI/etc/ttys\fP, et les fonctions décrites ci\-dessus ne sont pas utilisés. .SH "VOIR AUSSI" \fBttyname\fP(3), \fBttyslot\fP(3) .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 et David Prévot . .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 .