summaryrefslogtreecommitdiffstats
path: root/sys/nfsserver
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-11-21 15:51:39 +0000
committerbde <bde@FreeBSD.org>1995-11-21 15:51:39 +0000
commit7eaa0694de90a85e4ba79d7bbd0b091b68f40446 (patch)
tree07867d742837802995d4d185e5550a62653edfe7 /sys/nfsserver
parented333cb4609025bdf5b75344de1a82fec380f121 (diff)
downloadFreeBSD-src-7eaa0694de90a85e4ba79d7bbd0b091b68f40446.zip
FreeBSD-src-7eaa0694de90a85e4ba79d7bbd0b091b68f40446.tar.gz
Completed function declarations, added prototypes and removed redundant
declarations.
Diffstat (limited to 'sys/nfsserver')
-rw-r--r--sys/nfsserver/nfs_srvsock.c113
-rw-r--r--sys/nfsserver/nfs_syscalls.c21
2 files changed, 96 insertions, 38 deletions
diff --git a/sys/nfsserver/nfs_srvsock.c b/sys/nfsserver/nfs_srvsock.c
index 427f304..3f476b2 100644
--- a/sys/nfsserver/nfs_srvsock.c
+++ b/sys/nfsserver/nfs_srvsock.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_socket.c 8.3 (Berkeley) 1/12/94
- * $Id: nfs_socket.c,v 1.9 1995/08/24 11:04:04 davidg Exp $
+ * $Id: nfs_socket.c,v 1.10 1995/10/29 15:33:04 phk Exp $
*/
/*
@@ -131,39 +131,90 @@ static int proct[NFS_NPROCS] = {
#define NFS_CWNDSCALE 256
#define NFS_MAXCWND (NFS_CWNDSCALE * 32)
static int nfs_backoff[8] = { 2, 4, 8, 16, 32, 64, 128, 256, };
-int nfs_sbwait();
-void nfs_disconnect(), nfs_realign(), nfsrv_wakenfsd(), nfs_sndunlock();
-void nfs_rcvunlock(), nqnfs_serverd(), nqnfs_clientlease();
int nfsrtton = 0;
struct nfsrtt nfsrtt;
-int nfsrv_null(),
- nfsrv_getattr(),
- nfsrv_setattr(),
- nfsrv_lookup(),
- nfsrv3_access(),
- nfsrv_readlink(),
- nfsrv_read(),
- nfsrv_write(),
- nfsrv_create(),
- nfsrv_mknod(),
- nfsrv_remove(),
- nfsrv_rename(),
- nfsrv_link(),
- nfsrv_symlink(),
- nfsrv_mkdir(),
- nfsrv_rmdir(),
- nfsrv_readdir(),
- nfsrv_readdirplus(),
- nfsrv_statfs(),
- nfsrv_fsinfo(),
- nfsrv_pathconf(),
- nfsrv_commit(),
- nfsrv_noop(),
- nqnfsrv_getlease(),
- nqnfsrv_vacated();
-
-int (*nfsrv3_procs[NFS_NPROCS])() = {
+extern void nfs_disconnect __P((struct nfsmount *nmp));
+extern void nfs_realign __P((struct mbuf *m, int hsiz));
+extern int nfs_receive __P((struct nfsreq *rep, struct mbuf **aname,
+ struct mbuf **mp));
+extern int nfs_reconnect __P((struct nfsreq *rep));
+extern int nfsrv3_access __P((struct nfsrv_descript *nfsd,
+ struct nfssvc_sock *slp, struct proc *procp,
+ struct mbuf **mrq));
+extern int nfsrv_commit __P((struct nfsrv_descript *nfsd,
+ struct nfssvc_sock *slp, struct proc *procp,
+ struct mbuf **mrq));
+extern int nfsrv_create __P((struct nfsrv_descript *nfsd,
+ struct nfssvc_sock *slp, struct proc *procp,
+ struct mbuf **mrq));
+extern int nfsrv_fsinfo __P((struct nfsrv_descript *nfsd,
+ struct nfssvc_sock *slp, struct proc *procp,
+ struct mbuf **mrq));
+extern int nfsrv_getattr __P((struct nfsrv_descript *nfsd,
+ struct nfssvc_sock *slp, struct proc *procp,
+ struct mbuf **mrq));
+extern int nfsrv_link __P((struct nfsrv_descript *nfsd,
+ struct nfssvc_sock *slp, struct proc *procp,
+ struct mbuf **mrq));
+extern int nfsrv_lookup __P((struct nfsrv_descript *nfsd,
+ struct nfssvc_sock *slp, struct proc *procp,
+ struct mbuf **mrq));
+extern int nfsrv_mkdir __P((struct nfsrv_descript *nfsd,
+ struct nfssvc_sock *slp, struct proc *procp,
+ struct mbuf **mrq));
+extern int nfsrv_mknod __P((struct nfsrv_descript *nfsd,
+ struct nfssvc_sock *slp, struct proc *procp,
+ struct mbuf **mrq));
+extern int nfsrv_noop __P((struct nfsrv_descript *nfsd,
+ struct nfssvc_sock *slp, struct proc *procp,
+ struct mbuf **mrq));
+extern int nfsrv_null __P((struct nfsrv_descript *nfsd,
+ struct nfssvc_sock *slp, struct proc *procp,
+ struct mbuf **mrq));
+extern int nfsrv_pathconf __P((struct nfsrv_descript *nfsd,
+ struct nfssvc_sock *slp, struct proc *procp,
+ struct mbuf **mrq));
+extern void nfsrv_rcv __P((struct socket *so, caddr_t arg, int waitflag));
+extern int nfsrv_read __P((struct nfsrv_descript *nfsd,
+ struct nfssvc_sock *slp, struct proc *procp,
+ struct mbuf **mrq));
+extern int nfsrv_readdir __P((struct nfsrv_descript *nfsd,
+ struct nfssvc_sock *slp, struct proc *procp,
+ struct mbuf **mrq));
+extern int nfsrv_readdirplus __P((struct nfsrv_descript *nfsd,
+ struct nfssvc_sock *slp,
+ struct proc *procp, struct mbuf **mrq));
+extern int nfsrv_readlink __P((struct nfsrv_descript *nfsd,
+ struct nfssvc_sock *slp, struct proc *procp,
+ struct mbuf **mrq));
+extern int nfsrv_remove __P((struct nfsrv_descript *nfsd,
+ struct nfssvc_sock *slp, struct proc *procp,
+ struct mbuf **mrq));
+extern int nfsrv_rename __P((struct nfsrv_descript *nfsd,
+ struct nfssvc_sock *slp, struct proc *procp,
+ struct mbuf **mrq));
+extern int nfsrv_rmdir __P((struct nfsrv_descript *nfsd,
+ struct nfssvc_sock *slp, struct proc *procp,
+ struct mbuf **mrq));
+extern int nfsrv_setattr __P((struct nfsrv_descript *nfsd,
+ struct nfssvc_sock *slp, struct proc *procp,
+ struct mbuf **mrq));
+extern int nfsrv_statfs __P((struct nfsrv_descript *nfsd,
+ struct nfssvc_sock *slp, struct proc *procp,
+ struct mbuf **mrq));
+extern int nfsrv_symlink __P((struct nfsrv_descript *nfsd,
+ struct nfssvc_sock *slp, struct proc *procp,
+ struct mbuf **mrq));
+extern void nfsrv_wakenfsd __P((struct nfssvc_sock *slp));
+extern int nfsrv_write __P((struct nfsrv_descript *nfsd,
+ struct nfssvc_sock *slp, struct proc *procp,
+ struct mbuf **mrq));
+
+int (*nfsrv3_procs[NFS_NPROCS]) __P((struct nfsrv_descript *nd,
+ struct nfssvc_sock *slp,
+ struct proc *procp,
+ struct mbuf **mreqp)) = {
nfsrv_null,
nfsrv_getattr,
nfsrv_setattr,
diff --git a/sys/nfsserver/nfs_syscalls.c b/sys/nfsserver/nfs_syscalls.c
index 35590c3..a8ecde9 100644
--- a/sys/nfsserver/nfs_syscalls.c
+++ b/sys/nfsserver/nfs_syscalls.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_syscalls.c 8.3 (Berkeley) 1/4/94
- * $Id: nfs_syscalls.c,v 1.8 1995/10/29 15:33:11 phk Exp $
+ * $Id: nfs_syscalls.c,v 1.9 1995/11/14 05:16:37 bde Exp $
*/
#include <sys/param.h>
@@ -73,10 +73,11 @@
#include <nfs/nqnfs.h>
#include <nfs/nfsrtt.h>
-void nfsrv_zapsock __P((struct nfssvc_sock *));
-
/* Global defs. */
-extern int (*nfsrv3_procs[NFS_NPROCS])();
+extern int (*nfsrv3_procs[NFS_NPROCS]) __P((struct nfsrv_descript *nd,
+ struct nfssvc_sock *slp,
+ struct proc *procp,
+ struct mbuf **mreqp));
extern struct proc *nfs_iodwant[NFS_MAXASYNCDAEMON];
extern int nfs_numasync;
extern time_t nqnfsstarttime;
@@ -91,14 +92,20 @@ int nfsd_waiting = 0;
static int notstarted = 1;
static int modify_flag = 0;
static struct nfsdrt nfsdrt;
-void nfsrv_cleancache(), nfsrv_rcv(), nfsrv_wakenfsd(), nfs_sndunlock();
-static void nfsd_rt();
-void nfsrv_slpderef();
+
+extern void nfsrv_cleancache __P((void));
+extern void nfsrv_rcv __P((struct socket *so, caddr_t arg, int waitflag));
+extern void nfsrv_wakenfsd __P((struct nfssvc_sock *slp));
+extern void nfsrv_zapsock __P((struct nfssvc_sock *slp));
#define TRUE 1
#define FALSE 0
static int nfs_asyncdaemon[NFS_MAXASYNCDAEMON];
+
+static void nfsd_rt __P((int sotype, struct nfsrv_descript *nd,
+ int cacherep));
+
/*
* NFS server system calls
* getfh() lives here too, but maybe should move to kern/vfs_syscalls.c
OpenPOWER on IntegriCloud