Skip to contentSkip to conversation

Ioctl compatibility for TIOCMIWAIT and TIOCGICOUNT

PATCH New Paul Mackerras 1 participant 1 message Jan 17, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Ioctl compatibility for TIOCMIWAIT and TIOCGICOUNT

This patch lets us use TIOCMIWAIT and TIOCGICOUNT from a 32-bit process on a 64-bit processor. TIOCMIWAIT uses the argument as a bitmap of things to wait for. The argument for TIOCGICOUNT points to a struct serial_icounter_struct, which only contains ints and arrays of int.

include/linux/compat_ioctl.h +2 -0
diff -urN linux-2.5/include/linux/compat_ioctl.h test/include/linux/compat_ioctl.h
@@ -25,6 +25,8 @@
 COMPATIBLE_IOCTL(TIOCLINUX)
 COMPATIBLE_IOCTL(TIOCSBRK)
 COMPATIBLE_IOCTL(TIOCCBRK)
+ULONG_IOCTL(TIOCMIWAIT)
+COMPATIBLE_IOCTL(TIOCGICOUNT)
 /* Little t */
 COMPATIBLE_IOCTL(TIOCGETD)
 COMPATIBLE_IOCTL(TIOCSETD)