PERFORCE change 145177 for review

Ed Schouten ed at FreeBSD.org
Sun Jul 13 20:11:17 UTC 2008


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

Change 145177 by ed at ed_dull on 2008/07/13 20:10:54

	Now sys/ioctl_compat.h contains no more valid items that we need
	outside the kernel, make it cause an error when included.

Affected files ...

.. //depot/projects/mpsafetty/sys/sys/ioctl_compat.h#2 edit

Differences ...

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

@@ -38,7 +38,9 @@
 #ifndef _SYS_IOCTL_COMPAT_H_
 #define	_SYS_IOCTL_COMPAT_H_
 
-#ifdef _KERNEL
+#ifndef _KERNEL
+#error "no user-servicable parts inside"
+#endif /* !_KERNEL */
 
 struct tchars {
 	char	t_intrc;	/* interrupt */
@@ -147,6 +149,4 @@
 #define	TIOCGLTC	_IOR('t',116,struct ltchars)/* get local special chars*/
 #define OTIOCCONS	_IO('t', 98)	/* for hp300 -- sans int arg */
 
-#endif /* _KERNEL */
-
 #endif /* !_SYS_IOCTL_COMPAT_H_ */


More information about the p4-projects mailing list