mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
termios: Define TIOCSER_TEMT with __USE_MISC (BZ#17783)
This patch defines TIOCSER_TEMT on all architectures using the __USE_MISC guards similar to BZ#17782 fix. Latest Linux UAPI defines TIOCSER_TEMT with the same value for all architectures, so it is safe to use the value as default for all ABIs. Checked on x86_64linux-gnu and build against sparc64-linux-gnu and powerpc64le-linux-gnu. [BZ #17783] * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT): Define. * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC] (TIOCSER_TEMT): Likewise. * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC] (TEOCSER_TEMT): Likewise.
This commit is contained in:
10
ChangeLog
10
ChangeLog
@ -1,3 +1,13 @@
|
|||||||
|
2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
|
||||||
|
|
||||||
|
[BZ #17783]
|
||||||
|
* sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
|
||||||
|
Define.
|
||||||
|
* sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
|
||||||
|
(TIOCSER_TEMT): Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
|
||||||
|
(TEOCSER_TEMT): Likewise.
|
||||||
|
|
||||||
2019-01-02 PanderMusubi <pander@users.sourceforge.net>
|
2019-01-02 PanderMusubi <pander@users.sourceforge.net>
|
||||||
|
|
||||||
[BZ #24011]
|
[BZ #24011]
|
||||||
|
@ -198,6 +198,11 @@ struct termios
|
|||||||
# define EXTPROC 0200000
|
# define EXTPROC 0200000
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __USE_MISC
|
||||||
|
/* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */
|
||||||
|
# define TIOCSER_TEMT 0x01 /* Transmitter physically empty */
|
||||||
|
#endif
|
||||||
|
|
||||||
/* tcflow() and TCXONC use these */
|
/* tcflow() and TCXONC use these */
|
||||||
#define TCOOFF 0
|
#define TCOOFF 0
|
||||||
#define TCOON 1
|
#define TCOON 1
|
||||||
|
@ -273,7 +273,9 @@ struct ltchars {
|
|||||||
#define _VEOL2 8
|
#define _VEOL2 8
|
||||||
#define _VSWTC 9
|
#define _VSWTC 9
|
||||||
|
|
||||||
|
#ifdef __USE_MISC
|
||||||
/* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */
|
/* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */
|
||||||
#define TIOCSER_TEMT 0x01 /* Transmitter physically empty */
|
# define TIOCSER_TEMT 0x01 /* Transmitter physically empty */
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* __USE_MISC */
|
#endif /* __USE_MISC */
|
||||||
|
@ -203,9 +203,9 @@ struct termios
|
|||||||
# define EXTPROC 0x00010000
|
# define EXTPROC 0x00010000
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
# if defined __USE_GNU
|
#ifdef __USE_MISC
|
||||||
/* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */
|
/* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */
|
||||||
#define TIOCSER_TEMT 0x01 /* Transmitter physically empty */
|
# define TIOCSER_TEMT 0x01 /* Transmitter physically empty */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* tcflow() and TCXONC use these */
|
/* tcflow() and TCXONC use these */
|
||||||
|
Reference in New Issue
Block a user