diff options
author | Roland McGrath <roland@gnu.org> | 1999-07-24 00:12:07 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1999-07-24 00:12:07 +0000 |
commit | 5f0b70fecfd990442256a0f472ebf94e92f52cc7 (patch) | |
tree | de6b9c6f969a102142187c247ac3f3c3e1f5e1bb | |
parent | 49e49bf08bd5c0eff7d6ab8f2ec10b77c43a3dff (diff) | |
download | glibc-5f0b70fecfd990442256a0f472ebf94e92f52cc7.tar.gz glibc-5f0b70fecfd990442256a0f472ebf94e92f52cc7.tar.xz glibc-5f0b70fecfd990442256a0f472ebf94e92f52cc7.zip |
1999-07-23 Roland McGrath <roland@baalperazim.frob.com>
* sysdeps/generic/bits/termios.h (ONOEOT): Change value to 1<<3, to match BSD value; previous value of 1<<8 was a typo. I bet nothing ever used this, so I'm not going to worry about compatibility. [__USE_GNU] (IUCLC, OLCUC): New macros.
-rw-r--r-- | bits/termios.h | 12 | ||||
-rw-r--r-- | sysdeps/generic/bits/termios.h | 12 |
2 files changed, 18 insertions, 6 deletions
diff --git a/bits/termios.h b/bits/termios.h index b05bc18e88..aeb40e7643 100644 --- a/bits/termios.h +++ b/bits/termios.h @@ -81,8 +81,11 @@ struct termios #define IXON (1 << 9) /* Enable start/stop output control. */ #define IXOFF (1 << 10) /* Enable start/stop input control. */ #ifdef __USE_BSD -#define IXANY (1 << 11) /* Any character will restart after stop. */ -#define IMAXBEL (1 << 13) /* Ring bell when input queue is full. */ +# define IXANY (1 << 11) /* Any character will restart after stop. */ +# define IMAXBEL (1 << 13) /* Ring bell when input queue is full. */ +#endif +#ifdef __USE_GNU +# define IUCLC (1 << 14) /* Translate upper case input to lower case. */ #endif /* Output modes. */ @@ -91,7 +94,10 @@ struct termios #ifdef __USE_BSD # define ONLCR (1 << 1) /* Map NL to CR-NL on output. */ # define OXTABS (1 << 2) /* Expand tabs to spaces. */ -# define ONOEOT (1 << 8) /* Discard EOT (^D) on output. */ +# define ONOEOT (1 << 3) /* Discard EOT (^D) on output. */ +#endif +#ifdef __USE_GNU +# define OLCUC (1 << 8) /* Translate lower case output to upper case */ #endif /* Control modes. */ diff --git a/sysdeps/generic/bits/termios.h b/sysdeps/generic/bits/termios.h index b05bc18e88..aeb40e7643 100644 --- a/sysdeps/generic/bits/termios.h +++ b/sysdeps/generic/bits/termios.h @@ -81,8 +81,11 @@ struct termios #define IXON (1 << 9) /* Enable start/stop output control. */ #define IXOFF (1 << 10) /* Enable start/stop input control. */ #ifdef __USE_BSD -#define IXANY (1 << 11) /* Any character will restart after stop. */ -#define IMAXBEL (1 << 13) /* Ring bell when input queue is full. */ +# define IXANY (1 << 11) /* Any character will restart after stop. */ +# define IMAXBEL (1 << 13) /* Ring bell when input queue is full. */ +#endif +#ifdef __USE_GNU +# define IUCLC (1 << 14) /* Translate upper case input to lower case. */ #endif /* Output modes. */ @@ -91,7 +94,10 @@ struct termios #ifdef __USE_BSD # define ONLCR (1 << 1) /* Map NL to CR-NL on output. */ # define OXTABS (1 << 2) /* Expand tabs to spaces. */ -# define ONOEOT (1 << 8) /* Discard EOT (^D) on output. */ +# define ONOEOT (1 << 3) /* Discard EOT (^D) on output. */ +#endif +#ifdef __USE_GNU +# define OLCUC (1 << 8) /* Translate lower case output to upper case */ #endif /* Control modes. */ |