path: root/sys/sys/snoop.h
diff options
authorBruce Evans <bde@FreeBSD.org>1995-03-28 07:58:53 +0000
committerBruce Evans <bde@FreeBSD.org>1995-03-28 07:58:53 +0000
commit3aa12267a55fa252598db360627fce79a0bf1608 (patch)
treee153346dd5a88815c9c3e7f6748d7766c40a6b0d /sys/sys/snoop.h
parent1b9d1a091a93984b7c5df61dd07d020eda7e2468 (diff)
Add and move declarations to fix all of the warnings from `gcc -Wimplicit'
(except in netccitt, netiso and netns) that I didn't notice when I fixed "all" such warnings before.
Notes: svn path=/head/; revision=7430
Diffstat (limited to 'sys/sys/snoop.h')
1 files changed, 17 insertions, 3 deletions
diff --git a/sys/sys/snoop.h b/sys/sys/snoop.h
index 1c6f73d078db..82d5849747b3 100644
--- a/sys/sys/snoop.h
+++ b/sys/sys/snoop.h
@@ -13,8 +13,8 @@
* Snoop stuff.
-#ifndef SNOOP_H
-#define SNOOP_H
+#ifndef _SNOOP_H_
+#define _SNOOP_H_
#define SNOOP_MINLEN (4*1024) /* This should be power of 2.
* 4K tested to be the minimum
@@ -68,4 +68,18 @@ struct snoop {
#define SNP_TTYCLOSE -2
#define SNP_DETACH -3
+#ifdef KERNEL
+/* XXX several wrong storage classes and types here. */
+int snpclose __P((dev_t dev, int flag));
+int snp_detach __P((struct snoop *snp));
+int snpdown __P((struct snoop *snp));
+int snpin __P((struct snoop *snp, char *buf, int n));
+int snpinc __P((struct snoop *snp, char c));
+int snpioctl __P((dev_t dev, int cmd, caddr_t data, int flag));
+int snpopen __P((dev_t dev, int flag, int mode, struct proc *p));
+int snpread __P((dev_t dev, struct uio *uio, int flag));
+int snpselect __P((dev_t dev, int rw, struct proc *p));
+int snpwrite __P((dev_t dev, struct uio *uio, int flag));
+#endif /* KERNEL */
+#endif /* _SNOOP_H_ */