[PATCH v9 04/14] linux/termios/powerpc: deal with powerpc-unique ioctl emulation

Florian Weimer fweimer@redhat.com
Tue Jul 1 17:27:19 GMT 2025


* H. Peter Anvin:

> On July 1, 2025 4:33:19 AM PDT, Florian Weimer <fweimer@redhat.com> wrote:
>>* H. Peter Anvin:
>>
>>> diff --git a/sysdeps/unix/sysv/linux/powerpc/bits/ioctls.h b/sysdeps/unix/sysv/linux/powerpc/bits/ioctls.h
>>> new file mode 100644
>>> index 000000000000..e1921dfb86c0
>>> --- /dev/null
>>> +++ b/sysdeps/unix/sysv/linux/powerpc/bits/ioctls.h
>>
>>> +#define TCGETS2	 _IOR ('t', 19, struct termios2)
>>> +#define TCSETS2	 _IOW ('t', 20, struct termios2)
>>> +#define TCSETSW2 _IOW ('t', 21, struct termios2)
>>> +#define TCSETSF2 _IOW ('t', 22, struct termios2)
>>
>>How is this expected to work given that POWER does not have a struct
>>termios2 in any installed header?

> About as well as all the other architectures...

Sorry, the other architectures have struct termios2, so it works there?
Or is broken for other reasons?

Thanks,
Florian



More information about the Libc-alpha mailing list