[PATCH 3/3] Linux: Keep termios ioctl constants strictly internal

H. Peter Anvin hpa@zytor.com
Tue Jul 15 20:35:40 GMT 2025


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

	-hpa



More information about the Libc-alpha mailing list