lkml.org 
[lkml]   [2005]   [Jan]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] 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.

Signed-off-by: Paul Mackerras <paulus@samba.org>

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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:09    [W:0.042 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site