mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Felix Janda <felix.janda@posteo.de>
To: musl@lists.openwall.com
Subject: [PATCH 0/2] bits/termios.h deduplication
Date: Sun, 13 Sep 2015 23:06:40 +0200	[thread overview]
Message-ID: <cover.1442178400.git.felix.janda@posteo.de> (raw)

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 <asm-generic/termbits.h> 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


             reply	other threads:[~2015-09-13 21:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-13 21:06 Felix Janda [this message]
2015-09-13 21:12 ` [PATCH 1/2] fix namespace violations in aarch64/bits/termios.h Felix Janda
2015-09-13 21:35   ` Szabolcs Nagy
2015-09-13 21:13 ` [PATCH 2/2] reindent powerpc's bits/termios.h to be consistent with other archs Felix Janda
2015-09-15 18:33   ` Rich Felker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1442178400.git.felix.janda@posteo.de \
    --to=felix.janda@posteo.de \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).