diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-07-29 16:40:51 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-07-29 16:40:51 -0400 |
commit | cbb609b3db500e6aebe15762abebc4cb23563b8a (patch) | |
tree | 632645ee71a182f886b2170d0907d469636a7078 /arch | |
parent | a126188f864f439e5243d75601f179ea72a7b4e7 (diff) | |
download | musl-cbb609b3db500e6aebe15762abebc4cb23563b8a.zip musl-cbb609b3db500e6aebe15762abebc4cb23563b8a.tar.gz musl-cbb609b3db500e6aebe15762abebc4cb23563b8a.tar.bz2 |
fix terminal control ioctl constants for sh
this commit changes the names to match the kernel names, exposing
under the normal names the "old" versions which work with a smaller
termios structure compatible with the userspace structure, and
renaming the "new" versions with "2" on the end like the kernel has.
this fixes spurious warnings "Unsupported ioctl: cmd=0x802c542a" from
qemu-sh4 and should be more correct anyway, since our userspace
termios structure does not have meaningful information in the part
which the kernel would be interpreting as speeds with the new ioctl.
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh/bits/ioctl.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/arch/sh/bits/ioctl.h b/arch/sh/bits/ioctl.h index c0b668b..2f63d06 100644 --- a/arch/sh/bits/ioctl.h +++ b/arch/sh/bits/ioctl.h @@ -81,10 +81,14 @@ #define TIOCSBRK _IO('T', 39) #define TIOCCBRK _IO('T', 40) #define TIOCGSID _IOR('T', 41, int) -#define TCGETS _IOR('T', 42, char[44]) -#define TCSETS _IOW('T', 43, char[44]) -#define TCSETSW _IOW('T', 44, char[44]) -#define TCSETSF _IOW('T', 45, char[44]) +#define TCGETS _IO('T', 1) +#define TCSETS _IO('T', 2) +#define TCSETSW _IO('T', 3) +#define TCSETSF _IO('T', 4) +#define TCGETS2 _IOR('T', 42, char[44]) +#define TCSETS2 _IOW('T', 43, char[44]) +#define TCSETSW2 _IOW('T', 44, char[44]) +#define TCSETSF2 _IOW('T', 45, char[44]) #define TIOCGPTN _IOR('T', 48, unsigned int) #define TIOCSPTLCK _IOW('T', 49, int) #define TIOCGDEV _IOR('T', 50, unsigned int) |