mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-22 17:54:52 +00:00
Completed function declarations and/or added prototypes.
This commit is contained in:
parent
03d7755c08
commit
98d938220c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=12577
|
@ -46,6 +46,8 @@
|
|||
|
||||
static struct snoop snoopsw[NSNP];
|
||||
|
||||
static struct tty *devtotty __P((dev_t dev));
|
||||
|
||||
static struct tty *
|
||||
devtotty (dev)
|
||||
dev_t dev;
|
||||
|
|
|
@ -36,12 +36,13 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)kern_descrip.c 8.6 (Berkeley) 4/19/94
|
||||
* $Id: kern_descrip.c,v 1.15 1995/11/29 10:48:21 julian Exp $
|
||||
* $Id: kern_descrip.c,v 1.16 1995/11/29 14:40:32 julian Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/sysproto.h>
|
||||
#include <sys/conf.h>
|
||||
#include <sys/filedesc.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/sysctl.h>
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)kern_ktrace.c 8.2 (Berkeley) 9/23/93
|
||||
* $Id: kern_ktrace.c,v 1.6 1995/05/30 08:05:28 rgrimes Exp $
|
||||
* $Id: kern_ktrace.c,v 1.7 1995/11/12 06:42:56 bde Exp $
|
||||
*/
|
||||
|
||||
#ifdef KTRACE
|
||||
|
@ -47,6 +47,8 @@
|
|||
#include <sys/malloc.h>
|
||||
#include <sys/syslog.h>
|
||||
|
||||
extern struct ktr_header *ktrgetheader __P((int type));
|
||||
|
||||
struct ktr_header *
|
||||
ktrgetheader(type)
|
||||
int type;
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* 4. Modifications may be freely made to this file if the above conditions
|
||||
* are met.
|
||||
*
|
||||
* $Id: kern_physio.c,v 1.12 1995/09/08 11:08:36 bde Exp $
|
||||
* $Id: kern_physio.c,v 1.13 1995/11/28 02:40:38 peter Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -26,7 +26,7 @@
|
|||
#include <sys/proc.h>
|
||||
#include <vm/vm.h>
|
||||
|
||||
static void physwakeup();
|
||||
static void physwakeup __P((struct buf *bp));
|
||||
|
||||
int
|
||||
physio(strategy, bp, dev, rw, minp, uio)
|
||||
|
@ -34,7 +34,7 @@ physio(strategy, bp, dev, rw, minp, uio)
|
|||
struct buf *bp;
|
||||
dev_t dev;
|
||||
int rw;
|
||||
u_int (*minp)();
|
||||
u_int (*minp) __P((struct buf *bp));
|
||||
struct uio *uio;
|
||||
{
|
||||
int i;
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)kern_proc.c 8.4 (Berkeley) 1/4/94
|
||||
* $Id: kern_proc.c,v 1.10 1995/05/30 08:05:37 rgrimes Exp $
|
||||
* $Id: kern_proc.c,v 1.11 1995/11/14 09:16:27 phk Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -73,6 +73,8 @@ struct uidinfo {
|
|||
u_long uihash; /* size of hash table - 1 */
|
||||
#define UIHASH(uid) ((uid) & uihash)
|
||||
|
||||
static void orphanpg __P((struct pgrp *pg));
|
||||
|
||||
/*
|
||||
* Allocate a hash table.
|
||||
*/
|
||||
|
@ -323,8 +325,6 @@ pgdelete(pgrp)
|
|||
FREE(pgrp, M_PGRP);
|
||||
}
|
||||
|
||||
static void orphanpg();
|
||||
|
||||
/*
|
||||
* Adjust pgrp jobc counters when specified process changes process group.
|
||||
* We count the number of processes in each process group that "qualify"
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)kern_synch.c 8.6 (Berkeley) 1/21/94
|
||||
* $Id: kern_synch.c,v 1.13 1995/09/09 18:10:04 davidg Exp $
|
||||
* $Id: kern_synch.c,v 1.14 1995/12/02 17:10:35 bde Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -60,7 +60,8 @@ SYSINIT(runqueue, SI_SUB_RUN_QUEUE, SI_ORDER_FIRST, rqinit, NULL)
|
|||
u_char curpriority; /* usrpri of curproc */
|
||||
int lbolt; /* once a second sleep address */
|
||||
|
||||
void endtsleep __P((void *));
|
||||
extern void endtsleep __P((void *));
|
||||
extern void updatepri __P((struct proc *p));
|
||||
|
||||
/*
|
||||
* Force switch among equal priority processes every 100ms.
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)kern_xxx.c 8.2 (Berkeley) 11/14/93
|
||||
* $Id: kern_xxx.c,v 1.19 1995/11/14 09:10:45 phk Exp $
|
||||
* $Id: kern_xxx.c,v 1.20 1995/11/20 12:14:40 phk Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -46,7 +46,7 @@
|
|||
#include <sys/signalvar.h>
|
||||
|
||||
/* This implements a "TEXT_SET" for cleanup functions */
|
||||
|
||||
static void dummy_cleanup __P((void));
|
||||
static void
|
||||
dummy_cleanup() {}
|
||||
TEXT_SET(cleanup_set, dummy_cleanup);
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)subr_log.c 8.1 (Berkeley) 6/10/93
|
||||
* $Id: subr_log.c,v 1.11 1995/11/29 10:48:25 julian Exp $
|
||||
* $Id: subr_log.c,v 1.12 1995/11/29 14:40:35 julian Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -40,6 +40,7 @@
|
|||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/conf.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/vnode.h>
|
||||
#include <sys/ioctl.h>
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
* functioning of this software, nor does the author assume any responsibility
|
||||
* for damages incurred with its use.
|
||||
*
|
||||
* $Id: subr_rlist.c,v 1.10 1995/05/30 08:05:54 rgrimes Exp $
|
||||
* $Id: subr_rlist.c,v 1.11 1995/10/21 08:38:13 davidg Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -74,6 +74,8 @@ static int rlist_count=0, rlist_desired=0;
|
|||
static struct rlist *rlfree;
|
||||
int rlist_active;
|
||||
|
||||
static struct rlist *rlist_malloc __P((void));
|
||||
|
||||
static struct rlist *
|
||||
rlist_malloc()
|
||||
{
|
||||
|
|
|
@ -46,6 +46,8 @@
|
|||
|
||||
static struct snoop snoopsw[NSNP];
|
||||
|
||||
static struct tty *devtotty __P((dev_t dev));
|
||||
|
||||
static struct tty *
|
||||
devtotty (dev)
|
||||
dev_t dev;
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)uipc_mbuf.c 8.2 (Berkeley) 1/4/94
|
||||
* $Id: uipc_mbuf.c,v 1.13 1995/10/29 15:31:08 phk Exp $
|
||||
* $Id: uipc_mbuf.c,v 1.14 1995/12/02 17:10:41 bde Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -626,7 +626,7 @@ m_devget(buf, totlen, off0, ifp, copy)
|
|||
char *buf;
|
||||
int totlen, off0;
|
||||
struct ifnet *ifp;
|
||||
void (*copy)();
|
||||
void (*copy) __P((char *from, caddr_t to, u_int len));
|
||||
{
|
||||
register struct mbuf *m;
|
||||
struct mbuf *top = 0, **mp = ⊤
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)uipc_proto.c 8.1 (Berkeley) 6/10/93
|
||||
* $Id: uipc_proto.c,v 1.3 1995/05/11 00:13:05 wollman Exp $
|
||||
* $Id: uipc_proto.c,v 1.4 1995/08/16 16:13:25 bde Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -39,14 +39,14 @@
|
|||
#include <sys/protosw.h>
|
||||
#include <sys/domain.h>
|
||||
#include <sys/mbuf.h>
|
||||
#include <sys/un.h>
|
||||
|
||||
#include <net/raw_cb.h>
|
||||
|
||||
/*
|
||||
* Definitions of protocols supported in the LOCAL domain.
|
||||
*/
|
||||
|
||||
int uipc_usrreq(), raw_usrreq();
|
||||
void raw_init(),raw_input(),raw_ctlinput();
|
||||
|
||||
struct protosw localsw[] = {
|
||||
{ SOCK_STREAM, &localdomain, 0, PR_CONNREQUIRED|PR_WANTRCVD|PR_RIGHTS,
|
||||
0, 0, 0, 0,
|
||||
|
@ -65,8 +65,6 @@ struct protosw localsw[] = {
|
|||
}
|
||||
};
|
||||
|
||||
int unp_externalize(), unp_dispose();
|
||||
|
||||
struct domain localdomain =
|
||||
{ AF_LOCAL, "local", 0, unp_externalize, unp_dispose,
|
||||
localsw, &localsw[sizeof(localsw)/sizeof(localsw[0])] };
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* 5. Modifications may be freely made to this file if the above conditions
|
||||
* are met.
|
||||
*
|
||||
* $Id: vfs_bio.c,v 1.71 1995/11/19 19:54:22 dyson Exp $
|
||||
* $Id: vfs_bio.c,v 1.72 1995/12/02 17:10:47 bde Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -64,6 +64,7 @@ SYSINIT_KT(update, SI_SUB_KTHREAD_UPDATE, SI_ORDER_FIRST, kproc_start, &up_kp)
|
|||
struct buf *buf; /* buffer header pool */
|
||||
struct swqueue bswlist;
|
||||
|
||||
int count_lock_queue __P((void));
|
||||
void vm_hold_free_pages(struct buf * bp, vm_offset_t from, vm_offset_t to);
|
||||
void vm_hold_load_pages(struct buf * bp, vm_offset_t from, vm_offset_t to);
|
||||
void vfs_clean_pages(struct buf * bp);
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)vfs_subr.c 8.13 (Berkeley) 4/18/94
|
||||
* $Id: vfs_subr.c,v 1.43 1995/11/20 12:42:11 phk Exp $
|
||||
* $Id: vfs_subr.c,v 1.44 1995/11/29 11:28:00 phk Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -65,6 +65,12 @@
|
|||
|
||||
#include <miscfs/specfs/specdev.h>
|
||||
|
||||
#ifdef DDB
|
||||
extern void printlockedvnodes __P((void));
|
||||
#endif
|
||||
extern void vclean __P((struct vnode *vp, int flags));
|
||||
extern void vfs_unmountroot __P((struct mount *rootfs));
|
||||
|
||||
enum vtype iftovt_tab[16] = {
|
||||
VNON, VFIFO, VCHR, VNON, VDIR, VNON, VBLK, VNON,
|
||||
VREG, VNON, VLNK, VNON, VSOCK, VNON, VNON, VBAD,
|
||||
|
@ -91,6 +97,11 @@ struct mntlist mountlist; /* mounted filesystem list */
|
|||
int desiredvnodes;
|
||||
SYSCTL_INT(_kern, KERN_MAXVNODES, maxvnodes, CTLFLAG_RD, &desiredvnodes, 0, "");
|
||||
|
||||
static void vfs_free_addrlist __P((struct netexport *nep));
|
||||
static int vfs_free_netcred __P((struct radix_node *rn, void *w));
|
||||
static int vfs_hang_addrlist __P((struct mount *mp, struct netexport *nep,
|
||||
struct export_args *argp));
|
||||
|
||||
/*
|
||||
* Initialize the vnode management data structures.
|
||||
*/
|
||||
|
@ -312,7 +323,6 @@ vattr_null(vap)
|
|||
* Routines having to do with the management of the vnode table.
|
||||
*/
|
||||
extern vop_t **dead_vnodeop_p;
|
||||
extern void vclean();
|
||||
|
||||
/*
|
||||
* Return the next vnode from the free list.
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)vfs_init.c 8.3 (Berkeley) 1/4/94
|
||||
* $Id: vfs_init.c,v 1.14 1995/11/20 12:42:09 phk Exp $
|
||||
* $Id: vfs_init.c,v 1.15 1995/12/02 17:10:53 bde Exp $
|
||||
*/
|
||||
|
||||
|
||||
|
@ -56,6 +56,8 @@
|
|||
#include <vm/vm.h>
|
||||
#include <sys/sysctl.h>
|
||||
|
||||
extern void vfs_op_init __P((void));
|
||||
|
||||
static void vfsinit __P((void *));
|
||||
SYSINIT(vfs, SI_SUB_VFS, SI_ORDER_FIRST, vfsinit, NULL)
|
||||
|
||||
|
@ -229,7 +231,6 @@ vfs_op_init()
|
|||
*/
|
||||
extern struct vnodeops dead_vnodeops;
|
||||
extern struct vnodeops spec_vnodeops;
|
||||
extern void vclean();
|
||||
struct vattr va_null;
|
||||
|
||||
/*
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)vfs_subr.c 8.13 (Berkeley) 4/18/94
|
||||
* $Id: vfs_subr.c,v 1.43 1995/11/20 12:42:11 phk Exp $
|
||||
* $Id: vfs_subr.c,v 1.44 1995/11/29 11:28:00 phk Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -65,6 +65,12 @@
|
|||
|
||||
#include <miscfs/specfs/specdev.h>
|
||||
|
||||
#ifdef DDB
|
||||
extern void printlockedvnodes __P((void));
|
||||
#endif
|
||||
extern void vclean __P((struct vnode *vp, int flags));
|
||||
extern void vfs_unmountroot __P((struct mount *rootfs));
|
||||
|
||||
enum vtype iftovt_tab[16] = {
|
||||
VNON, VFIFO, VCHR, VNON, VDIR, VNON, VBLK, VNON,
|
||||
VREG, VNON, VLNK, VNON, VSOCK, VNON, VNON, VBAD,
|
||||
|
@ -91,6 +97,11 @@ struct mntlist mountlist; /* mounted filesystem list */
|
|||
int desiredvnodes;
|
||||
SYSCTL_INT(_kern, KERN_MAXVNODES, maxvnodes, CTLFLAG_RD, &desiredvnodes, 0, "");
|
||||
|
||||
static void vfs_free_addrlist __P((struct netexport *nep));
|
||||
static int vfs_free_netcred __P((struct radix_node *rn, void *w));
|
||||
static int vfs_hang_addrlist __P((struct mount *mp, struct netexport *nep,
|
||||
struct export_args *argp));
|
||||
|
||||
/*
|
||||
* Initialize the vnode management data structures.
|
||||
*/
|
||||
|
@ -312,7 +323,6 @@ vattr_null(vap)
|
|||
* Routines having to do with the management of the vnode table.
|
||||
*/
|
||||
extern vop_t **dead_vnodeop_p;
|
||||
extern void vclean();
|
||||
|
||||
/*
|
||||
* Return the next vnode from the free list.
|
||||
|
|
Loading…
Reference in a new issue