Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 May 2009 19:01:24 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r191947 - head/sys/sys
Message-ID:  <200905091901.n49J1PDO031798@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ed
Date: Sat May  9 19:01:24 2009
New Revision: 191947
URL: http://svn.freebsd.org/changeset/base/191947

Log:
  Clean up <sys/ioctl.h>.
  
  - Just use #error when including <sys/ioctl.h> in the kernel. Code
    hasn't used this header for years now and probably doesn't compile
    anyway, because of -Werror.
  
  - Get rid of struct ttysize, TIOCGSIZE and TIOCSSIZE. All code nowadays
    use both TIOC[GS]SIZE and TIOC[GS]WINSZ. Because we have other popular
    systems that don't implement the first, it's of little use to support
    interfaces nowadays.

Modified:
  head/sys/sys/ioctl.h

Modified: head/sys/sys/ioctl.h
==============================================================================
--- head/sys/sys/ioctl.h	Sat May  9 19:00:47 2009	(r191946)
+++ head/sys/sys/ioctl.h	Sat May  9 19:01:24 2009	(r191947)
@@ -39,33 +39,13 @@
 #define	_SYS_IOCTL_H_
 
 #ifdef _KERNEL
-#ifndef _SYS_CDEFS_H_
-#error this file needs sys/cdefs.h as a prerequisite
-#endif
-#ifdef __CC_SUPPORTS_WARNING
-#warning "Don't #include ioctl.h in the kernel.  Include xxxio.h instead."
-#endif
+#error "Don't #include ioctl.h in the kernel.  Include xxxio.h instead."
 #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>
+#include <sys/ttycom.h>
 
 #endif /* !_SYS_IOCTL_H_ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905091901.n49J1PDO031798>