mailing list of musl libc
 help / color / mirror / code / Atom feed
* [PATCH 00/16] sys/ioctl.h and termios.h cleanups
@ 2016-07-03 15:01 Szabolcs Nagy
  2016-07-03 15:02 ` [PATCH 01/16] use the generic ioctl.h for x86_64, x32 and aarch64 Szabolcs Nagy
                   ` (16 more replies)
  0 siblings, 17 replies; 19+ messages in thread
From: Szabolcs Nagy @ 2016-07-03 15:01 UTC (permalink / raw)
  To: musl

the contents of sys/ioctl.h is linux specific and not defined by any
standard, the defacto standard is whatever glibc sys/ioctl.h does.

termios.h is defined by posix, but there are various extensions.
glibc does not include linux uapi headers, but contains a copy of
most asm/termbits.h definitions etc.

this is v2 of the patchset, changes:
- add powerpc64 and mipsn32 changes
- add *speed members to mips termios struct

Szabolcs Nagy (16):
  use the generic ioctl.h for x86_64, x32 and aarch64
  remove linux asm/sockios.h macros from ioctl.h
  remove ioctl macros that were removed from linux uapi
  add missing SIOCSIFNAME from linux/sockios.h to ioctl.h
  add missing TIOC* macros to ioctl.h
  remove mips and powerpc ioctls that are missing from linux uapi
  fix mips, mips64, mipsn32 TIOCM_* macros in ioctl.h
  fix TIOCMSET in mips ioctl.h
  remove termios2 related ioctls from sh ioctl.h
  fix FIOQSIZE in arm ioctl.h
  fix generic termios.h to be more consistent with glibc
  fix powerpc termios.h to be more consistent with glibc
  fix mips termios.h to be more consistent with glibc
  fix TCS* definitions in mips termios.h
  fix CBAUDEX in powerpc termios.h
  fix struct termios in mips64 and mipsn32 termios.h

 arch/aarch64/bits/ioctl.h     | 213 ------------------------------------------
 arch/arm/bits/ioctl_fix.h     |   2 +
 arch/generic/bits/ioctl.h     |  22 ++---
 arch/generic/bits/ioctl_fix.h |   0
 arch/generic/bits/termios.h   |  23 +++--
 arch/mips/bits/ioctl.h        |  55 +++++------
 arch/mips/bits/termios.h      |  38 ++++----
 arch/mips64/bits/ioctl.h      |  55 +++++------
 arch/mips64/bits/termios.h    |  37 ++++----
 arch/mipsn32/bits/ioctl.h     |  55 +++++------
 arch/mipsn32/bits/termios.h   |  37 ++++----
 arch/powerpc/bits/ioctl.h     |  26 +-----
 arch/powerpc/bits/termios.h   |  26 +++---
 arch/powerpc64/bits/ioctl.h   |  29 +-----
 arch/powerpc64/bits/termios.h |  26 +++---
 arch/sh/bits/ioctl.h          |  17 +---
 arch/x32/bits/ioctl.h         | 197 --------------------------------------
 arch/x86_64/bits/ioctl.h      | 197 --------------------------------------
 18 files changed, 192 insertions(+), 863 deletions(-)
 delete mode 100644 arch/aarch64/bits/ioctl.h
 create mode 100644 arch/arm/bits/ioctl_fix.h
 create mode 100644 arch/generic/bits/ioctl_fix.h
 delete mode 100644 arch/x32/bits/ioctl.h
 delete mode 100644 arch/x86_64/bits/ioctl.h

-- 
2.8.1


^ permalink raw reply	[flat|nested] 19+ messages in thread
* [PATCH 00/16] sys/ioctl.h and termios.h cleanups
@ 2016-04-10 12:09 Szabolcs Nagy
  2016-04-10 12:15 ` [PATCH 13/16] fix mips termios.h to be more consistent with glibc Szabolcs Nagy
  0 siblings, 1 reply; 19+ messages in thread
From: Szabolcs Nagy @ 2016-04-10 12:09 UTC (permalink / raw)
  To: musl

the contents of sys/ioctl.h is linux specific and not defined by any
standard, the defacto standard is whatever glibc sys/ioctl.h does.

glibc includes asm/ioctl.h and asm/ioctls.h linux uapi headers and
contains a copy of most linux/sockios.h, linux/tty.h and asm/termios.h
definitions (does not seem to be updated regularly so some recent
linux macros are missing) and also includes sys/ttydefaults.h.

in musl the sys/ttydefaults.h include, struct termio and struct termios2
related definitions are omitted, otherwise glibc is followed.

termios.h is defined by posix, but there are various extensions.
glibc does not include linux uapi headers, but contains a copy of
most asm/termbits.h definitions and includes sys/ttydefaults.h
in non-standard mode.

musl termios.h follows glibc except the sys/ttydefaults.h include,
the termios struct definition and _HAVE_STRUCT_TERMIOS_C_{I,O}SPEED
macros.

these patches are not tested, but compared against preprocessed
glibc headers on all targets.

Szabolcs Nagy (16):
  use the generic ioctl.h for x86_64, x32 and aarch64
  remove linux asm/sockios.h macros from ioctl.h
  remove ioctl macros that were removed from linux uapi
  add missing SIOCSIFNAME from linux/sockios.h to ioctl.h
  add missing TIOC* macros to ioctl.h
  remove mips and powerpc ioctls that are missing from linux uapi
  fix mips and mips64 TIOCM_* macros in ioctl.h
  fix TIOCMSET in mips ioctl.h
  remove termios2 related ioctls from sh ioctl.h
  fix FIOQSIZE in arm ioctl.h
  fix generic termios.h to be more consistent with glibc
  fix powerpc termios.h to be more consistent with glibc
  fix mips termios.h to be more consistent with glibc
  fix TCS* definitions in mips termios.h
  fix CBAUDEX in powerpc termios.h
  fix struct termios in mips termios.h

 arch/aarch64/bits/ioctl.h     | 213 ------------------------------------------
 arch/arm/bits/ioctl_fix.h     |   2 +
 arch/generic/bits/ioctl.h     |  22 ++---
 arch/generic/bits/ioctl_fix.h |   0
 arch/generic/bits/termios.h   |  23 +++--
 arch/mips/bits/ioctl.h        |  55 +++++------
 arch/mips/bits/termios.h      |  40 ++++----
 arch/mips64/bits/ioctl.h      |  55 +++++------
 arch/mips64/bits/termios.h    |  35 ++++---
 arch/powerpc/bits/ioctl.h     |  26 +-----
 arch/powerpc/bits/termios.h   |  26 +++---
 arch/sh/bits/ioctl.h          |  17 +---
 arch/x32/bits/ioctl.h         | 197 --------------------------------------
 arch/x86_64/bits/ioctl.h      | 197 --------------------------------------
 14 files changed, 130 insertions(+), 778 deletions(-)
 delete mode 100644 arch/aarch64/bits/ioctl.h
 create mode 100644 arch/arm/bits/ioctl_fix.h
 create mode 100644 arch/generic/bits/ioctl_fix.h
 delete mode 100644 arch/x32/bits/ioctl.h
 delete mode 100644 arch/x86_64/bits/ioctl.h

-- 
2.7.2



^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2016-07-03 19:10 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-03 15:01 [PATCH 00/16] sys/ioctl.h and termios.h cleanups Szabolcs Nagy
2016-07-03 15:02 ` [PATCH 01/16] use the generic ioctl.h for x86_64, x32 and aarch64 Szabolcs Nagy
2016-07-03 15:02 ` [PATCH 02/16] remove linux asm/sockios.h macros from ioctl.h Szabolcs Nagy
2016-07-03 15:03 ` [PATCH 03/16] remove ioctl macros that were removed from linux uapi Szabolcs Nagy
2016-07-03 15:03 ` [PATCH 04/16] add missing SIOCSIFNAME from linux/sockios.h to ioctl.h Szabolcs Nagy
2016-07-03 15:04 ` [PATCH 05/16] add missing TIOC* macros " Szabolcs Nagy
2016-07-03 15:05 ` [PATCH 06/16] remove mips and powerpc ioctls that are missing from linux uapi Szabolcs Nagy
2016-07-03 15:05 ` [PATCH 07/16] fix mips, mips64, mipsn32 TIOCM_* macros in ioctl.h Szabolcs Nagy
2016-07-03 15:06 ` [PATCH 08/16] fix TIOCMSET in mips ioctl.h Szabolcs Nagy
2016-07-03 15:06 ` [PATCH 09/16] remove termios2 related ioctls from sh ioctl.h Szabolcs Nagy
2016-07-03 15:07 ` [PATCH 10/16] fix FIOQSIZE in arm ioctl.h Szabolcs Nagy
2016-07-03 15:07 ` [PATCH 11/16] fix generic termios.h to be more consistent with glibc Szabolcs Nagy
2016-07-03 15:08 ` [PATCH 12/16] fix powerpc " Szabolcs Nagy
2016-07-03 15:08 ` [PATCH 13/16] fix mips " Szabolcs Nagy
2016-07-03 15:09 ` [PATCH 14/16] fix TCS* definitions in mips termios.h Szabolcs Nagy
2016-07-03 15:09 ` [PATCH 15/16] fix CBAUDEX in powerpc termios.h Szabolcs Nagy
2016-07-03 15:10 ` [PATCH 16/16] fix struct termios in mips64 and mipsn32 termios.h Szabolcs Nagy
2016-07-03 19:10 ` [PATCH 00/16] sys/ioctl.h and termios.h cleanups Rich Felker
  -- strict thread matches above, loose matches on Subject: below --
2016-04-10 12:09 Szabolcs Nagy
2016-04-10 12:15 ` [PATCH 13/16] fix mips termios.h to be more consistent with glibc Szabolcs Nagy

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).