summaryrefslogtreecommitdiff
path: root/fs/compat_ioctl.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2005-11-09 08:35:07 +0300
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-09 18:56:00 +0300
commit7a81e316866be8053b18fe1dffc663f1ff19bfc3 (patch)
tree5d4920691227194b6f7e17a9f3342d72473cc036 /fs/compat_ioctl.c
parent49705b7743fd8f5632a95ec4c6547d169d27ac1f (diff)
downloadlinux-7a81e316866be8053b18fe1dffc663f1ff19bfc3.tar.xz
[PATCH] 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. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/compat_ioctl.c')
-rw-r--r--fs/compat_ioctl.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c
index 4909754ea84a..71c9d45c0624 100644
--- a/fs/compat_ioctl.c
+++ b/fs/compat_ioctl.c
@@ -3051,6 +3051,16 @@ HANDLE_IOCTL(TIOCSSERIAL, serial_struct_ioctl)
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)