aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/nfsclient/nfs_clrpcops.c
diff options
context:
space:
mode:
authorRyan Moeller <freqlabs@FreeBSD.org>2020-05-12 13:23:25 +0000
committerRyan Moeller <freqlabs@FreeBSD.org>2020-05-12 13:23:25 +0000
commitb9cc3262bc4eca6e23c0719990faa78e3154c6a5 (patch)
treec8be5c395c1c2f0fb867fbd2abef6651ab5cfb3f /sys/fs/nfsclient/nfs_clrpcops.c
parent2cd7735d920044b8eb7387d66bc9e376b50e9dc5 (diff)
downloadsrc-b9cc3262bc4eca6e23c0719990faa78e3154c6a5.tar.gz
src-b9cc3262bc4eca6e23c0719990faa78e3154c6a5.zip
nfs: Remove APPLESTATIC macro
It is no longer useful. Reviewed by: rmacklem Approved by: mav (mentor) MFC after: 1 week Sponsored by: iXsystems, Inc. Differential Revision: https://reviews.freebsd.org/D24811
Notes
Notes: svn path=/head/; revision=360960
Diffstat (limited to 'sys/fs/nfsclient/nfs_clrpcops.c')
-rw-r--r--sys/fs/nfsclient/nfs_clrpcops.c98
1 files changed, 49 insertions, 49 deletions
diff --git a/sys/fs/nfsclient/nfs_clrpcops.c b/sys/fs/nfsclient/nfs_clrpcops.c
index cb9de3ab2c4e..bd8690f6f761 100644
--- a/sys/fs/nfsclient/nfs_clrpcops.c
+++ b/sys/fs/nfsclient/nfs_clrpcops.c
@@ -226,7 +226,7 @@ int nfs_pnfsio(task_fn_t *, void *);
/*
* nfs null call from vfs.
*/
-APPLESTATIC int
+int
nfsrpc_null(vnode_t vp, struct ucred *cred, NFSPROC_T *p)
{
int error;
@@ -245,7 +245,7 @@ nfsrpc_null(vnode_t vp, struct ucred *cred, NFSPROC_T *p)
* For nfs version 3 and 4, use the access rpc to check accessibility. If file
* modes are changed on the server, accesses might still fail later.
*/
-APPLESTATIC int
+int
nfsrpc_access(vnode_t vp, int acmode, struct ucred *cred,
NFSPROC_T *p, struct nfsvattr *nap, int *attrflagp)
{
@@ -288,7 +288,7 @@ nfsrpc_access(vnode_t vp, int acmode, struct ucred *cred,
/*
* The actual rpc, separated out for Darwin.
*/
-APPLESTATIC int
+int
nfsrpc_accessrpc(vnode_t vp, u_int32_t mode, struct ucred *cred,
NFSPROC_T *p, struct nfsvattr *nap, int *attrflagp, u_int32_t *rmodep,
void *stuff)
@@ -349,7 +349,7 @@ nfsmout:
/*
* nfs open rpc
*/
-APPLESTATIC int
+int
nfsrpc_open(vnode_t vp, int amode, struct ucred *cred, NFSPROC_T *p)
{
struct nfsclopen *op;
@@ -481,7 +481,7 @@ else printf(" fhl=0\n");
/*
* the actual open rpc
*/
-APPLESTATIC int
+int
nfsrpc_openrpc(struct nfsmount *nmp, vnode_t vp, u_int8_t *nfhp, int fhlen,
u_int8_t *newfhp, int newfhlen, u_int32_t mode, struct nfsclopen *op,
u_int8_t *name, int namelen, struct nfscldeleg **dpp,
@@ -684,7 +684,7 @@ nfsmout:
/*
* open downgrade rpc
*/
-APPLESTATIC int
+int
nfsrpc_opendowngrade(vnode_t vp, u_int32_t mode, struct nfsclopen *op,
struct ucred *cred, NFSPROC_T *p)
{
@@ -727,7 +727,7 @@ nfsmout:
/*
* V4 Close operation.
*/
-APPLESTATIC int
+int
nfsrpc_close(vnode_t vp, int doclose, NFSPROC_T *p)
{
struct nfsclclient *clp;
@@ -749,7 +749,7 @@ nfsrpc_close(vnode_t vp, int doclose, NFSPROC_T *p)
/*
* Close the open.
*/
-APPLESTATIC void
+void
nfsrpc_doclose(struct nfsmount *nmp, struct nfsclopen *op, NFSPROC_T *p)
{
struct nfsrv_descript nfsd, *nd = &nfsd;
@@ -846,7 +846,7 @@ nfsrpc_doclose(struct nfsmount *nmp, struct nfsclopen *op, NFSPROC_T *p)
/*
* The actual Close RPC.
*/
-APPLESTATIC int
+int
nfsrpc_closerpc(struct nfsrv_descript *nd, struct nfsmount *nmp,
struct nfsclopen *op, struct ucred *cred, NFSPROC_T *p,
int syscred)
@@ -885,7 +885,7 @@ nfsmout:
/*
* V4 Open Confirm RPC.
*/
-APPLESTATIC int
+int
nfsrpc_openconfirm(vnode_t vp, u_int8_t *nfhp, int fhlen,
struct nfsclopen *op, struct ucred *cred, NFSPROC_T *p)
{
@@ -928,7 +928,7 @@ nfsmout:
* Do the setclientid and setclientid confirm RPCs. Called from nfs_statfs()
* when a mount has just occurred and when the server replies NFSERR_EXPIRED.
*/
-APPLESTATIC int
+int
nfsrpc_setclient(struct nfsmount *nmp, struct nfsclclient *clp, int reclaim,
bool *retokp, struct ucred *cred, NFSPROC_T *p)
{
@@ -1184,7 +1184,7 @@ nfsmout:
/*
* nfs getattr call.
*/
-APPLESTATIC int
+int
nfsrpc_getattr(vnode_t vp, struct ucred *cred, NFSPROC_T *p,
struct nfsvattr *nap, void *stuff)
{
@@ -1211,7 +1211,7 @@ nfsrpc_getattr(vnode_t vp, struct ucred *cred, NFSPROC_T *p,
/*
* nfs getattr call with non-vnode arguemnts.
*/
-APPLESTATIC int
+int
nfsrpc_getattrnovp(struct nfsmount *nmp, u_int8_t *fhp, int fhlen, int syscred,
struct ucred *cred, NFSPROC_T *p, struct nfsvattr *nap, u_int64_t *xidp,
uint32_t *leasep)
@@ -1251,7 +1251,7 @@ nfsrpc_getattrnovp(struct nfsmount *nmp, u_int8_t *fhp, int fhlen, int syscred,
/*
* Do an nfs setattr operation.
*/
-APPLESTATIC int
+int
nfsrpc_setattr(vnode_t vp, struct vattr *vap, NFSACL_T *aclp,
struct ucred *cred, NFSPROC_T *p, struct nfsvattr *rnap, int *attrflagp,
void *stuff)
@@ -1378,7 +1378,7 @@ nfsrpc_setattrrpc(vnode_t vp, struct vattr *vap,
/*
* nfs lookup rpc
*/
-APPLESTATIC int
+int
nfsrpc_lookup(vnode_t dvp, char *name, int len, struct ucred *cred,
NFSPROC_T *p, struct nfsvattr *dnap, struct nfsvattr *nap,
struct nfsfh **nfhpp, int *attrflagp, int *dattrflagp, void *stuff)
@@ -1481,7 +1481,7 @@ nfsmout:
/*
* Do a readlink rpc.
*/
-APPLESTATIC int
+int
nfsrpc_readlink(vnode_t vp, struct uio *uiop, struct ucred *cred,
NFSPROC_T *p, struct nfsvattr *nap, int *attrflagp, void *stuff)
{
@@ -1537,7 +1537,7 @@ nfsmout:
/*
* Read operation.
*/
-APPLESTATIC int
+int
nfsrpc_read(vnode_t vp, struct uio *uiop, struct ucred *cred,
NFSPROC_T *p, struct nfsvattr *nap, int *attrflagp, void *stuff)
{
@@ -1695,7 +1695,7 @@ nfsmout:
* the recovery thread could get stuck waiting for the buffer and recovery
* will then deadlock.
*/
-APPLESTATIC int
+int
nfsrpc_write(vnode_t vp, struct uio *uiop, int *iomode, int *must_commit,
struct ucred *cred, NFSPROC_T *p, struct nfsvattr *nap, int *attrflagp,
void *stuff, int called_from_strategy)
@@ -1960,7 +1960,7 @@ nfsmout:
* For NFS v2 this is a kludge. Use a create rpc but with the IFMT bits of the
* mode set to specify the file type and the size field for rdev.
*/
-APPLESTATIC int
+int
nfsrpc_mknod(vnode_t dvp, char *name, int namelen, struct vattr *vap,
u_int32_t rdev, enum vtype vtyp, struct ucred *cred, NFSPROC_T *p,
struct nfsvattr *dnap, struct nfsvattr *nnap, struct nfsfh **nfhpp,
@@ -2040,7 +2040,7 @@ nfsmout:
* Mostly just call the approriate routine. (I separated out v4, so that
* error recovery wouldn't be as difficult.)
*/
-APPLESTATIC int
+int
nfsrpc_create(vnode_t dvp, char *name, int namelen, struct vattr *vap,
nfsquad_t cverf, int fmode, struct ucred *cred, NFSPROC_T *p,
struct nfsvattr *dnap, struct nfsvattr *nnap, struct nfsfh **nfhpp,
@@ -2407,7 +2407,7 @@ nfsmout:
/*
* Nfs remove rpc
*/
-APPLESTATIC int
+int
nfsrpc_remove(vnode_t dvp, char *name, int namelen, vnode_t vp,
struct ucred *cred, NFSPROC_T *p, struct nfsvattr *dnap, int *dattrflagp,
void *dstuff)
@@ -2484,7 +2484,7 @@ nfsmout:
/*
* Do an nfs rename rpc.
*/
-APPLESTATIC int
+int
nfsrpc_rename(vnode_t fdvp, vnode_t fvp, char *fnameptr, int fnamelen,
vnode_t tdvp, vnode_t tvp, char *tnameptr, int tnamelen, struct ucred *cred,
NFSPROC_T *p, struct nfsvattr *fnap, struct nfsvattr *tnap,
@@ -2642,7 +2642,7 @@ nfsmout:
/*
* nfs hard link create rpc
*/
-APPLESTATIC int
+int
nfsrpc_link(vnode_t dvp, vnode_t vp, char *name, int namelen,
struct ucred *cred, NFSPROC_T *p, struct nfsvattr *dnap,
struct nfsvattr *nap, int *attrflagp, int *dattrflagp, void *dstuff)
@@ -2705,7 +2705,7 @@ nfsmout:
/*
* nfs symbolic link create rpc
*/
-APPLESTATIC int
+int
nfsrpc_symlink(vnode_t dvp, char *name, int namelen, const char *target,
struct vattr *vap, struct ucred *cred, NFSPROC_T *p, struct nfsvattr *dnap,
struct nfsvattr *nnap, struct nfsfh **nfhpp, int *attrflagp,
@@ -2766,7 +2766,7 @@ nfsrpc_symlink(vnode_t dvp, char *name, int namelen, const char *target,
/*
* nfs make dir rpc
*/
-APPLESTATIC int
+int
nfsrpc_mkdir(vnode_t dvp, char *name, int namelen, struct vattr *vap,
struct ucred *cred, NFSPROC_T *p, struct nfsvattr *dnap,
struct nfsvattr *nnap, struct nfsfh **nfhpp, int *attrflagp,
@@ -2848,7 +2848,7 @@ nfsmout:
/*
* nfs remove directory call
*/
-APPLESTATIC int
+int
nfsrpc_rmdir(vnode_t dvp, char *name, int namelen, struct ucred *cred,
NFSPROC_T *p, struct nfsvattr *dnap, int *dattrflagp, void *dstuff)
{
@@ -2904,7 +2904,7 @@ nfsrpc_rmdir(vnode_t dvp, char *name, int namelen, struct ucred *cred,
* and returns the one for the next entry after this directory block in
* there, as well.
*/
-APPLESTATIC int
+int
nfsrpc_readdir(vnode_t vp, struct uio *uiop, nfsuint64 *cookiep,
struct ucred *cred, NFSPROC_T *p, struct nfsvattr *nap, int *attrflagp,
int *eofp, void *stuff)
@@ -3351,7 +3351,7 @@ nfsmout:
* (Also used for NFS V4 when mount flag set.)
* (ditto above w.r.t. multiple of DIRBLKSIZ, etc.)
*/
-APPLESTATIC int
+int
nfsrpc_readdirplus(vnode_t vp, struct uio *uiop, nfsuint64 *cookiep,
struct ucred *cred, NFSPROC_T *p, struct nfsvattr *nap, int *attrflagp,
int *eofp, void *stuff)
@@ -3860,7 +3860,7 @@ nfsmout:
/*
* Nfs commit rpc
*/
-APPLESTATIC int
+int
nfsrpc_commit(vnode_t vp, u_quad_t offset, int cnt, struct ucred *cred,
NFSPROC_T *p, struct nfsvattr *nap, int *attrflagp, void *stuff)
{
@@ -3911,7 +3911,7 @@ nfsmout:
* NFS byte range lock rpc.
* (Mostly just calls one of the three lower level RPC routines.)
*/
-APPLESTATIC int
+int
nfsrpc_advlock(vnode_t vp, off_t size, int op, struct flock *fl,
int reclaim, struct ucred *cred, NFSPROC_T *p, void *id, int flags)
{
@@ -4078,7 +4078,7 @@ nfsrpc_advlock(vnode_t vp, off_t size, int op, struct flock *fl,
/*
* The lower level routine for the LockT case.
*/
-APPLESTATIC int
+int
nfsrpc_lockt(struct nfsrv_descript *nd, vnode_t vp,
struct nfsclclient *clp, u_int64_t off, u_int64_t len, struct flock *fl,
struct ucred *cred, NFSPROC_T *p, void *id, int flags)
@@ -4203,7 +4203,7 @@ nfsmout:
/*
* The actual Lock RPC.
*/
-APPLESTATIC int
+int
nfsrpc_lock(struct nfsrv_descript *nd, struct nfsmount *nmp, vnode_t vp,
u_int8_t *nfhp, int fhlen, struct nfscllockowner *lp, int newone,
int reclaim, u_int64_t off, u_int64_t len, short type, struct ucred *cred,
@@ -4292,7 +4292,7 @@ nfsmout:
* nfs statfs rpc
* (always called with the vp for the mount point)
*/
-APPLESTATIC int
+int
nfsrpc_statfs(vnode_t vp, struct nfsstatfs *sbp, struct nfsfsinfo *fsp,
struct ucred *cred, NFSPROC_T *p, struct nfsvattr *nap, int *attrflagp,
void *stuff)
@@ -4371,7 +4371,7 @@ nfsmout:
/*
* nfs pathconf rpc
*/
-APPLESTATIC int
+int
nfsrpc_pathconf(vnode_t vp, struct nfsv3_pathconf *pc,
struct ucred *cred, NFSPROC_T *p, struct nfsvattr *nap, int *attrflagp,
void *stuff)
@@ -4432,7 +4432,7 @@ nfsmout:
/*
* nfs version 3 fsinfo rpc call
*/
-APPLESTATIC int
+int
nfsrpc_fsinfo(vnode_t vp, struct nfsfsinfo *fsp, struct ucred *cred,
NFSPROC_T *p, struct nfsvattr *nap, int *attrflagp, void *stuff)
{
@@ -4471,7 +4471,7 @@ nfsmout:
/*
* This function performs the Renew RPC.
*/
-APPLESTATIC int
+int
nfsrpc_renew(struct nfsclclient *clp, struct nfsclds *dsp, struct ucred *cred,
NFSPROC_T *p)
{
@@ -4525,7 +4525,7 @@ nfsrpc_renew(struct nfsclclient *clp, struct nfsclds *dsp, struct ucred *cred,
/*
* This function performs the Releaselockowner RPC.
*/
-APPLESTATIC int
+int
nfsrpc_rellockown(struct nfsmount *nmp, struct nfscllockowner *lp,
uint8_t *fh, int fhlen, struct ucred *cred, NFSPROC_T *p)
{
@@ -4564,7 +4564,7 @@ nfsrpc_rellockown(struct nfsmount *nmp, struct nfscllockowner *lp,
/*
* This function performs the Compound to get the mount pt FH.
*/
-APPLESTATIC int
+int
nfsrpc_getdirpath(struct nfsmount *nmp, u_char *dirpath, struct ucred *cred,
NFSPROC_T *p)
{
@@ -4633,7 +4633,7 @@ nfsmout:
/*
* This function performs the Delegreturn RPC.
*/
-APPLESTATIC int
+int
nfsrpc_delegreturn(struct nfscldeleg *dp, struct ucred *cred,
struct nfsmount *nmp, NFSPROC_T *p, int syscred)
{
@@ -4666,7 +4666,7 @@ nfsrpc_delegreturn(struct nfscldeleg *dp, struct ucred *cred,
/*
* nfs getacl call.
*/
-APPLESTATIC int
+int
nfsrpc_getacl(vnode_t vp, struct ucred *cred, NFSPROC_T *p,
struct acl *aclp, void *stuff)
{
@@ -4696,7 +4696,7 @@ nfsrpc_getacl(vnode_t vp, struct ucred *cred, NFSPROC_T *p,
/*
* nfs setacl call.
*/
-APPLESTATIC int
+int
nfsrpc_setacl(vnode_t vp, struct ucred *cred, NFSPROC_T *p,
struct acl *aclp, void *stuff)
{
@@ -6829,7 +6829,7 @@ nfsio_commitds(vnode_t vp, uint64_t offset, int cnt, struct nfsclds *dsp,
/*
* NFS Advise rpc
*/
-APPLESTATIC int
+int
nfsrpc_advise(vnode_t vp, off_t offset, uint64_t cnt, int advise,
struct ucred *cred, NFSPROC_T *p)
{
@@ -6970,7 +6970,7 @@ nfsio_adviseds(vnode_t vp, uint64_t offset, int cnt, int advise,
/*
* Do the Allocate operation, retrying for recovery.
*/
-APPLESTATIC int
+int
nfsrpc_allocate(vnode_t vp, off_t off, off_t len, struct nfsvattr *nap,
int *attrflagp, struct ucred *cred, NFSPROC_T *p, void *stuff)
{
@@ -8077,7 +8077,7 @@ out:
/*
* nfs copy_file_range operation.
*/
-APPLESTATIC int
+int
nfsrpc_copy_file_range(vnode_t invp, off_t *inoffp, vnode_t outvp,
off_t *outoffp, size_t *lenp, unsigned int flags, int *inattrflagp,
struct nfsvattr *innap, int *outattrflagp, struct nfsvattr *outnap,
@@ -8271,7 +8271,7 @@ nfsmout:
/*
* Seek operation.
*/
-APPLESTATIC int
+int
nfsrpc_seek(vnode_t vp, off_t *offp, bool *eofp, int content,
struct ucred *cred, struct nfsvattr *nap, int *attrflagp)
{
@@ -8365,7 +8365,7 @@ nfsmout:
/*
* The getextattr RPC.
*/
-APPLESTATIC int
+int
nfsrpc_getextattr(vnode_t vp, const char *name, struct uio *uiop, ssize_t *lenp,
struct nfsvattr *nap, int *attrflagp, struct ucred *cred, NFSPROC_T *p)
{
@@ -8436,7 +8436,7 @@ nfsmout:
/*
* The setextattr RPC.
*/
-APPLESTATIC int
+int
nfsrpc_setextattr(vnode_t vp, const char *name, struct uio *uiop,
struct nfsvattr *nap, int *attrflagp, struct ucred *cred, NFSPROC_T *p)
{
@@ -8484,7 +8484,7 @@ nfsmout:
/*
* The removeextattr RPC.
*/
-APPLESTATIC int
+int
nfsrpc_rmextattr(vnode_t vp, const char *name, struct nfsvattr *nap,
int *attrflagp, struct ucred *cred, NFSPROC_T *p)
{
@@ -8522,7 +8522,7 @@ nfsmout:
/*
* The listextattr RPC.
*/
-APPLESTATIC int
+int
nfsrpc_listextattr(vnode_t vp, uint64_t *cookiep, struct uio *uiop,
size_t *lenp, bool *eofp, struct nfsvattr *nap, int *attrflagp,
struct ucred *cred, NFSPROC_T *p)