This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 02/12] termios: Consolidate struct termios
- From: "Gabriel F. T. Gomes" <gabriel at inconstante dot eti dot br>
- To: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- Cc: <libc-alpha at sourceware dot org>, <hpa at zytor dot com>
- Date: Fri, 9 Nov 2018 15:11:40 -0200
- Subject: Re: [PATCH 02/12] termios: Consolidate struct termios
- References: <20181015204956.25558-1-adhemerval.zanella@linaro.org> <20181015204956.25558-2-adhemerval.zanella@linaro.org> <20181109114307.59b6cf39@tereshkova> <e977ec92-d7f6-bc4b-e79b-a4b375281c0a@linaro.org>
On Fri, 09 Nov 2018, Adhemerval Zanella wrote:
>For termios we do not follow kernel userspace ABI, glibc defines both
>input and output speed in termios structure and it differs from termios
>kernel generic abi (include/uapi/asm-generic/termios.h). In fact glibc
>follows the termios2 struct definition for most architectures (although
>we still issues ioctl using old API).
>
>And we are stuck on current termios struct, so we can't change it unless
>we add compatibility symbols. Which I think it is worth only if/when
>glibc start to use termios2 internally and only for architectures that
>termios does not provide all information termios2 requires (sparc and
>mips basically).
Thank you so much for the explanation.