summaryrefslogtreecommitdiffstats
path: root/sys/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-12-14 08:32:45 +0000
committerphk <phk@FreeBSD.org>1995-12-14 08:32:45 +0000
commit63ec2c0ae9b44c5394bae5d6ee7fea5be9659585 (patch)
tree17b584943b186d479fdf3906ec2bef1ea2ca47bf /sys/sys
parent30e263dcabc35e19f5e060d92f09d212e9b56668 (diff)
downloadFreeBSD-src-63ec2c0ae9b44c5394bae5d6ee7fea5be9659585.zip
FreeBSD-src-63ec2c0ae9b44c5394bae5d6ee7fea5be9659585.tar.gz
A Major staticize sweep. Generates a couple of warnings that I'll deal
with later. A number of unused vars removed. A number of unused procs removed or #ifdefed.
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/ktrace.h6
-rw-r--r--sys/sys/lockf.h12
-rw-r--r--sys/sys/mbuf.h3
-rw-r--r--sys/sys/signalvar.h5
-rw-r--r--sys/sys/snoop.h1
-rw-r--r--sys/sys/socketvar.h5
-rw-r--r--sys/sys/tty.h4
7 files changed, 7 insertions, 29 deletions
diff --git a/sys/sys/ktrace.h b/sys/sys/ktrace.h
index 15f14b5..6ae1af3 100644
--- a/sys/sys/ktrace.h
+++ b/sys/sys/ktrace.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)ktrace.h 8.1 (Berkeley) 6/2/93
- * $Id: ktrace.h,v 1.6 1994/10/02 17:24:48 phk Exp $
+ * $Id: ktrace.h,v 1.7 1995/03/16 18:16:19 bde Exp $
*/
#ifndef _SYS_KTRACE_H_
@@ -152,10 +152,6 @@ struct ktr_csw {
#ifdef KERNEL
void ktrnamei __P((struct vnode *,char *));
void ktrcsw __P((struct vnode *,int,int));
-void ktrwrite __P((struct vnode *, struct ktr_header *));
-int ktrcanset __P((struct proc *,struct proc *));
-int ktrsetchildren __P((struct proc *,struct proc *,int,int,struct vnode *));
-int ktrops __P((struct proc *,struct proc *,int,int,struct vnode *));
void ktrpsig __P((struct vnode *,int, sig_t, int, int));
void ktrgenio __P((struct vnode *,int, enum uio_rw,struct iovec *,int,int));
void ktrsyscall __P((struct vnode *, int, int narg, int args[]));
diff --git a/sys/sys/lockf.h b/sys/sys/lockf.h
index 09b2b68..fa3b0b8 100644
--- a/sys/sys/lockf.h
+++ b/sys/sys/lockf.h
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)lockf.h 8.1 (Berkeley) 6/11/93
- * $Id: lockf.h,v 1.1 1994/08/08 17:30:58 davidg Exp $
+ * $Id: lockf.h,v 1.2 1994/08/21 04:41:50 paul Exp $
*/
#ifndef _SYS_LOCKF_H_
@@ -62,16 +62,6 @@ struct lockf {
__BEGIN_DECLS
int lf_advlock __P((struct vop_advlock_args *, struct lockf **, u_quad_t));
-void lf_addblock __P((struct lockf *, struct lockf *));
-int lf_clearlock __P((struct lockf *));
-int lf_findoverlap __P((struct lockf *,
- struct lockf *, int, struct lockf ***, struct lockf **));
-struct lockf *
- lf_getblock __P((struct lockf *));
-int lf_getlock __P((struct lockf *, struct flock *));
-int lf_setlock __P((struct lockf *));
-void lf_split __P((struct lockf *, struct lockf *));
-void lf_wakelock __P((struct lockf *));
__END_DECLS
#ifdef LOCKF_DEBUG
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h
index ffa53be..4660543 100644
--- a/sys/sys/mbuf.h
+++ b/sys/sys/mbuf.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)mbuf.h 8.3 (Berkeley) 1/21/94
- * $Id: mbuf.h,v 1.10 1995/07/29 11:42:46 bde Exp $
+ * $Id: mbuf.h,v 1.11 1995/11/21 12:55:12 bde Exp $
*/
#ifndef _SYS_MBUF_H_
@@ -373,7 +373,6 @@ int m_clalloc __P((int, int));
void m_copyback __P((struct mbuf *, int, int, caddr_t));
struct mbuf *m_retry __P((int, int));
struct mbuf *m_retryhdr __P((int, int));
-void m_reclaim __P((void));
struct mbuf *m_get __P((int, int));
struct mbuf *m_gethdr __P((int, int));
struct mbuf *m_getclr __P((int, int));
diff --git a/sys/sys/signalvar.h b/sys/sys/signalvar.h
index 7fccb38..2c8c72d 100644
--- a/sys/sys/signalvar.h
+++ b/sys/sys/signalvar.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)signalvar.h 8.3 (Berkeley) 1/4/94
- * $Id: signalvar.h,v 1.6 1995/10/19 19:16:01 swallace Exp $
+ * $Id: signalvar.h,v 1.7 1995/11/19 00:51:29 bde Exp $
*/
#ifndef _SYS_SIGNALVAR_H_ /* tmp for user.h */
@@ -104,7 +104,7 @@ struct sigacts {
#define SA_CANTMASK 0x40 /* non-maskable, catchable */
#ifdef SIGPROP
-int sigprop[NSIG + 1] = {
+static int sigprop[NSIG + 1] = {
0, /* unused */
SA_KILL, /* SIGHUP */
SA_KILL, /* SIGINT */
@@ -151,7 +151,6 @@ int sigprop[NSIG + 1] = {
/*
* Machine-independent functions:
*/
-int coredump __P((struct proc *p));
void execsigs __P((struct proc *p));
void gsignal __P((int pgid, int sig));
int issig __P((struct proc *p));
diff --git a/sys/sys/snoop.h b/sys/sys/snoop.h
index 694d9fa..bc44b51 100644
--- a/sys/sys/snoop.h
+++ b/sys/sys/snoop.h
@@ -70,7 +70,6 @@ struct snoop {
#ifdef KERNEL
/* XXX several wrong storage classes and types here. */
-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));
diff --git a/sys/sys/socketvar.h b/sys/sys/socketvar.h
index 56ccddd..6ad5bc2 100644
--- a/sys/sys/socketvar.h
+++ b/sys/sys/socketvar.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)socketvar.h 8.1 (Berkeley) 6/2/93
- * $Id: socketvar.h,v 1.6 1995/05/30 08:14:33 rgrimes Exp $
+ * $Id: socketvar.h,v 1.7 1995/11/21 12:55:14 bde Exp $
*/
#ifndef _SYS_SOCKETVAR_H_
@@ -205,11 +205,8 @@ extern char netio[], netcon[], netcls[];
/*
* File operations on sockets.
*/
-int soo_read __P((struct file *fp, struct uio *uio, struct ucred *cred));
-int soo_write __P((struct file *fp, struct uio *uio, struct ucred *cred));
int soo_ioctl __P((struct file *fp, int com, caddr_t data, struct proc *p));
int soo_select __P((struct file *fp, int which, struct proc *p));
-int soo_close __P((struct file *fp, struct proc *p));
int soo_stat __P((struct socket *, struct stat *));
/*
diff --git a/sys/sys/tty.h b/sys/sys/tty.h
index 5023bcd..4ccc24d 100644
--- a/sys/sys/tty.h
+++ b/sys/sys/tty.h
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)tty.h 8.6 (Berkeley) 1/21/94
- * $Id: tty.h,v 1.31 1995/07/31 22:50:08 bde Exp $
+ * $Id: tty.h,v 1.32 1995/12/08 11:19:32 julian Exp $
*/
#ifndef _SYS_TTY_H_
@@ -235,7 +235,6 @@ void termioschars __P((struct termios *t));
int tputchar __P((int c, struct tty *tp));
int ttioctl __P((struct tty *tp, int com, void *data, int flag));
int ttread __P((struct tty *tp, struct uio *uio, int flag));
-void ttrstrt __P((void *tp));
int ttyselect __P((struct tty *tp, int rw, struct proc *p));
int ttselect __P((dev_t dev, int rw, struct proc *p));
void ttsetwater __P((struct tty *tp));
@@ -257,7 +256,6 @@ int ttyopen __P((dev_t device, struct tty *tp));
int ttysleep __P((struct tty *tp,
void *chan, int pri, char *wmesg, int timeout));
int ttywait __P((struct tty *tp));
-int ttywflush __P((struct tty *tp));
struct tty *ttymalloc __P((void));
void ttyfree __P((struct tty *));
OpenPOWER on IntegriCloud