summaryrefslogtreecommitdiffstats
path: root/src/utils/include/ttyutils.h
diff options
context:
space:
mode:
authorManuel Bentele2021-12-07 10:17:15 +0100
committerManuel Bentele2021-12-07 10:17:15 +0100
commit424839be05e2f4c5d4684ab0c37e00c2881672bd (patch)
treeb6fa21c4f6f5a64782f941c4eaf4ae67c7995f89 /src/utils/include/ttyutils.h
parentFix issue in CMake kernel header check (diff)
downloadxloop-424839be05e2f4c5d4684ab0c37e00c2881672bd.tar.gz
xloop-424839be05e2f4c5d4684ab0c37e00c2881672bd.tar.xz
xloop-424839be05e2f4c5d4684ab0c37e00c2881672bd.zip
Update xlosetup from util-linux v2.37.2
Diffstat (limited to 'src/utils/include/ttyutils.h')
-rw-r--r--src/utils/include/ttyutils.h9
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)