]> sourceware.org Git - glibc.git/commitdiff
termios: Define TIOCSER_TEMT with __USE_MISC (BZ#17783)
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 8 Oct 2018 20:51:32 +0000 (17:51 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 3 Jan 2019 11:32:12 +0000 (09:32 -0200)
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.

ChangeLog
sysdeps/unix/sysv/linux/bits/termios.h
sysdeps/unix/sysv/linux/powerpc/bits/termios.h
sysdeps/unix/sysv/linux/sparc/bits/termios.h

index 3cf2a50bff26604a259da9614a14e9c475289989..879578967e511bbfa207ca035cf7586d732495f8 100644 (file)
--- a/ChangeLog
+++ b/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>
 
        [BZ #24011]
index e0249a5f4f04fe209080b4fee896d2ec52f4566d..96b68a0abcc68f0741eba635f87db9c542ed5df7 100644 (file)
@@ -198,6 +198,11 @@ struct termios
 # define EXTPROC 0200000
 #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 */
 #define        TCOOFF          0
 #define        TCOON           1
index 5236dc9adb58a3418b4009164388894863d49759..050d947eb9b7d3d2d431b9ed5a1afc3dcf79f69b 100644 (file)
@@ -273,7 +273,9 @@ struct ltchars {
 #define _VEOL2 8
 #define _VSWTC 9
 
+#ifdef __USE_MISC
 /* 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  */
index 36860e00200e4945febe602bc13d43ed3549e041..0c35d277729185f3b08fee46c5c85c25828fc2d9 100644 (file)
@@ -203,9 +203,9 @@ struct termios
 # define EXTPROC 0x00010000
 #endif
 
-# if defined __USE_GNU
+#ifdef __USE_MISC
 /* 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
 
 /* tcflow() and TCXONC use these */
This page took 0.081701 seconds and 5 git commands to generate.