From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8502 Path: news.gmane.org!not-for-mail From: Felix Janda Newsgroups: gmane.linux.lib.musl.general Subject: [PATCH 0/2] bits/termios.h deduplication Date: Sun, 13 Sep 2015 23:06:40 +0200 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1442179048 20958 80.91.229.3 (13 Sep 2015 21:17:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Sep 2015 21:17:28 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-8514-gllmg-musl=m.gmane.org@lists.openwall.com Sun Sep 13 23:17:25 2015 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 1ZbEeK-0001FG-DH for gllmg-musl@m.gmane.org; Sun, 13 Sep 2015 23:17:24 +0200 Original-Received: (qmail 7658 invoked by uid 550); 13 Sep 2015 21:17:22 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 7617 invoked from network); 13 Sep 2015 21:17:16 -0000 Resent-From: Felix Janda Resent-Date: Sun, 13 Sep 2015 23:12:40 +0200 Resent-Message-ID: <20150913211240.GA7342@nyan> Resent-To: musl@lists.openwall.com Xref: news.gmane.org gmane.linux.lib.musl.general:8502 Archived-At: The below patches make it easier to see which parts of bits/termios.h can be deduplicated. Except for mips and powerpc the headers are identical. Unfortunately, the header for powerpc is very different from the rest. The main things which are identical among all headers are B0 up to B38400 and the 10 constants starting with TCOOFF. Only mips and powerpc define EXTA, EXTB and BOTHER. Since these constants are also defined in it is not clear to me why. POSIX reserves EXTA and EXTB but not BOTHER, which therefore violates the namespace. Felix Janda (2): fix namespace violations in aarch64/bits/termios.h reindent powerpc's bits/termios.h to be consistent with other archs arch/aarch64/bits/termios.h | 14 +-- arch/powerpc/bits/termios.h | 278 ++++++++++++++++++++++---------------------- 2 files changed, 145 insertions(+), 147 deletions(-) -- 2.4.6