getttyent | Début | Suivant | Sommaire | Préc.page.lue | Accueil |
NOM | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
SYNOPSIS | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
struct ttyent *getttyent(void);
struct ttyent *getttynam(const char *nom);
int setttyent(void);
DESCRIPTION | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
La fonction setttyent() ouvre le fichier, ou reprend la lecture au début s'il était déjà ouvert.
La fonction endttyent() ferme le fichier.
La fonction getttynam() recherche un nom de terminal dans le fichier. Elle renvoie un pointeur sur une structure ttyent (voir ci-dessous).
La fonction getttyent() ouvre le fichier _PATH_TTYS (si besoin) et renvoie la première entrée. Si le fichier est déjà ouvert, elle renvoie l'entrée suivante. La structure ttyent a la forme suivante :
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 */ };Le champ ty_status peut valoir
#define TTY_ON 0x01 /* autoriser les logins (avec ty_getty) */ #define TTY_SECURE 0x02 /* autoriser login de l'UID zéro */
CONFORMITÉ | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
NOTES | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
VOIR AUSSI | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
TRADUCTION | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
Ce document est une traduction réalisée par Christophe Blaess <http://www.blaess.fr/christophe/> le 21 juillet 2003 et révisée le 14 janvier 2008.
L'équipe de traduction a fait le maximum pour réaliser une adaptation française de qualité. La version anglaise la plus à jour de ce document est toujours consultable via la commande : « LANG=C man 3 getttyent ». N'hésitez pas à signaler à l'auteur ou au traducteur, selon le cas, toute erreur dans cette page de manuel.
Sommaire | Début | Suivant | Sommaire | Préc.page.lue | Accueil |