summaryrefslogtreecommitdiffstats
path: root/sys/sys/ttycom.h
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2006-09-27 19:57:02 +0000
committerru <ru@FreeBSD.org>2006-09-27 19:57:02 +0000
commit4ef62e4ca582414062d69e20a1ccdade4a110938 (patch)
treea886251dab8c19f71a5bfd0199ec1d9b327b3513 /sys/sys/ttycom.h
parentf6b387ce531fb4ba91958db5aadcb53f89d4ed1b (diff)
downloadFreeBSD-src-4ef62e4ca582414062d69e20a1ccdade4a110938.zip
FreeBSD-src-4ef62e4ca582414062d69e20a1ccdade4a110938.tar.gz
Fix our ioctl(2) implementation when the argument is "int". New
ioctls passing integer arguments should use the _IOWINT() macro. This fixes a lot of ioctl's not working on sparc64, most notable being keyboard/syscons ioctls. Full ABI compatibility is provided, with the bonus of fixing the handling of old ioctls on sparc64. Reviewed by: bde (with contributions) Tested by: emax, marius MFC after: 1 week
Diffstat (limited to 'sys/sys/ttycom.h')
-rw-r--r--sys/sys/ttycom.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/ttycom.h b/sys/sys/ttycom.h
index 4545d84..6e59577 100644
--- a/sys/sys/ttycom.h
+++ b/sys/sys/ttycom.h
@@ -123,7 +123,7 @@ struct winsize {
#define TIOCSCTTY _IO('t', 97) /* become controlling tty */
/* 97-90 tun; some conflicts */
#define TIOCEXT _IOW('t', 96, int) /* pty: external processing */
-#define TIOCSIG _IO('t', 95) /* pty: generate signal */
+#define TIOCSIG _IOWINT('t', 95) /* pty: generate signal */
#define TIOCDRAIN _IO('t', 94) /* wait till output drained */
/* 92-90 tap; some conflicts */
#define TIOCMSDTRWAIT _IOW('t', 91, int) /* modem: set wait on close */
OpenPOWER on IntegriCloud