From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1105) id 4602B385840A; Mon, 24 Oct 2022 13:43:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4602B385840A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666619014; bh=J+yJUO77vYsVZ8agzNX5fj7uIs9OAMJvGSbXJFNqeYw=; h=From:To:Subject:Date:From; b=Ysrr6zO8x9nT6+7x/M/NUMaT3v4FpMMaJ1RDWW/nZy1yliOez3xd/QRZtXp66i+hd LgbWeZJ0ITsgKZLbi+UUyj13U5ybqB7vhzOrXZZOHOFCh7S56NI2f3PEU3vtRLUN1J pO1IVKumEKtRDkPCkut+3vSubmg/jNvG+AKqcM7s= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Joseph Myers To: glibc-cvs@sourceware.org Subject: [glibc] Add ADDRB from Linux 6.0 to bits/termios-c_cflag.h X-Act-Checkin: glibc X-Git-Author: Joseph Myers X-Git-Refname: refs/heads/master X-Git-Oldrev: 8775479804cfea2bbe4dcdf19d6589264c96d5fb X-Git-Newrev: b87a70e5e26e2656637da5f58ba4d26777d9e37b Message-Id: <20221024134334.4602B385840A@sourceware.org> Date: Mon, 24 Oct 2022 13:43:34 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=b87a70e5e26e2656637da5f58ba4d26777d9e37b commit b87a70e5e26e2656637da5f58ba4d26777d9e37b Author: Joseph Myers Date: Mon Oct 24 13:43:19 2022 +0000 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: --- sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h | 4 ++++ sysdeps/unix/sysv/linux/bits/termios-c_cflag.h | 4 ++++ sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h | 4 ++++ 3 files changed, 12 insertions(+) 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 d2d27cc6b3..c683aa47b0 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 677263911e..f5acd58088 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 fa4bdea9be..8aac22369a 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