ffix/wfix

This commit is contained in:
Michael Kerrisk 2007-07-09 19:48:06 +00:00
parent c781c53cbc
commit 5f90f49246
1 changed files with 16 additions and 10 deletions

View File

@ -41,24 +41,30 @@ opens the file
.B _PATH_TTYS
(if necessary) and returns the first entry.
If the file is already open, the next entry.
.SS "The ttyent structure"
The
.I ttyent
structure has the form:
.in +0.5i
.nf
struct ttyent {
char *ty_name; /* terminal device name */
char *ty_getty; /* command to execute, usually getty */
char *ty_type; /* terminal type for termcap */
int ty_status; /* status flags */
char *ty_window; /* command to start up window manager */
char *ty_comment; /* comment field */
char *ty_name; /* terminal device name */
char *ty_getty; /* command to execute, usually getty */
char *ty_type; /* terminal type for termcap */
int ty_status; /* status flags */
char *ty_window; /* command to start up window manager */
char *ty_comment; /* comment field */
};
.fi
.in
.I ty_status
can be
can be:
.br
.nf
#define TTY_ON 0x01 /* enable logins (start ty_getty program) */
#define TTY_SECURE 0x02 /* allow UID 0 to login */
#define TTY_ON 0x01 /* enable logins (start ty_getty program) */
#define TTY_SECURE 0x02 /* allow UID 0 to login */
.fi
.SH "CONFORMING TO"
Not in POSIX.1-2001.