[PATCH] re-add TIOCSTART and TIOCSTOP compat_ioctl handlers

From: Christoph Hellwig
Date: Fri Nov 04 2005 - 17:10:09 EST


We don't implement these ioctls, but some architectures define them
in the headers. Bash picks them up and issues them frequently. Add
compat_ioctl handlers to silence warnings about unhandled copat ioctls.


Signed-off-by: Christoph Hellwig <hch@xxxxxx>

Index: linux-2.6/fs/compat_ioctl.c
===================================================================
--- linux-2.6.orig/fs/compat_ioctl.c 2005-11-02 11:04:41.000000000 +0100
+++ linux-2.6/fs/compat_ioctl.c 2005-11-02 11:04:56.000000000 +0100
@@ -3050,6 +3050,16 @@
COMPATIBLE_IOCTL(TIOCGLTC)
COMPATIBLE_IOCTL(TIOCSLTC)
#endif
+#ifdef TIOCSTART
+/*
+ * For these two we have defintions in ioctls.h and/or termios.h on
+ * some architectures but no actual implemention. Some applications
+ * like bash call them if they are defined in the headers, so we provide
+ * entries here to avoid syslog message spew.
+ */
+COMPATIBLE_IOCTL(TIOCSTART)
+COMPATIBLE_IOCTL(TIOCSTOP)
+#endif
/* Usbdevfs */
HANDLE_IOCTL(USBDEVFS_CONTROL32, do_usbdevfs_control)
HANDLE_IOCTL(USBDEVFS_BULK32, do_usbdevfs_bulk)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/