From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa1.mentor.iphmx.com (esa1.mentor.iphmx.com [68.232.129.153]) by sourceware.org (Postfix) with ESMTPS id BFCDD389EC52 for ; Thu, 6 Oct 2022 16:30:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BFCDD389EC52 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.95,164,1661846400"; d="scan'208";a="87035771" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa1.mentor.iphmx.com with ESMTP; 06 Oct 2022 08:30:34 -0800 IronPort-SDR: vtzxrvYyzXr+uStoScv2hpVF6doKTy3XRp9H1wrjZN2lnWd/2fCtCJHw7PD9OycL7WBy5MlGrr m8txFjMyH92Ld5utTi3mxzkqFb9kYVTYgZDVkMnWS+4YZxqxKMnOQShHRGEhTELd6jHZAES8Tv ybMPhVUmh+agr391b6CgYIwkocZFRGf1i590nVdBk8Re1Diw/qiz5EaOeErrZl64Yt2U08CG0f Nici4+1yEmjl43iZ8sK/X59eL7xHmLLyzyFHkGDwkZUviWCqLPe5qJzgMeAQUzORd3sQto8obe iyQ= Date: Thu, 6 Oct 2022 16:30:28 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: Subject: Add ADDRB from Linux 6.0 to bits/termios-c_cflag.h Message-ID: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-11.mgc.mentorg.com (139.181.222.11) To svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) X-Spam-Status: No, score=-3116.8 required=5.0 tests=BAYES_00,GIT_PATCH_0,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 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 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 -- Joseph S. Myers joseph@codesourcery.com