> Linux Reviews > man >

getttyent

getttyent

, getttynam, setttyent, endttyent - obtiene una entrada del fichero de terminales


  1. getttyent.3.man


1. getttyent.3.man

Manpage of GETTTYENT

GETTTYENT

Section: C Library Functions (3)
Updated: 18 julio 2002
Index Return to Main Contents
 

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.

La función getttynam() busca un nombre de terminal dado en el fichero. Devuelve un puntero a una estructura ttyent (descrita abajo).

La función getttyent() abre el fichero _PATH_TTYS (si es necesario) y devuelve la primera entrada. Si el fichero ya está abierto, devuelve la siguiente entrada.

 

La estructura ttyent

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 */
 

OBSERVACIONES

Bajo Linux el fichero /etc/ttys, y las funciones descritas arriba no se utilizan.  

VÉASE TAMBIÉN

ttyname(3), ttyslot(3)


 

Index

NOMBRE
SINOPSIS
DESCRIPCIÓN
La estructura ttyent
OBSERVACIONES
VÉASE TAMBIÉN

This document was created by man2html using the manual pages.
Time: 17:36:06 GMT, May 11, 2012

SVENSKA - SVENSKA - ja