From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9878 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: [PATCH 13/16] fix mips termios.h to be more consistent with glibc Date: Sun, 10 Apr 2016 14:15:29 +0200 Message-ID: <35d5dd17c8869e2528343e11ea4d92ae64ab94b1.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 1460290549 25962 80.91.229.3 (10 Apr 2016 12:15:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Apr 2016 12:15:49 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-9891-gllmg-musl=m.gmane.org@lists.openwall.com Sun Apr 10 14:15:48 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 1apEHK-0000wK-KY for gllmg-musl@m.gmane.org; Sun, 10 Apr 2016 14:15:46 +0200 Original-Received: (qmail 28187 invoked by uid 550); 10 Apr 2016 12:15:44 -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 28156 invoked from network); 10 Apr 2016 12:15:40 -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:9878 Archived-At: same changes to the defined macros as in powerpc and generic bits. --- arch/mips/bits/termios.h | 29 ++++++++++++++--------------- arch/mips64/bits/termios.h | 29 ++++++++++++++--------------- 2 files changed, 28 insertions(+), 30 deletions(-) diff --git a/arch/mips/bits/termios.h b/arch/mips/bits/termios.h index 487c1d4..55ba132 100644 --- a/arch/mips/bits/termios.h +++ b/arch/mips/bits/termios.h @@ -93,10 +93,7 @@ struct termios #define B9600 0000015 #define B19200 0000016 #define B38400 0000017 -#define EXTA 0000016 -#define EXTB 0000017 -#define BOTHER 0010000 #define B57600 0010001 #define B115200 0010002 #define B230400 0010003 @@ -113,8 +110,6 @@ struct termios #define B3500000 0010016 #define B4000000 0010017 -#define CBAUD 0010017 - #define CSIZE 0000060 #define CS5 0000000 #define CS6 0000020 @@ -129,18 +124,12 @@ struct termios #define ISIG 0000001 #define ICANON 0000002 -#define XCASE 0000004 #define ECHO 0000010 #define ECHOE 0000020 #define ECHOK 0000040 #define ECHONL 0000100 #define NOFLSH 0000200 #define IEXTEN 0000400 -#define ECHOCTL 0001000 -#define ECHOPRT 0002000 -#define ECHOKE 0004000 -#define FLUSHO 0020000 -#define PENDIN 0040000 #define TOSTOP 0100000 #define ITOSTOP 0100000 @@ -158,12 +147,22 @@ 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 CIBAUD 002003600000 -#define IBSHIFT 16 -#define CMSPAR 010000000000 -#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 0020000 +#define PENDIN 0040000 #define EXTPROC 0200000 + #define XTABS 0014000 #define TIOCSER_TEMT 1 #endif diff --git a/arch/mips64/bits/termios.h b/arch/mips64/bits/termios.h index 3a7d5a1..d831cfa 100644 --- a/arch/mips64/bits/termios.h +++ b/arch/mips64/bits/termios.h @@ -90,10 +90,7 @@ struct termios { #define B9600 0000015 #define B19200 0000016 #define B38400 0000017 -#define EXTA 0000016 -#define EXTB 0000017 -#define BOTHER 0010000 #define B57600 0010001 #define B115200 0010002 #define B230400 0010003 @@ -110,8 +107,6 @@ struct termios { #define B3500000 0010016 #define B4000000 0010017 -#define CBAUD 0010017 - #define CSIZE 0000060 #define CS5 0000000 #define CS6 0000020 @@ -126,18 +121,12 @@ struct termios { #define ISIG 0000001 #define ICANON 0000002 -#define XCASE 0000004 #define ECHO 0000010 #define ECHOE 0000020 #define ECHOK 0000040 #define ECHONL 0000100 #define NOFLSH 0000200 #define IEXTEN 0000400 -#define ECHOCTL 0001000 -#define ECHOPRT 0002000 -#define ECHOKE 0004000 -#define FLUSHO 0020000 -#define PENDIN 0040000 #define TOSTOP 0100000 #define ITOSTOP 0100000 @@ -155,12 +144,22 @@ 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 CIBAUD 002003600000 -#define IBSHIFT 16 -#define CMSPAR 010000000000 -#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 0020000 +#define PENDIN 0040000 #define EXTPROC 0200000 + #define XTABS 0014000 #define TIOCSER_TEMT 1 #endif -- 2.7.2