Provided by: manpages-es-dev_4.13-4_all
NOMBRE
getttyent, getttynam, setttyent, endttyent - obtiene una entrada del fichero de terminales
SINOPSIS
#include <ttyent.h> struct ttyent *getttyent(void); struct ttyent *getttynam(const char *name); int setttyent(void); int endttyent(void);
DESCRIPCIÓN
Estas funciones proporcionan una interfaz con el fichero _PATH_TTYS (p.e., /etc/ttys). La función setttyent() abre el fichero o lo rebobina si ya está abierto. La función endttyent() cierra el fichero. The function getttynam() searches for a given terminal name in the file. It returns a pointer to a ttyent structure (description below). The function getttyent() opens the file _PATH_TTYS (if necessary) and returns the first entry. If the file is already open, the next entry. The ttyent structure has the form: 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 */ }; ty_status puede ser: #define TTY_ON 0x01 /* permite ingresos (arranca el programa ty_getty) */ #define TTY_SECURE 0x02 /* permite que el UID 0 ingrese */
ATRIBUTOS
Para obtener una explicación de los términos usados en esta sección, véase attributes(7). ┌──────────────────────────┬────────────────────┬───────────────────────┐ │Interfaz │ Atributo │ Valor │ ├──────────────────────────┼────────────────────┼───────────────────────┤ │getttyent(), setttyent(), │ Seguridad del hilo │ MT-Unsafe race:ttyent │ │endttyent(), getttynam() │ │ │ └──────────────────────────┴────────────────────┴───────────────────────┘
CONFORME A
Not in POSIX.1. Present on the BSDs, and perhaps other systems.
NOTAS
Bajo Linux el fichero /etc/ttys, y las funciones descritas arriba no se utilizan.
VÉASE TAMBIÉN
ttyname(3), ttyslot(3)
COLOFÓN
Esta página es parte de la versión 5.10 del proyecto Linux man-pages. Puede encontrar una descripción del proyecto, información sobre cómo informar errores y la última versión de esta página en https://www.kernel.org/doc/man-pages/.
TRADUCCIÓN
La traducción al español de esta página del manual fue creada por Gerardo Aburruzaga García <gerardo.aburruzaga@uca.es> Esta traducción es documentación libre; lea la GNU General Public License Version 3 ⟨https://www.gnu.org/licenses/gpl-3.0.html⟩ o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a debian-l10n-spanish@lists.debian.org ⟨⟩.