aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1997-03-19 04:37:26 +0000
committerBruce Evans <bde@FreeBSD.org>1997-03-19 04:37:26 +0000
commit3628c5b6315e7cde7623d27bbf31e1755a7e0a12 (patch)
treeaf53c6bf23db26d4276ac553f6dc5ca47dbc3641 /sys
parenta4589af2549d6b5e9c4990317dc332e968d01376 (diff)
downloadsrc-3628c5b6315e7cde7623d27bbf31e1755a7e0a12.tar.gz
src-3628c5b6315e7cde7623d27bbf31e1755a7e0a12.zip
Only export ioctl-related stuff to applications. Include prerequisite
headers (like most other ioctl-related headers). Didn't fix spelling errors and other warts.
Notes
Notes: svn path=/head/; revision=24034
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/snoop.h25
1 files changed, 15 insertions, 10 deletions
diff --git a/sys/sys/snoop.h b/sys/sys/snoop.h
index bc44b517ffe8..3cd77edb37f8 100644
--- a/sys/sys/snoop.h
+++ b/sys/sys/snoop.h
@@ -13,9 +13,15 @@
* Snoop stuff.
*/
-#ifndef _SNOOP_H_
-#define _SNOOP_H_
+#ifndef _SYS_SNOOP_H_
+#define _SYS_SNOOP_H_
+#ifndef KERNEL
+#include <sys/types.h>
+#endif
+#include <sys/ioccom.h>
+
+#ifdef KERNEL
#define SNOOP_MINLEN (4*1024) /* This should be power of 2.
* 4K tested to be the minimum
* for which on normal tty
@@ -49,6 +55,12 @@ struct snoop {
struct selinfo snp_sel; /* Selection info */
};
+/* XXX several wrong storage classes and types here. */
+int snpdown __P((struct snoop *snp));
+int snpin __P((struct snoop *snp, char *buf, int n));
+int snpinc __P((struct snoop *snp, char c));
+#endif /* KERNEL */
+
/*
* Theese are snoop io controls
* SNPSTTY accepts 'struct snptty' as input.
@@ -68,11 +80,4 @@ struct snoop {
#define SNP_TTYCLOSE -2
#define SNP_DETACH -3
-#ifdef KERNEL
-/* XXX several wrong storage classes and types here. */
-int snpdown __P((struct snoop *snp));
-int snpin __P((struct snoop *snp, char *buf, int n));
-int snpinc __P((struct snoop *snp, char c));
-#endif /* KERNEL */
-
-#endif /* _SNOOP_H_ */
+#endif /* !_SYS_SNOOP_H_ */