Back to index

glibc  2.9
Classes | Defines | Functions
ttyent.h File Reference
#include <features.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ttyent

Defines

#define _PATH_TTYS   "/etc/ttys"
#define _TTYS_OFF   "off"
#define _TTYS_ON   "on"
#define _TTYS_SECURE   "secure"
#define _TTYS_WINDOW   "window"
#define TTY_ON   0x01 /* enable logins (start ty_getty program) */
#define TTY_SECURE   0x02 /* allow uid of 0 to login */

Functions

__BEGIN_DECLS struct ttyentgetttyent (void) __THROW
struct ttyentgetttynam (__const char *__tty) __THROW
int setttyent (void) __THROW
int endttyent (void) __THROW

Class Documentation

struct ttyent

Definition at line 44 of file ttyent.h.

Class Members
char * ty_comment
char * ty_getty
char * ty_name
int ty_status
char * ty_type
char * ty_window

Define Documentation

#define _PATH_TTYS   "/etc/ttys"

Definition at line 37 of file ttyent.h.

#define _TTYS_OFF   "off"

Definition at line 39 of file ttyent.h.

#define _TTYS_ON   "on"

Definition at line 40 of file ttyent.h.

#define _TTYS_SECURE   "secure"

Definition at line 41 of file ttyent.h.

#define _TTYS_WINDOW   "window"

Definition at line 42 of file ttyent.h.

#define TTY_ON   0x01 /* enable logins (start ty_getty program) */

Definition at line 48 of file ttyent.h.

#define TTY_SECURE   0x02 /* allow uid of 0 to login */

Definition at line 49 of file ttyent.h.


Function Documentation

int endttyent ( void  )

Here is the caller graph for this function:

__BEGIN_DECLS struct ttyent* getttyent ( void  ) [read]

Here is the caller graph for this function:

struct ttyent* getttynam ( __const char *  __tty) [read]
int setttyent ( void  )

Definition at line 189 of file getttyent.c.

{

       if (tf) {
              (void)rewind(tf);
              return (1);
       } else if ((tf = fopen(_PATH_TTYS, "rc"))) {
              /* We do the locking ourselves.  */
              __fsetlocking (tf, FSETLOCKING_BYCALLER);
              return (1);
       }
       return (0);
}

Here is the call graph for this function:

Here is the caller graph for this function: