Skip to contentSkip to conversation

re-add TIOCSTART and TIOCSTOP compat_ioctl handlers

PATCH New Christoph Hellwig 1 participant 1 message Nov 4, 2005 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 re-add TIOCSTART and TIOCSTOP compat_ioctl handlers

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.

fs/compat_ioctl.c +10 -0
Index: linux-2.6/fs/compat_ioctl.c
===================================================================
@@ -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)