linux-user: Add generic 'termbits.h' for some archs
commitfcb6fcf63bab7582d847b956804fe45e536e38c0
authorFilip Bozuta <Filip.Bozuta@syrmia.com>
Thu, 23 Jul 2020 21:02:31 +0000 (23 23:02 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 27 Aug 2020 10:29:50 +0000 (27 12:29 +0200)
tree530d5a0438e5f954c55246cde9d0db121d09c170
parent1a674adf983204cfa5b5cc35185f2bf3274992c6
linux-user: Add generic 'termbits.h' for some archs

This patch introduces a generic 'termbits.h' file for following
archs: 'aarch64', 'arm', 'i386, 'm68k', 'microblaze', 'nios2',
'openrisc', 'riscv', 's390x', 'x86_64'.

Since all of these archs have the same termios flag values and
same ioctl_tty numbers, there is no need for a separate 'termbits.h'
file for each one of them. For that reason one generic 'termbits.h'
file was added for all of them and an '#include' directive was
added for this generic file in every arch 'termbits.h' file.

Also, some of the flag values that were missing were added in this
generic file so that it matches the generic 'termibts.h' and 'ioctls.h'
files from the kernel: 'asm-generic/termbits.h' and 'asm-generic/ioctls.h'.

Signed-off-by: Filip Bozuta <Filip.Bozuta@syrmia.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20200723210233.349690-2-Filip.Bozuta@syrmia.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
12 files changed:
linux-user/aarch64/termbits.h
linux-user/arm/termbits.h
linux-user/generic/termbits.h [new file with mode: 0644]
linux-user/i386/termbits.h
linux-user/m68k/termbits.h
linux-user/microblaze/termbits.h
linux-user/nios2/termbits.h
linux-user/openrisc/termbits.h
linux-user/riscv/termbits.h
linux-user/s390x/termbits.h
linux-user/tilegx/termbits.h
linux-user/x86_64/termbits.h