Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jul 2008 20:11:16 GMT
From:      Ed Schouten <ed@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 145177 for review
Message-ID:  <200807132011.m6DKBGEu046981@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=145177

Change 145177 by ed@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_ */



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