diff options
Diffstat (limited to 'src/utils/include/ttyutils.h')
-rw-r--r-- | src/utils/include/ttyutils.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/utils/include/ttyutils.h b/src/utils/include/ttyutils.h index f164a58..e28a2b0 100644 --- a/src/utils/include/ttyutils.h +++ b/src/utils/include/ttyutils.h @@ -17,6 +17,13 @@ #include <sys/ttydefaults.h> #endif +#ifdef USE_TTY_GROUP +# define TTY_MODE 0620 +#else +# define TTY_MODE 0600 +#endif +#define TTYGRPNAME "tty" /* name of group to own ttys */ + /* Some shorthands for control characters. */ #define CTL(x) ((x) ^ 0100) /* Assumes ASCII dialect */ #define CR CTL('M') /* carriage return */ @@ -73,7 +80,7 @@ struct chardata { #define INIT_CHARDATA(ptr) do { \ (ptr)->erase = DEF_ERASE; \ (ptr)->kill = DEF_KILL; \ - (ptr)->eol = CTRL('r'); \ + (ptr)->eol = CR; \ (ptr)->parity = 0; \ (ptr)->capslock = 0; \ } while (0) |