summaryrefslogtreecommitdiffstats
path: root/sys/sys/ioccom.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1996-09-21 08:42:37 +0000
committerbde <bde@FreeBSD.org>1996-09-21 08:42:37 +0000
commit1c908a85b75b81606ddad5806bed35722857d16f (patch)
tree7d2184f105d76eff39f2bd46173b55529132d6fe /sys/sys/ioccom.h
parent2d23099e2834c53ac895341a401052bb28eccf72 (diff)
downloadFreeBSD-src-1c908a85b75b81606ddad5806bed35722857d16f.zip
FreeBSD-src-1c908a85b75b81606ddad5806bed35722857d16f.tar.gz
Moved the prototype for ioctl() from <sys/ioctl.h> to <sys/ioccom.h>
so that applications don't have to include <sys/ioctl.h> just to get a prototype for ioctl().
Diffstat (limited to 'sys/sys/ioccom.h')
-rw-r--r--sys/sys/ioccom.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/sys/ioccom.h b/sys/sys/ioccom.h
index e2c54a54..3a8b1c4 100644
--- a/sys/sys/ioccom.h
+++ b/sys/sys/ioccom.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)ioccom.h 8.2 (Berkeley) 3/28/94
- * $Id: ioccom.h,v 1.2 1994/08/02 07:53:03 davidg Exp $
+ * $Id: ioccom.h,v 1.3 1996/05/02 14:20:59 phk Exp $
*/
#ifndef _SYS_IOCCOM_H_
@@ -62,4 +62,14 @@
/* this should be _IORW, but stdio got there first */
#define _IOWR(g,n,t) _IOC(IOC_INOUT, (g), (n), sizeof(t))
+#ifndef KERNEL
+
+#include <sys/cdefs.h>
+
+__BEGIN_DECLS
+int ioctl __P((int, unsigned long, ...));
+__END_DECLS
+
+#endif /* !KERNEL */
+
#endif /* !_SYS_IOCCOM_H_ */
OpenPOWER on IntegriCloud