From 54065f6b44b492b1dce51b1d989fe738c6359a2a Mon Sep 17 00:00:00 2001 From: David Nugent Date: Sun, 13 Apr 1997 15:09:46 +0000 Subject: [PATCH] Add bitflags TTY_NETWORK/TTY_DIALUP and interface functions which make use of them. --- include/ttyent.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/ttyent.h b/include/ttyent.h index e0f00f63936a..97dca3f89078 100644 --- a/include/ttyent.h +++ b/include/ttyent.h @@ -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_ */