diff options
Diffstat (limited to 'termios/sys')
-rw-r--r-- | termios/sys/ttydefaults.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/termios/sys/ttydefaults.h b/termios/sys/ttydefaults.h index 1a8aaa5..a615b3d 100644 --- a/termios/sys/ttydefaults.h +++ b/termios/sys/ttydefaults.h @@ -48,7 +48,11 @@ * Defaults on "first" open. */ #define TTYDEF_IFLAG (BRKINT | ISTRIP | ICRNL | IMAXBEL | IXON | IXANY) +#ifdef OXTABS #define TTYDEF_OFLAG (OPOST | ONLCR | OXTABS) +#else +#define TTYDEF_OFLAG (OPOST | ONLCR | XTABS) +#endif #define TTYDEF_LFLAG (ECHO | ICANON | ISIG | IEXTEN | ECHOE|ECHOKE|ECHOCTL) #define TTYDEF_CFLAG (CREAD | CS7 | PARENB | HUPCL) #define TTYDEF_SPEED (B9600) @@ -58,10 +62,18 @@ */ #define CTRL(x) (x&037) #define CEOF CTRL('d') +#ifdef _POSIX_VDISABLE +#define CEOL _POSIX_VDISABLE +#else #define CEOL ((unsigned char)'\377') /* XXX avoid _POSIX_VDISABLE */ +#endif #define CERASE 0177 #define CINTR CTRL('c') +#ifdef _POSIX_VDISABLE +#define CSTATUS _POSIX_VDISABLE +#else #define CSTATUS ((unsigned char)'\377') /* XXX avoid _POSIX_VDISABLE */ +#endif #define CKILL CTRL('u') #define CMIN 1 #define CQUIT 034 /* FS, ^\ */ @@ -88,7 +100,7 @@ */ #ifdef TTYDEFCHARS cc_t ttydefchars[NCCS] = { - CEOF, CEOL, CEOL, CERASE, CWERASE, CKILL, CREPRINT, + CEOF, CEOL, CEOL, CERASE, CWERASE, CKILL, CREPRINT, _POSIX_VDISABLE, CINTR, CQUIT, CSUSP, CDSUSP, CSTART, CSTOP, CLNEXT, CDISCARD, CMIN, CTIME, CSTATUS, _POSIX_VDISABLE }; |