public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] re-add TIOCSTART and TIOCSTOP compat_ioctl handlers
@ 2005-11-04 22:09 Christoph Hellwig
  0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2005-11-04 22:09 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel

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>

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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-11-04 22:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-04 22:09 [PATCH] re-add TIOCSTART and TIOCSTOP compat_ioctl handlers Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox