Date: Thu, 24 Jul 2008 10:20:51 GMT From: Ed Schouten <ed@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 145783 for review Message-ID: <200807241020.m6OAKpB8027232@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=145783 Change 145783 by ed@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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807241020.m6OAKpB8027232>