Staticized.

This commit is contained in:
Bruce Evans 1997-11-22 08:35:46 +00:00
parent 2ea354c3bb
commit cb451ebdbd
10 changed files with 50 additions and 50 deletions

View File

@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* $Id: kern_conf.c,v 1.21 1997/09/21 22:20:12 julian Exp $ * $Id: kern_conf.c,v 1.22 1997/09/27 13:39:03 kato Exp $
*/ */
#include <sys/param.h> #include <sys/param.h>
@ -48,7 +48,8 @@ int nblkdev = NUMBDEV;
struct cdevsw *cdevsw[NUMCDEV]; struct cdevsw *cdevsw[NUMCDEV];
int nchrdev = NUMCDEV; int nchrdev = NUMCDEV;
static void cdevsw_make __P((struct bdevsw *from));
static int isdisk __P((dev_t dev, int type));
/* /*
* Routine to determine if a device is a disk. * Routine to determine if a device is a disk.
@ -56,7 +57,7 @@ int nchrdev = NUMCDEV;
* KLUDGE XXX add flags to cdevsw entries for disks XXX * KLUDGE XXX add flags to cdevsw entries for disks XXX
* A minimal stub routine can always return 0. * A minimal stub routine can always return 0.
*/ */
int static int
isdisk(dev, type) isdisk(dev, type)
dev_t dev; dev_t dev;
int type; int type;
@ -168,7 +169,7 @@ ADDENTRY(cdevsw, nchrdev,cdevsw_ALLOCSTART)
* than specifying it by hand. * than specifying it by hand.
*/ */
void static void
cdevsw_make(struct bdevsw *from) cdevsw_make(struct bdevsw *from)
{ {
struct cdevsw *to = from->d_cdev; struct cdevsw *to = from->d_cdev;

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* @(#)kern_synch.c 8.9 (Berkeley) 5/19/95 * @(#)kern_synch.c 8.9 (Berkeley) 5/19/95
* $Id: kern_synch.c,v 1.39 1997/09/21 22:00:14 gibbs Exp $ * $Id: kern_synch.c,v 1.40 1997/11/21 11:36:56 bde Exp $
*/ */
#include "opt_ktrace.h" #include "opt_ktrace.h"
@ -64,8 +64,8 @@ SYSINIT(runqueue, SI_SUB_RUN_QUEUE, SI_ORDER_FIRST, rqinit, NULL)
u_char curpriority; /* usrpri of curproc */ u_char curpriority; /* usrpri of curproc */
int lbolt; /* once a second sleep address */ int lbolt; /* once a second sleep address */
extern void endtsleep __P((void *)); static void endtsleep __P((void *));
extern void updatepri __P((struct proc *p)); static void updatepri __P((struct proc *p));
#define MAXIMUM_SCHEDULE_QUANTUM (1000000) /* arbitrary limit */ #define MAXIMUM_SCHEDULE_QUANTUM (1000000) /* arbitrary limit */
#ifndef DEFAULT_SCHEDULE_QUANTUM #ifndef DEFAULT_SCHEDULE_QUANTUM
@ -176,7 +176,7 @@ roundrobin(arg)
#define decay_cpu(loadfac, cpu) (((loadfac) * (cpu)) / ((loadfac) + FSCALE)) #define decay_cpu(loadfac, cpu) (((loadfac) * (cpu)) / ((loadfac) + FSCALE))
/* decay 95% of `p_pctcpu' in 60 seconds; see CCPU_SHIFT before changing */ /* decay 95% of `p_pctcpu' in 60 seconds; see CCPU_SHIFT before changing */
fixpt_t ccpu = 0.95122942450071400909 * FSCALE; /* exp(-1/20) */ static fixpt_t ccpu = 0.95122942450071400909 * FSCALE; /* exp(-1/20) */
/* /*
* If `ccpu' is not equal to `exp(-1/20)' and you still want to use the * If `ccpu' is not equal to `exp(-1/20)' and you still want to use the
@ -265,7 +265,7 @@ schedcpu(arg)
* For all load averages >= 1 and max p_estcpu of 255, sleeping for at * For all load averages >= 1 and max p_estcpu of 255, sleeping for at
* least six times the loadfactor will decay p_estcpu to zero. * least six times the loadfactor will decay p_estcpu to zero.
*/ */
void static void
updatepri(p) updatepri(p)
register struct proc *p; register struct proc *p;
{ {
@ -289,7 +289,7 @@ updatepri(p)
* of 2. Shift right by 8, i.e. drop the bottom 256 worth. * of 2. Shift right by 8, i.e. drop the bottom 256 worth.
*/ */
#define TABLESIZE 128 #define TABLESIZE 128
TAILQ_HEAD(slpquehead, proc) slpque[TABLESIZE]; static TAILQ_HEAD(slpquehead, proc) slpque[TABLESIZE];
#define LOOKUP(x) (((long)(x) >> 8) & (TABLESIZE - 1)) #define LOOKUP(x) (((long)(x) >> 8) & (TABLESIZE - 1))
/* /*
@ -428,7 +428,7 @@ resume:
* set timeout flag and undo the sleep. If proc * set timeout flag and undo the sleep. If proc
* is stopped, just unsleep so it will remain stopped. * is stopped, just unsleep so it will remain stopped.
*/ */
void static void
endtsleep(arg) endtsleep(arg)
void *arg; void *arg;
{ {

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95 * @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
* $Id: vfs_subr.c,v 1.112 1997/11/07 08:53:11 phk Exp $ * $Id: vfs_subr.c,v 1.113 1997/11/12 05:42:15 julian Exp $
*/ */
/* /*
@ -70,12 +70,15 @@
static MALLOC_DEFINE(M_NETADDR, "Export Host", "Export host address structure"); static MALLOC_DEFINE(M_NETADDR, "Export Host", "Export host address structure");
static void insmntque __P((struct vnode *vp, struct mount *mp));
#ifdef DDB #ifdef DDB
extern void printlockedvnodes __P((void)); static void printlockedvnodes __P((void));
#endif #endif
static void vbusy __P((struct vnode *));
static void vclean __P((struct vnode *vp, int flags, struct proc *p)); static void vclean __P((struct vnode *vp, int flags, struct proc *p));
static void vfree __P((struct vnode *));
static void vgonel __P((struct vnode *vp, struct proc *p)); static void vgonel __P((struct vnode *vp, struct proc *p));
unsigned long numvnodes; static unsigned long numvnodes;
SYSCTL_INT(_debug, OID_AUTO, numvnodes, CTLFLAG_RD, &numvnodes, 0, ""); SYSCTL_INT(_debug, OID_AUTO, numvnodes, CTLFLAG_RD, &numvnodes, 0, "");
static void vputrele __P((struct vnode *vp, int put)); static void vputrele __P((struct vnode *vp, int put));
@ -440,7 +443,7 @@ getnewvnode(tag, mp, vops, vpp)
/* /*
* Move a vnode from one mount queue to another. * Move a vnode from one mount queue to another.
*/ */
void static void
insmntque(vp, mp) insmntque(vp, mp)
register struct vnode *vp; register struct vnode *vp;
register struct mount *mp; register struct mount *mp;
@ -1517,7 +1520,7 @@ vprint(label, vp)
* List all of the locked vnodes in the system. * List all of the locked vnodes in the system.
* Called when debugging the kernel. * Called when debugging the kernel.
*/ */
void static void
printlockedvnodes() printlockedvnodes()
{ {
struct proc *p = curproc; /* XXX */ struct proc *p = curproc; /* XXX */
@ -1622,8 +1625,7 @@ sysctl_ovfs_conf SYSCTL_HANDLER_ARGS
#endif /* !NO_COMPAT_PRELITE2 */ #endif /* !NO_COMPAT_PRELITE2 */
int kinfo_vdebug = 1; static volatile int kinfo_vdebug = 1;
int kinfo_vgetfailed;
#if 0 #if 0
#define KINFO_VNODESLOP 10 #define KINFO_VNODESLOP 10
@ -2083,7 +2085,7 @@ retn:
return error; return error;
} }
void static void
vfree(vp) vfree(vp)
struct vnode *vp; struct vnode *vp;
{ {
@ -2099,7 +2101,7 @@ vfree(vp)
vp->v_flag |= VFREE; vp->v_flag |= VFREE;
} }
void static void
vbusy(vp) vbusy(vp)
struct vnode *vp; struct vnode *vp;
{ {

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95 * @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
* $Id: vfs_subr.c,v 1.112 1997/11/07 08:53:11 phk Exp $ * $Id: vfs_subr.c,v 1.113 1997/11/12 05:42:15 julian Exp $
*/ */
/* /*
@ -70,12 +70,15 @@
static MALLOC_DEFINE(M_NETADDR, "Export Host", "Export host address structure"); static MALLOC_DEFINE(M_NETADDR, "Export Host", "Export host address structure");
static void insmntque __P((struct vnode *vp, struct mount *mp));
#ifdef DDB #ifdef DDB
extern void printlockedvnodes __P((void)); static void printlockedvnodes __P((void));
#endif #endif
static void vbusy __P((struct vnode *));
static void vclean __P((struct vnode *vp, int flags, struct proc *p)); static void vclean __P((struct vnode *vp, int flags, struct proc *p));
static void vfree __P((struct vnode *));
static void vgonel __P((struct vnode *vp, struct proc *p)); static void vgonel __P((struct vnode *vp, struct proc *p));
unsigned long numvnodes; static unsigned long numvnodes;
SYSCTL_INT(_debug, OID_AUTO, numvnodes, CTLFLAG_RD, &numvnodes, 0, ""); SYSCTL_INT(_debug, OID_AUTO, numvnodes, CTLFLAG_RD, &numvnodes, 0, "");
static void vputrele __P((struct vnode *vp, int put)); static void vputrele __P((struct vnode *vp, int put));
@ -440,7 +443,7 @@ getnewvnode(tag, mp, vops, vpp)
/* /*
* Move a vnode from one mount queue to another. * Move a vnode from one mount queue to another.
*/ */
void static void
insmntque(vp, mp) insmntque(vp, mp)
register struct vnode *vp; register struct vnode *vp;
register struct mount *mp; register struct mount *mp;
@ -1517,7 +1520,7 @@ vprint(label, vp)
* List all of the locked vnodes in the system. * List all of the locked vnodes in the system.
* Called when debugging the kernel. * Called when debugging the kernel.
*/ */
void static void
printlockedvnodes() printlockedvnodes()
{ {
struct proc *p = curproc; /* XXX */ struct proc *p = curproc; /* XXX */
@ -1622,8 +1625,7 @@ sysctl_ovfs_conf SYSCTL_HANDLER_ARGS
#endif /* !NO_COMPAT_PRELITE2 */ #endif /* !NO_COMPAT_PRELITE2 */
int kinfo_vdebug = 1; static volatile int kinfo_vdebug = 1;
int kinfo_vgetfailed;
#if 0 #if 0
#define KINFO_VNODESLOP 10 #define KINFO_VNODESLOP 10
@ -2083,7 +2085,7 @@ retn:
return error; return error;
} }
void static void
vfree(vp) vfree(vp)
struct vnode *vp; struct vnode *vp;
{ {
@ -2099,7 +2101,7 @@ vfree(vp)
vp->v_flag |= VFREE; vp->v_flag |= VFREE;
} }
void static void
vbusy(vp) vbusy(vp)
struct vnode *vp; struct vnode *vp;
{ {

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* @(#)conf.h 8.5 (Berkeley) 1/9/95 * @(#)conf.h 8.5 (Berkeley) 1/9/95
* $Id: conf.h,v 1.35 1997/09/14 02:25:40 peter Exp $ * $Id: conf.h,v 1.36 1997/09/27 13:39:46 kato Exp $
*/ */
#ifndef _SYS_CONF_H_ #ifndef _SYS_CONF_H_
@ -228,10 +228,8 @@ l_write_t l_nowrite;
int bdevsw_add __P((dev_t *descrip,struct bdevsw *new,struct bdevsw **old)); int bdevsw_add __P((dev_t *descrip,struct bdevsw *new,struct bdevsw **old));
int cdevsw_add __P((dev_t *descrip,struct cdevsw *new,struct cdevsw **old)); int cdevsw_add __P((dev_t *descrip,struct cdevsw *new,struct cdevsw **old));
void cdevsw_make __P((struct bdevsw *from));
void bdevsw_add_generic __P((int bdev, int cdev, struct bdevsw *bdevsw)); void bdevsw_add_generic __P((int bdev, int cdev, struct bdevsw *bdevsw));
dev_t chrtoblk __P((dev_t dev)); dev_t chrtoblk __P((dev_t dev));
int isdisk __P((dev_t dev, int type));
int iskmemdev __P((dev_t dev)); int iskmemdev __P((dev_t dev));
int iszerodev __P((dev_t dev)); int iszerodev __P((dev_t dev));
void setconf __P((void)); void setconf __P((void));

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* @(#)conf.h 8.5 (Berkeley) 1/9/95 * @(#)conf.h 8.5 (Berkeley) 1/9/95
* $Id: conf.h,v 1.35 1997/09/14 02:25:40 peter Exp $ * $Id: conf.h,v 1.36 1997/09/27 13:39:46 kato Exp $
*/ */
#ifndef _SYS_CONF_H_ #ifndef _SYS_CONF_H_
@ -228,10 +228,8 @@ l_write_t l_nowrite;
int bdevsw_add __P((dev_t *descrip,struct bdevsw *new,struct bdevsw **old)); int bdevsw_add __P((dev_t *descrip,struct bdevsw *new,struct bdevsw **old));
int cdevsw_add __P((dev_t *descrip,struct cdevsw *new,struct cdevsw **old)); int cdevsw_add __P((dev_t *descrip,struct cdevsw *new,struct cdevsw **old));
void cdevsw_make __P((struct bdevsw *from));
void bdevsw_add_generic __P((int bdev, int cdev, struct bdevsw *bdevsw)); void bdevsw_add_generic __P((int bdev, int cdev, struct bdevsw *bdevsw));
dev_t chrtoblk __P((dev_t dev)); dev_t chrtoblk __P((dev_t dev));
int isdisk __P((dev_t dev, int type));
int iskmemdev __P((dev_t dev)); int iskmemdev __P((dev_t dev));
int iszerodev __P((dev_t dev)); int iszerodev __P((dev_t dev));
void setconf __P((void)); void setconf __P((void));

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* @(#)vnode.h 8.7 (Berkeley) 2/4/94 * @(#)vnode.h 8.7 (Berkeley) 2/4/94
* $Id: vnode.h,v 1.55 1997/10/26 20:54:57 phk Exp $ * $Id: vnode.h,v 1.56 1997/11/18 09:26:50 bde Exp $
*/ */
#ifndef _SYS_VNODE_H_ #ifndef _SYS_VNODE_H_
@ -453,14 +453,11 @@ void cache_purgevfs __P((struct mount *mp));
void cvtstat __P((struct stat *st, struct ostat *ost)); void cvtstat __P((struct stat *st, struct ostat *ost));
int getnewvnode __P((enum vtagtype tag, int getnewvnode __P((enum vtagtype tag,
struct mount *mp, vop_t **vops, struct vnode **vpp)); struct mount *mp, vop_t **vops, struct vnode **vpp));
void insmntque __P((struct vnode *vp, struct mount *mp));
int lease_check __P((struct vop_lease_args *ap)); int lease_check __P((struct vop_lease_args *ap));
void vattr_null __P((struct vattr *vap)); void vattr_null __P((struct vattr *vap));
void vbusy __P((struct vnode *));
int vcount __P((struct vnode *vp)); int vcount __P((struct vnode *vp));
void vdrop __P((struct vnode *)); void vdrop __P((struct vnode *));
int vfinddev __P((dev_t dev, enum vtype type, struct vnode **vpp)); int vfinddev __P((dev_t dev, enum vtype type, struct vnode **vpp));
void vfree __P((struct vnode *));
void vfs_opv_init __P((struct vnodeopv_desc **them)); void vfs_opv_init __P((struct vnodeopv_desc **them));
int vflush __P((struct mount *mp, struct vnode *skipvp, int flags)); int vflush __P((struct mount *mp, struct vnode *skipvp, int flags));
int vget __P((struct vnode *vp, int lockflag, struct proc *p)); int vget __P((struct vnode *vp, int lockflag, struct proc *p));

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* @(#)ffs_alloc.c 8.18 (Berkeley) 5/26/95 * @(#)ffs_alloc.c 8.18 (Berkeley) 5/26/95
* $Id: ffs_alloc.c,v 1.42 1997/11/07 08:53:34 phk Exp $ * $Id: ffs_alloc.c,v 1.43 1997/11/22 07:00:40 bde Exp $
*/ */
#include "opt_quota.h" #include "opt_quota.h"
@ -58,6 +58,9 @@ typedef ufs_daddr_t allocfcn_t __P((struct inode *ip, int cg, ufs_daddr_t bpref,
static ufs_daddr_t ffs_alloccg __P((struct inode *, int, ufs_daddr_t, int)); static ufs_daddr_t ffs_alloccg __P((struct inode *, int, ufs_daddr_t, int));
static ufs_daddr_t ffs_alloccgblk __P((struct fs *, struct cg *, ufs_daddr_t)); static ufs_daddr_t ffs_alloccgblk __P((struct fs *, struct cg *, ufs_daddr_t));
#ifdef DIAGNOSTIC
static int ffs_checkblk __P((struct inode *, ufs_daddr_t, long));
#endif
static void ffs_clusteracct __P((struct fs *, struct cg *, ufs_daddr_t, static void ffs_clusteracct __P((struct fs *, struct cg *, ufs_daddr_t,
int)); int));
#ifdef notyet #ifdef notyet
@ -335,7 +338,7 @@ nospace:
static int doasyncfree = 1; static int doasyncfree = 1;
SYSCTL_INT(_vfs_ffs, FFS_ASYNCFREE, doasyncfree, CTLFLAG_RW, &doasyncfree, 0, ""); SYSCTL_INT(_vfs_ffs, FFS_ASYNCFREE, doasyncfree, CTLFLAG_RW, &doasyncfree, 0, "");
int doreallocblks = 1; static int doreallocblks = 1;
SYSCTL_INT(_vfs_ffs, FFS_REALLOCBLKS, doreallocblks, CTLFLAG_RW, &doreallocblks, 0, ""); SYSCTL_INT(_vfs_ffs, FFS_REALLOCBLKS, doreallocblks, CTLFLAG_RW, &doreallocblks, 0, "");
static int prtrealloc = 0; static int prtrealloc = 0;
@ -1357,7 +1360,7 @@ ffs_blkfree(ip, bno, size)
* Verify allocation of a block or fragment. Returns true if block or * Verify allocation of a block or fragment. Returns true if block or
* fragment is allocated, false if it is free. * fragment is allocated, false if it is free.
*/ */
int static int
ffs_checkblk(ip, bno, size) ffs_checkblk(ip, bno, size)
struct inode *ip; struct inode *ip;
ufs_daddr_t bno; ufs_daddr_t bno;

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* @(#)ffs_extern.h 8.6 (Berkeley) 3/30/95 * @(#)ffs_extern.h 8.6 (Berkeley) 3/30/95
* $Id: ffs_extern.h,v 1.19 1997/10/16 10:49:22 phk Exp $ * $Id: ffs_extern.h,v 1.20 1997/10/16 20:32:34 phk Exp $
*/ */
#ifndef _UFS_FFS_EXTERN_H #ifndef _UFS_FFS_EXTERN_H
@ -93,11 +93,6 @@ int ffs_vfree __P((struct vnode *, ino_t, int));
int ffs_vget __P((struct mount *, ino_t, struct vnode **)); int ffs_vget __P((struct mount *, ino_t, struct vnode **));
int ffs_vptofh __P((struct vnode *, struct fid *)); int ffs_vptofh __P((struct vnode *, struct fid *));
#ifdef DIAGNOSTIC
int ffs_checkblk __P((struct inode *, ufs_daddr_t, long));
void ffs_checkoverlap __P((struct buf *, struct inode *));
#endif
extern vop_t **ffs_vnodeop_p; extern vop_t **ffs_vnodeop_p;
extern vop_t **ffs_specop_p; extern vop_t **ffs_specop_p;
extern vop_t **ffs_fifoop_p; extern vop_t **ffs_fifoop_p;

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* @(#)ffs_subr.c 8.5 (Berkeley) 3/21/95 * @(#)ffs_subr.c 8.5 (Berkeley) 3/21/95
* $Id: ffs_subr.c,v 1.13 1997/10/16 10:49:30 phk Exp $ * $Id: ffs_subr.c,v 1.14 1997/11/18 15:10:38 bde Exp $
*/ */
#include <sys/param.h> #include <sys/param.h>
@ -49,6 +49,10 @@
#include <ufs/ufs/inode.h> #include <ufs/ufs/inode.h>
#include <ufs/ffs/ffs_extern.h> #include <ufs/ffs/ffs_extern.h>
#if defined(KERNEL) && defined(DIAGNOSTIC) && defined(DDB)
static void ffs_checkoverlap __P((struct buf *, struct inode *));
#endif
/* /*
* Return buffer with the contents of block "offset" from the beginning of * Return buffer with the contents of block "offset" from the beginning of
* directory "ip". If "res" is non-zero, fill it in with a pointer to the * directory "ip". If "res" is non-zero, fill it in with a pointer to the
@ -121,7 +125,7 @@ ffs_fragacct(fs, fragmap, fraglist, cnt)
} }
#if defined(KERNEL) && defined(DIAGNOSTIC) && defined(DDB) #if defined(KERNEL) && defined(DIAGNOSTIC) && defined(DDB)
void static void
ffs_checkoverlap(bp, ip) ffs_checkoverlap(bp, ip)
struct buf *bp; struct buf *bp;
struct inode *ip; struct inode *ip;