gettyent(3) Library Functions Manual gettyent(3) NOMBRE getttyent, getttynam, setttyent, endttyent - obtiene una entrada del fichero de terminales BIBLIOTECA Biblioteca Estandar C (libc, -lc) SINOPSIS #include struct ttyent *getttyent(void); struct ttyent *getttynam(const char *nombre); int setttyent(void); int endttyent(void); DESCRIPCION Estas funciones proporcionan una interfaz con el fichero _PATH_TTYS (p.e., /etc/ttys). La funcion setttyent() abre el fichero o lo rebobina si ya esta abierto. La funcion 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 explicacion de los terminos usados en esta seccion, vease attributes(7). +-------------------------+--------------------+-----------------------+ |Interfaz | Atributo | Valor | +-------------------------+--------------------+-----------------------+ |getttyent(), | Seguridad del hilo | MT-Unsafe race:ttyent | |setttyent(), | | | |endttyent(), getttynam() | | | +-------------------------+--------------------+-----------------------+ ESTANDARES BSD. NOTAS Bajo Linux el fichero /etc/ttys, y las funciones descritas arriba no se utilizan. VEASE TAMBIEN ttyname(3), ttyslot(3) TRADUCCION La traduccion al espanol de esta pagina del manual fue creada por Gerardo Aburruzaga Garcia y Marcos Fouces Esta traduccion es documentacion libre; lea la GNU General Public License Version 3 o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. Si encuentra algun error en la traduccion de esta pagina del manual, envie un correo electronico a . Paginas de manual de Linux 6.06 31 Octubre 2023 gettyent(3)