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.

Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>

diff -urN linux-2.5/include/linux/compat_ioctl.h 
test/include/linux/compat_ioctl.h
--- linux-2.5/include/linux/compat_ioctl.h      2004-11-17 09:38:21.000000000 
+1100
+++ test/include/linux/compat_ioctl.h   2005-01-17 14:25:41.000000000 +1100
@@ -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)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to