From: Joseph Myers Date: Mon, 24 Oct 2022 13:43:19 +0000 (+0000) Subject: Add ADDRB from Linux 6.0 to bits/termios-c_cflag.h X-Git-Tag: upstream/2.37~231 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b87a70e5e26e2656637da5f58ba4d26777d9e37b;p=platform%2Fupstream%2Fglibc.git Add ADDRB from Linux 6.0 to bits/termios-c_cflag.h 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. --- diff --git a/sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h b/sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h index d2d27cc..c683aa4 100644 --- a/sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h +++ b/sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h @@ -33,3 +33,7 @@ #define HUPCL 00040000 #define CLOCAL 00100000 + +#ifdef __USE_MISC +# define ADDRB 04000000000 +#endif diff --git a/sysdeps/unix/sysv/linux/bits/termios-c_cflag.h b/sysdeps/unix/sysv/linux/bits/termios-c_cflag.h index 6772639..f5acd58 100644 --- a/sysdeps/unix/sysv/linux/bits/termios-c_cflag.h +++ b/sysdeps/unix/sysv/linux/bits/termios-c_cflag.h @@ -32,3 +32,7 @@ #define PARODD 0001000 #define HUPCL 0002000 #define CLOCAL 0004000 + +#ifdef __USE_MISC +# define ADDRB 04000000000 +#endif diff --git a/sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h b/sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h index fa4bdea..8aac223 100644 --- a/sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h +++ b/sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h @@ -33,3 +33,7 @@ #define HUPCL 00040000 #define CLOCAL 00100000 + +#ifdef __USE_MISC +# define ADDRB 04000000000 +#endif