]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add ADDRB from Linux 6.0 to bits/termios-c_cflag.h
authorJoseph Myers <joseph@codesourcery.com>
Mon, 24 Oct 2022 13:43:19 +0000 (13:43 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Mon, 24 Oct 2022 13:43:19 +0000 (13:43 +0000)
Linux 6.0 adds a constant ADDRB, a termios c_cflag bit, to its
include/uapi/asm-generic/termbits-common.h.

Add it accordingly to glibc's bits/termios-c_cflag.h headers.  As
other constants in these headers are generally in octal, I converted
the value to octal to match.  As ADDRB isn't in a POSIX-reserved
namespace, I made it conditional on __USE_MISC.

Tested for x86_64.

sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h
sysdeps/unix/sysv/linux/bits/termios-c_cflag.h
sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h

index d2d27cc6b372bb96ab6885e59d7e4f952c364842..c683aa47b040a685dc970d34490e19fb5b28938e 100644 (file)
@@ -33,3 +33,7 @@
 #define HUPCL  00040000
 
 #define CLOCAL 00100000
+
+#ifdef __USE_MISC
+# define ADDRB 04000000000
+#endif
index 677263911e6349d8ec4443c65f561ce52e14ab89..f5acd58088cd7b72157a405b74235150c14afd53 100644 (file)
@@ -32,3 +32,7 @@
 #define PARODD 0001000
 #define HUPCL  0002000
 #define CLOCAL 0004000
+
+#ifdef __USE_MISC
+# define ADDRB 04000000000
+#endif
index fa4bdea9be43016edc1004af1b425222f15b072c..8aac22369ab5999e57b94670662de42ecbfce549 100644 (file)
@@ -33,3 +33,7 @@
 #define HUPCL  00040000
 
 #define CLOCAL 00100000
+
+#ifdef __USE_MISC
+# define ADDRB 04000000000
+#endif