Add bitflags TTY_NETWORK/TTY_DIALUP and interface functions which

make use of them.
This commit is contained in:
David Nugent 1997-04-13 15:09:46 +00:00
parent 2e14815b84
commit 54065f6b44
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=24891

View File

@ -45,6 +45,8 @@
#define _TTYS_WINDOW "window"
#define _TTYS_GROUP "group"
#define _TTYS_NOGROUP "none"
#define _TTYS_DIALUP "dialup"
#define _TTYS_NETWORK "network"
struct ttyent {
char *ty_name; /* terminal device name */
@ -52,6 +54,8 @@ struct ttyent {
char *ty_type; /* terminal type for termcap */
#define TTY_ON 0x01 /* enable logins (start ty_getty program) */
#define TTY_SECURE 0x02 /* allow uid of 0 to login */
#define TTY_DIALUP 0x04 /* is a dialup tty */
#define TTY_NETWORK 0x08 /* is a network tty */
int ty_status; /* status flags */
char *ty_window; /* command to start up window manager */
char *ty_comment; /* comment field */
@ -65,6 +69,8 @@ struct ttyent *getttyent __P((void));
struct ttyent *getttynam __P((const char *));
int setttyent __P((void));
int endttyent __P((void));
int isdialuptty __P((const char *));
int isnettty __P((const char *));
__END_DECLS
#endif /* !_TTYENT_H_ */