From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9875 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: [PATCH 11/16] fix generic termios.h to be more consistent with glibc Date: Sun, 10 Apr 2016 14:14:09 +0200 Message-ID: <084b68eee741c3fb5e39be10ac9a3c3c19cba4ee.1460250248.git.nsz@port70.net> References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1460290472 25015 80.91.229.3 (10 Apr 2016 12:14:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Apr 2016 12:14:32 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-9888-gllmg-musl=m.gmane.org@lists.openwall.com Sun Apr 10 14:14:32 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1apEG6-0000LV-81 for gllmg-musl@m.gmane.org; Sun, 10 Apr 2016 14:14:30 +0200 Original-Received: (qmail 25813 invoked by uid 550); 10 Apr 2016 12:14:28 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 25758 invoked from network); 10 Apr 2016 12:14:20 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Xref: news.gmane.org gmane.linux.lib.musl.general:9875 Archived-At: add EXTA, EXTB, CIBAUD, CMSPAR, XCASE macros and hide them as well as CBAUD, ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN in standard mode. the new macros are both in glibc termios.h and in linux asm/termbits.h, the later also contains IBSHIFT and BOTHER, those were not added. these are not standard macros, but some of them are in the reserved namespace so could be exposed, the ones which are not reserved are CIBAUD, CMSPAR and XCASE (which was removed in issue 6), the rest got hidden to be consistent with glibc. --- arch/generic/bits/termios.h | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/arch/generic/bits/termios.h b/arch/generic/bits/termios.h index f0d81b1..941de7b 100644 --- a/arch/generic/bits/termios.h +++ b/arch/generic/bits/termios.h @@ -109,8 +109,6 @@ struct termios #define B3500000 0010016 #define B4000000 0010017 -#define CBAUD 0010017 - #define CSIZE 0000060 #define CS5 0000000 #define CS6 0000020 @@ -133,12 +131,6 @@ struct termios #define TOSTOP 0000400 #define IEXTEN 0100000 -#define ECHOCTL 0001000 -#define ECHOPRT 0002000 -#define ECHOKE 0004000 -#define FLUSHO 0010000 -#define PENDIN 0040000 - #define TCOOFF 0 #define TCOON 1 #define TCIOFF 2 @@ -153,8 +145,21 @@ struct termios #define TCSAFLUSH 2 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) +#define EXTA 0000016 +#define EXTB 0000017 +#define CBAUD 0010017 #define CBAUDEX 0010000 -#define CRTSCTS 020000000000 +#define CIBAUD 002003600000 +#define CMSPAR 010000000000 +#define CRTSCTS 020000000000 + +#define XCASE 0000004 +#define ECHOCTL 0001000 +#define ECHOPRT 0002000 +#define ECHOKE 0004000 +#define FLUSHO 0010000 +#define PENDIN 0040000 #define EXTPROC 0200000 + #define XTABS 0014000 #endif -- 2.7.2