PERFORCE change 145783 for review

Ed Schouten ed at FreeBSD.org
Thu Jul 24 10:20:53 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=145783

Change 145783 by ed at ed_dull on 2008/07/24 10:20:43

	Even though I think most apps fall back to struct winsize, I
	think we'd better leave struct ttysize for now. We can always
	clean it up later.

Affected files ...

.. //depot/projects/mpsafetty/sys/sys/ioctl.h#2 integrate

Differences ...

==== //depot/projects/mpsafetty/sys/sys/ioctl.h#2 (text+ko) ====

@@ -48,7 +48,23 @@
 #endif /* _KERNEL */
 
 #include <sys/ttycom.h>
+
+/*
+ * Pun for SunOS prior to 3.2.  SunOS 3.2 and later support TIOCGWINSZ
+ * and TIOCSWINSZ (yes, even 3.2-3.5, the fact that it wasn't documented
+ * notwithstanding).
+ */
+struct ttysize {
+	unsigned short	ts_lines;
+	unsigned short	ts_cols;
+	unsigned short	ts_xxx;
+	unsigned short	ts_yyy;
+};
+#define	TIOCGSIZE	TIOCGWINSZ
+#define	TIOCSSIZE	TIOCSWINSZ
+
 #include <sys/ioccom.h>
+
 #include <sys/filio.h>
 #include <sys/sockio.h>
 


More information about the p4-projects mailing list