[PATCH] Linux: Define struct termios2 and its ioctls on all architectures

Andreas Schwab schwab@suse.de
Wed Jul 9 12:48:43 GMT 2025


On Jul 09 2025, Florian Weimer wrote:

> * Andreas Schwab:
>
>> I think installed glibc headers should not define any termios2 ioctl
>> numbers anywhere.  Most users should be using the POSIX termios
>> interfaces, and code that needs to bypass glibc to interface with the
>> ioctl syscall directly (strace, seccomp, etc.) must use the definitions
>> from the kernel headers anyway.
>
> I assume this also applies to the termios ioctls?

I'm only talking about the termios2 interface, which is the subject of
this thread.  glibc has never provided any definitions for it and should
continue to do so, since it is an implementation detail.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


More information about the Libc-alpha mailing list