mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
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.
This commit is contained in:
@ -81,8 +81,11 @@ struct termios
|
|||||||
#define IXON (1 << 9) /* Enable start/stop output control. */
|
#define IXON (1 << 9) /* Enable start/stop output control. */
|
||||||
#define IXOFF (1 << 10) /* Enable start/stop input control. */
|
#define IXOFF (1 << 10) /* Enable start/stop input control. */
|
||||||
#ifdef __USE_BSD
|
#ifdef __USE_BSD
|
||||||
#define IXANY (1 << 11) /* Any character will restart after stop. */
|
# define IXANY (1 << 11) /* Any character will restart after stop. */
|
||||||
#define IMAXBEL (1 << 13) /* Ring bell when input queue is full. */
|
# 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
|
#endif
|
||||||
|
|
||||||
/* Output modes. */
|
/* Output modes. */
|
||||||
@ -91,7 +94,10 @@ struct termios
|
|||||||
#ifdef __USE_BSD
|
#ifdef __USE_BSD
|
||||||
# define ONLCR (1 << 1) /* Map NL to CR-NL on output. */
|
# define ONLCR (1 << 1) /* Map NL to CR-NL on output. */
|
||||||
# define OXTABS (1 << 2) /* Expand tabs to spaces. */
|
# 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
|
#endif
|
||||||
|
|
||||||
/* Control modes. */
|
/* Control modes. */
|
||||||
|
@ -81,8 +81,11 @@ struct termios
|
|||||||
#define IXON (1 << 9) /* Enable start/stop output control. */
|
#define IXON (1 << 9) /* Enable start/stop output control. */
|
||||||
#define IXOFF (1 << 10) /* Enable start/stop input control. */
|
#define IXOFF (1 << 10) /* Enable start/stop input control. */
|
||||||
#ifdef __USE_BSD
|
#ifdef __USE_BSD
|
||||||
#define IXANY (1 << 11) /* Any character will restart after stop. */
|
# define IXANY (1 << 11) /* Any character will restart after stop. */
|
||||||
#define IMAXBEL (1 << 13) /* Ring bell when input queue is full. */
|
# 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
|
#endif
|
||||||
|
|
||||||
/* Output modes. */
|
/* Output modes. */
|
||||||
@ -91,7 +94,10 @@ struct termios
|
|||||||
#ifdef __USE_BSD
|
#ifdef __USE_BSD
|
||||||
# define ONLCR (1 << 1) /* Map NL to CR-NL on output. */
|
# define ONLCR (1 << 1) /* Map NL to CR-NL on output. */
|
||||||
# define OXTABS (1 << 2) /* Expand tabs to spaces. */
|
# 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
|
#endif
|
||||||
|
|
||||||
/* Control modes. */
|
/* Control modes. */
|
||||||
|
Reference in New Issue
Block a user