diff options
author | davidn <davidn@FreeBSD.org> | 1997-04-13 15:09:46 +0000 |
---|---|---|
committer | davidn <davidn@FreeBSD.org> | 1997-04-13 15:09:46 +0000 |
commit | 3887e465a500c0e84dfd5b144efb5e28c2621377 (patch) | |
tree | 051d57ae0e7a8e67201db8b431eb72ac2b50455c /include/ttyent.h | |
parent | 81c85a10506d23c9a4b9490b9ad9ce6e13a8622e (diff) | |
download | FreeBSD-src-3887e465a500c0e84dfd5b144efb5e28c2621377.zip FreeBSD-src-3887e465a500c0e84dfd5b144efb5e28c2621377.tar.gz |
Add bitflags TTY_NETWORK/TTY_DIALUP and interface functions which
make use of them.
Diffstat (limited to 'include/ttyent.h')
-rw-r--r-- | include/ttyent.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/ttyent.h b/include/ttyent.h index e0f00f6..97dca3f 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_ */ |