[PATCH 3/3] Linux: Keep termios ioctl constants strictly internal
H. Peter Anvin
hpa@zytor.com
Tue Jul 15 20:44:19 GMT 2025
On 2025-07-15 13:35, H. Peter Anvin wrote:
> On 2025-07-15 00:43, Andreas Schwab wrote:
>> On Jul 14 2025, Florian Weimer wrote:
>>
>>> I see
>>>
>>> #define TCSETSF2 _IOW('T', 0x2D, struct termios2)
>>> #define TCSETSW2 _IOW('T', 0x2C, struct termios2)
>>> #define TCSETS2 _IOW('T', 0x2B, struct termios2)
>>> #define TCGETS2 _IOR('T', 0x2A, struct termios2)
>>>
>>> on glibc 2.41.
>>
>> Where do you see them?
>>
>
> They are defined in <asm/ioctls.h> which is included by <bits/ioctls.h>
> and then again(!) by <bits/ioctl-types.h>.
>
So, if it isn't clear already, my suggestion is that we defer
unexporting the ioctls until at least 2.43. It is likely to break more
things based on various hacky workarounds for the long time that this
was a pending problem.
-hpa
More information about the Libc-alpha
mailing list