.\" -*- 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 gettyent 3 "20 ​​Julio 2023" "Páginas de manual de Linux 6.05.01" .SH NOMBRE getttyent, getttynam, setttyent, endttyent \- obtiene una entrada del fichero de terminales .SH BIBLIOTECA Biblioteca Estándar C (\fIlibc\fP, \fI\-lc\fP) .SH SINOPSIS .nf \fB#include \fP .PP \fBstruct ttyent *getttyent(void);\fP \fBstruct ttyent *getttynam(const char *\fP\fInombre\fP\fB);\fP .PP \fBint setttyent(void);\fP \fBint endttyent(void);\fP .fi .SH DESCRIPCIÓN Estas funciones proporcionan una interfaz con el fichero \fB_PATH_TTYS\fP (p.e., \fI/etc/ttys\fP). .PP La función \fBsetttyent\fP() abre el fichero o lo rebobina si ya está abierto. .PP La función \fBendttyent\fP() cierra el fichero. .PP The function \fBgetttynam\fP() searches for a given terminal name in the file. It returns a pointer to a \fIttyent\fP structure (description below). .PP The function \fBgetttyent\fP() opens the file \fB_PATH_TTYS\fP (if necessary) and returns the first entry. If the file is already open, the next entry. The \fIttyent\fP structure has the form: .PP .in +4n .EX struct ttyent { char *ty_name; /* nombre del dispositivo de terminal */ char *ty_getty; /* orden a ejecutar, normalmente getty */ char *ty_type; /* tipo de terminal para termcap */ int ty_status; /* flags de estado */ char *ty_window; /* orden para incializar el gestor de ventanas */ char *ty_comment; /* campo para comentarios */ }; .EE .in .PP \fIty_status\fP puede ser: .PP .in +4n .EX #define TTY_ON 0x01 /* permite ingresos (arranca el programa ty_getty) */ #define TTY_SECURE 0x02 /* permite que el UID 0 ingrese */ .EE .in .SH ATRIBUTOS Para obtener una explicación de los términos usados en esta sección, véase \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Interfaz Atributo Valor T{ .na .nh \fBgetttyent\fP(), \fBsetttyent\fP(), \fBendttyent\fP(), \fBgetttynam\fP() T} Seguridad del hilo MT\-Unsafe race:ttyent .TE .sp 1 .SH ESTÁNDARES BSD. .SH NOTAS Bajo Linux el fichero \fI/etc/ttys\fP, y las funciones descritas arriba no se utilizan. .SH "VÉASE TAMBIÉN" \fBttyname\fP(3), \fBttyslot\fP(3) .PP .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Gerardo Aburruzaga García y Marcos Fouces . .PP Esta traducción es documentación libre; lea la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 .UE o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. .PP Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a .MT debian-l10n-spanish@lists.debian.org .ME .