Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109282760
D24811.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
57 KB
Referenced Files
None
Subscribers
None
D24811.diff
View Options
Index: sys/fs/nfs/nfs_commonacl.c
===================================================================
--- sys/fs/nfs/nfs_commonacl.c
+++ sys/fs/nfs/nfs_commonacl.c
@@ -40,7 +40,7 @@
/*
* Handle xdr for an ace.
*/
-APPLESTATIC int
+int
nfsrv_dissectace(struct nfsrv_descript *nd, struct acl_entry *acep,
int *aceerrp, int *acesizep, NFSPROC_T *p)
{
@@ -388,7 +388,7 @@
/*
* Build an NFSv4 ACL.
*/
-APPLESTATIC int
+int
nfsrv_buildacl(struct nfsrv_descript *nd, NFSACL_T *aclp, enum vtype type,
NFSPROC_T *p)
{
@@ -451,7 +451,7 @@
* Compare two NFSv4 acls.
* Return 0 if they are the same, 1 if not the same.
*/
-APPLESTATIC int
+int
nfsrv_compareacl(NFSACL_T *aclp1, NFSACL_T *aclp2)
{
int i;
Index: sys/fs/nfs/nfs_commonsubs.c
===================================================================
--- sys/fs/nfs/nfs_commonsubs.c
+++ sys/fs/nfs/nfs_commonsubs.c
@@ -314,7 +314,7 @@
* Start building a request. Mostly just put the first file handle in
* place.
*/
-APPLESTATIC void
+void
nfscl_reqstart(struct nfsrv_descript *nd, int procnum, struct nfsmount *nmp,
u_int8_t *nfhp, int fhlen, u_int32_t **opcntpp, struct nfsclsession *sep,
int vers, int minorvers)
@@ -453,7 +453,7 @@
/*
* Put a state Id in the mbuf list.
*/
-APPLESTATIC void
+void
nfsm_stateidtom(struct nfsrv_descript *nd, nfsv4stateid_t *stateidp, int flag)
{
nfsv4stateid_t *st;
@@ -689,7 +689,7 @@
* This is used by the macro NFSM_DISSECT for tough
* cases.
*/
-APPLESTATIC void *
+void *
nfsm_dissct(struct nfsrv_descript *nd, int siz, int how)
{
struct mbuf *mp2;
@@ -755,7 +755,7 @@
* here than check for offs > 0 for all calls to nfsm_advance.
* If left == -1, it should be calculated here.
*/
-APPLESTATIC int
+int
nfsm_advance(struct nfsrv_descript *nd, int offs, int left)
{
int error = 0;
@@ -803,7 +803,7 @@
* Copy a string into mbuf(s).
* Return the number of bytes output, including XDR overheads.
*/
-APPLESTATIC int
+int
nfsm_strtom(struct nfsrv_descript *nd, const char *cp, int siz)
{
struct mbuf *m2;
@@ -860,7 +860,7 @@
/*
* Called once to initialize data structures...
*/
-APPLESTATIC void
+void
newnfs_init(void)
{
static int nfs_inited = 0;
@@ -890,7 +890,7 @@
* set_true == 1 if there should be an newnfs_true prepended on the file handle.
* Return the number of bytes output, including XDR overhead.
*/
-APPLESTATIC int
+int
nfsm_fhtom(struct nfsrv_descript *nd, u_int8_t *fhp, int size, int set_true)
{
u_int32_t *tl;
@@ -933,7 +933,7 @@
* The AF_INET family is handled as a special case so that address mbufs
* don't need to be saved to store "struct in_addr", which is only 4 bytes.
*/
-APPLESTATIC int
+int
nfsaddr_match(int family, union nethostaddr *haddr, NFSSOCKADDR_T nam)
{
#ifdef INET
@@ -970,7 +970,7 @@
/*
* Similar to the above, but takes to NFSSOCKADDR_T args.
*/
-APPLESTATIC int
+int
nfsaddr2_match(NFSSOCKADDR_T nam1, NFSSOCKADDR_T nam2)
{
struct sockaddr_in *addr1, *addr2;
@@ -1007,7 +1007,7 @@
/*
* Trim trailing data off the mbuf list being built.
*/
-APPLESTATIC void
+void
newnfs_trimtrailing(nd, mb, bpos)
struct nfsrv_descript *nd;
struct mbuf *mb;
@@ -1026,7 +1026,7 @@
/*
* Dissect a file handle on the client.
*/
-APPLESTATIC int
+int
nfsm_getfh(struct nfsrv_descript *nd, struct nfsfh **nfhpp)
{
u_int32_t *tl;
@@ -1061,7 +1061,7 @@
* Break down the nfsv4 acl.
* If the aclp == NULL or won't fit in an acl, just discard the acl info.
*/
-APPLESTATIC int
+int
nfsrv_dissectacl(struct nfsrv_descript *nd, NFSACL_T *aclp, int *aclerrp,
int *aclsizep, __unused NFSPROC_T *p)
{
@@ -1127,7 +1127,7 @@
* Returns EBADRPC for a parsing error, 0 otherwise.
* If the clearinvalid flag is set, clear the bits not supported.
*/
-APPLESTATIC int
+int
nfsrv_getattrbits(struct nfsrv_descript *nd, nfsattrbit_t *attrbitp, int *cntp,
int *retnotsupp)
{
@@ -1173,7 +1173,7 @@
* and 0 otherwise.
* Returns EBADRPC if it can't be parsed, 0 otherwise.
*/
-APPLESTATIC int
+int
nfsv4_loadattr(struct nfsrv_descript *nd, vnode_t vp,
struct nfsvattr *nap, struct nfsfh **nfhpp, fhandle_t *fhp, int fhsize,
struct nfsv3_pathconf *pc, struct statfs *sbp, struct nfsstatfs *sfp,
@@ -2217,7 +2217,7 @@
* and the mp argument indicates to check for a forced dismount, iff not
* NULL.
*/
-APPLESTATIC int
+int
nfsv4_lock(struct nfsv4lock *lp, int iwantlock, int *isleptp,
void *mutex, struct mount *mp)
{
@@ -2264,7 +2264,7 @@
* The second argument is set to 1 to indicate the nfslock_usecnt should be
* incremented, as well.
*/
-APPLESTATIC void
+void
nfsv4_unlock(struct nfsv4lock *lp, int incref)
{
@@ -2277,7 +2277,7 @@
/*
* Release a reference cnt.
*/
-APPLESTATIC void
+void
nfsv4_relref(struct nfsv4lock *lp)
{
@@ -2297,7 +2297,7 @@
* If the mp argument is not NULL, check for NFSCL_FORCEDISM() being set and
* return without getting a refcnt for that case.
*/
-APPLESTATIC void
+void
nfsv4_getref(struct nfsv4lock *lp, int *isleptp, void *mutex,
struct mount *mp)
{
@@ -2327,7 +2327,7 @@
* Get a reference as above, but return failure instead of sleeping if
* an exclusive lock is held.
*/
-APPLESTATIC int
+int
nfsv4_getref_nonblock(struct nfsv4lock *lp)
{
@@ -2341,7 +2341,7 @@
/*
* Test for a lock. Return 1 if locked, 0 otherwise.
*/
-APPLESTATIC int
+int
nfsv4_testlock(struct nfsv4lock *lp)
{
@@ -2369,7 +2369,7 @@
* Return EBADRPC if there is an mbuf error,
* 0 otherwise.
*/
-APPLESTATIC int
+int
nfsrv_mtostr(struct nfsrv_descript *nd, char *str, int siz)
{
char *cp;
@@ -2420,7 +2420,7 @@
/*
* Fill in the attributes as marked by the bitmap (V4).
*/
-APPLESTATIC int
+int
nfsv4_fillattr(struct nfsrv_descript *nd, struct mount *mp, vnode_t vp,
NFSACL_T *saclp, struct vattr *vap, fhandle_t *fhp, int rderror,
nfsattrbit_t *attrbitp, struct ucred *cred, NFSPROC_T *p, int isdgram,
@@ -3000,7 +3000,7 @@
* Put the attribute bits onto an mbuf list.
* Return the number of bytes of output generated.
*/
-APPLESTATIC int
+int
nfsrv_putattrbit(struct nfsrv_descript *nd, nfsattrbit_t *attrbitp)
{
u_int32_t *tl;
@@ -3025,7 +3025,7 @@
* (malloc a larger one, as required)
* retlenp - pointer to length to be returned
*/
-APPLESTATIC void
+void
nfsv4_uidtostr(uid_t uid, u_char **cpp, int *retlenp)
{
int i;
@@ -3182,7 +3182,7 @@
* string is made up entirely of digits, just convert the string to
* a number.
*/
-APPLESTATIC int
+int
nfsv4_strtouid(struct nfsrv_descript *nd, u_char *str, int len, uid_t *uidp)
{
int i;
@@ -3284,7 +3284,7 @@
* (malloc a larger one, as required)
* retlenp - pointer to length to be returned
*/
-APPLESTATIC void
+void
nfsv4_gidtostr(gid_t gid, u_char **cpp, int *retlenp)
{
int i;
@@ -3396,7 +3396,7 @@
* string is made up entirely of digits, just convert the string to
* a number.
*/
-APPLESTATIC int
+int
nfsv4_strtogid(struct nfsrv_descript *nd, u_char *str, int len, gid_t *gidp)
{
int i;
@@ -3521,7 +3521,7 @@
/*
* Set the port for the nfsuserd.
*/
-APPLESTATIC int
+int
nfsrv_nfsuserdport(struct nfsuserd_args *nargs, NFSPROC_T *p)
{
struct nfssockreq *rp;
@@ -3604,7 +3604,7 @@
/*
* Delete the nfsuserd port.
*/
-APPLESTATIC void
+void
nfsrv_nfsuserddelport(void)
{
@@ -3691,7 +3691,7 @@
* This function is called from the nfssvc(2) system call, to update the
* kernel user/group name list(s) for the V4 owner and ownergroup attributes.
*/
-APPLESTATIC int
+int
nfssvc_idname(struct nfsd_idargs *nidp)
{
struct nfsusrgrp *nusrp, *usrp, *newusrp;
@@ -4084,7 +4084,7 @@
* running, since it doesn't do any locking.
* This function is meant to be used when the nfscommon module is unloaded.
*/
-APPLESTATIC void
+void
nfsrv_cleanusergroup(void)
{
struct nfsrv_lughash *hp, *hp2;
@@ -4131,7 +4131,7 @@
* This function scans a byte string and checks for UTF-8 compliance.
* It returns 0 if it conforms and NFSERR_INVAL if not.
*/
-APPLESTATIC int
+int
nfsrv_checkutf8(u_int8_t *cp, int len)
{
u_int32_t val = 0x0;
@@ -4384,7 +4384,7 @@
/*
* Initialize the reply header data structures.
*/
-APPLESTATIC void
+void
nfsrvd_rephead(struct nfsrv_descript *nd)
{
struct mbuf *mreq;
@@ -4449,7 +4449,7 @@
NFSUNLOCKSOCK();
}
-APPLESTATIC int
+int
nfsv4_getipaddr(struct nfsrv_descript *nd, struct sockaddr_in *sin,
struct sockaddr_in6 *sin6, sa_family_t *saf, int *isudp)
{
@@ -4630,7 +4630,7 @@
/*
* Generate the xdr for an NFSv4.1 Sequence Operation.
*/
-APPLESTATIC void
+void
nfsv4_setsequence(struct nfsmount *nmp, struct nfsrv_descript *nd,
struct nfsclsession *sep, int dont_replycache)
{
@@ -4738,7 +4738,7 @@
/*
* Free a session slot.
*/
-APPLESTATIC void
+void
nfsv4_freeslot(struct nfsclsession *sep, int slot)
{
uint64_t bitval;
Index: sys/fs/nfs/nfsport.h
===================================================================
--- sys/fs/nfs/nfsport.h
+++ sys/fs/nfs/nfsport.h
@@ -103,11 +103,6 @@
#include <rpc/rpc.h>
#include <rpc/rpcsec_gss.h>
-/*
- * For Darwin, these functions should be "static" when built in a kext.
- * (This is always defined as nil otherwise.)
- */
-#define APPLESTATIC
#include <ufs/ufs/dir.h>
#include <ufs/ufs/quota.h>
#include <ufs/ufs/inode.h>
Index: sys/fs/nfsclient/nfs_clcomsubs.c
===================================================================
--- sys/fs/nfsclient/nfs_clcomsubs.c
+++ sys/fs/nfsclient/nfs_clcomsubs.c
@@ -55,7 +55,7 @@
* copies a uio scatter/gather list to an mbuf chain.
* NOTE: can ony handle iovcnt == 1
*/
-APPLESTATIC void
+void
nfsm_uiombuf(struct nfsrv_descript *nd, struct uio *uiop, int siz)
{
char *uiocp;
@@ -206,7 +206,7 @@
* Load vnode attributes from the xdr file attributes.
* Returns EBADRPC if they can't be parsed, 0 otherwise.
*/
-APPLESTATIC int
+int
nfsm_loadattr(struct nfsrv_descript *nd, struct nfsvattr *nap)
{
struct nfs_fattr *fp;
@@ -273,7 +273,7 @@
* This function finds the directory cookie that corresponds to the
* logical byte offset given.
*/
-APPLESTATIC nfsuint64 *
+nfsuint64 *
nfscl_getcookie(struct nfsnode *np, off_t off, int add)
{
struct nfsdmap *dp, *dp2;
@@ -325,7 +325,7 @@
* the file handle and the file's attributes.
* For V4, it assumes that Getfh and Getattr Op's results are here.
*/
-APPLESTATIC int
+int
nfscl_mtofh(struct nfsrv_descript *nd, struct nfsfh **nfhpp,
struct nfsvattr *nap, int *attrflagp)
{
@@ -386,7 +386,7 @@
/*
* Initialize the owner/delegation sleep lock.
*/
-APPLESTATIC void
+void
nfscl_lockinit(struct nfsv4lock *lckp)
{
@@ -398,7 +398,7 @@
* Get an exclusive lock. (Not needed for OpenBSD4, since there is only one
* thread for each posix process in the kernel.)
*/
-APPLESTATIC void
+void
nfscl_lockexcl(struct nfsv4lock *lckp, void *mutex)
{
int igotlock;
@@ -411,7 +411,7 @@
/*
* Release an exclusive lock.
*/
-APPLESTATIC void
+void
nfscl_lockunlock(struct nfsv4lock *lckp)
{
@@ -421,7 +421,7 @@
/*
* Called to derefernce a lock on a stateid (delegation or open owner).
*/
-APPLESTATIC void
+void
nfscl_lockderef(struct nfsv4lock *lckp)
{
Index: sys/fs/nfsclient/nfs_clport.c
===================================================================
--- sys/fs/nfsclient/nfs_clport.c
+++ sys/fs/nfsclient/nfs_clport.c
@@ -1108,7 +1108,7 @@
* error should only be returned for the Open, Create and Setattr Ops.
* As such, most calls can just pass in 0 for those arguments.
*/
-APPLESTATIC int
+int
nfscl_maperr(struct thread *td, int error, uid_t uid, gid_t gid)
{
struct proc *p;
Index: sys/fs/nfsclient/nfs_clrpcops.c
===================================================================
--- sys/fs/nfsclient/nfs_clrpcops.c
+++ sys/fs/nfsclient/nfs_clrpcops.c
@@ -226,7 +226,7 @@
/*
* 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 @@
* 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 @@
/*
* 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 @@
/*
* 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 @@
/*
* 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 @@
/*
* 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 @@
/*
* V4 Close operation.
*/
-APPLESTATIC int
+int
nfsrpc_close(vnode_t vp, int doclose, NFSPROC_T *p)
{
struct nfsclclient *clp;
@@ -749,7 +749,7 @@
/*
* 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 @@
/*
* 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 @@
/*
* 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 @@
* 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 @@
/*
* 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 @@
/*
* 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 @@
/*
* 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 @@
/*
* 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 @@
/*
* 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 @@
/*
* 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 @@
* 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 @@
* 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 @@
* 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 @@
/*
* 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 @@
/*
* 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 @@
/*
* 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 @@
/*
* 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 @@
/*
* 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 @@
/*
* 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 @@
* 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 @@
* (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 @@
/*
* 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 @@
* 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 @@
/*
* 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 @@
/*
* 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 @@
* 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 @@
/*
* 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 @@
/*
* 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 @@
/*
* 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 @@
/*
* 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 @@
/*
* 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 @@
/*
* 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 @@
/*
* 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 @@
/*
* 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 @@
/*
* 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 @@
/*
* 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 @@
/*
* 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 @@
/*
* 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 @@
/*
* 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 @@
/*
* 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 @@
/*
* 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 @@
/*
* 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)
Index: sys/fs/nfsclient/nfs_clstate.c
===================================================================
--- sys/fs/nfsclient/nfs_clstate.c
+++ sys/fs/nfsclient/nfs_clstate.c
@@ -209,7 +209,7 @@
* Called for an open operation.
* If the nfhp argument is NULL, just get an openowner.
*/
-APPLESTATIC int
+int
nfscl_open(vnode_t vp, u_int8_t *nfhp, int fhlen, u_int32_t amode, int usedeleg,
struct ucred *cred, NFSPROC_T *p, struct nfsclowner **owpp,
struct nfsclopen **opp, int *newonep, int *retp, int lockit)
@@ -425,7 +425,7 @@
/*
* Called to find/add a delegation to a client.
*/
-APPLESTATIC int
+int
nfscl_deleg(mount_t mp, struct nfsclclient *clp, u_int8_t *nfhp,
int fhlen, struct ucred *cred, NFSPROC_T *p, struct nfscldeleg **dpp)
{
@@ -496,7 +496,7 @@
* found, return either a lockowner stateid or the open stateid.
* If no Open is found, just return error and the special stateid of all zeros.
*/
-APPLESTATIC int
+int
nfscl_getstateid(vnode_t vp, u_int8_t *nfhp, int fhlen, u_int32_t mode,
int fords, struct ucred *cred, NFSPROC_T *p, nfsv4stateid_t *stateidp,
void **lckpp)
@@ -720,7 +720,7 @@
* Release use of an open owner. Called when open operations are done
* with the open owner.
*/
-APPLESTATIC void
+void
nfscl_ownerrelease(struct nfsmount *nmp, struct nfsclowner *owp,
__unused int error, __unused int candelete, int unlocked)
{
@@ -741,7 +741,7 @@
/*
* Release use of an open structure under an open owner.
*/
-APPLESTATIC void
+void
nfscl_openrelease(struct nfsmount *nmp, struct nfsclopen *op, int error,
int candelete)
{
@@ -775,7 +775,7 @@
* thread if this creates a new clp.
* It always clpp with a reference count on it, unless returning an error.
*/
-APPLESTATIC int
+int
nfscl_getcl(struct mount *mp, struct ucred *cred, NFSPROC_T *p,
int start_renewthread, struct nfsclclient **clpp)
{
@@ -938,7 +938,7 @@
/*
* Get a reference to a clientid and return it, if valid.
*/
-APPLESTATIC struct nfsclclient *
+struct nfsclclient *
nfscl_findcl(struct nfsmount *nmp)
{
struct nfsclclient *clp;
@@ -965,7 +965,7 @@
/*
* External call for nfscl_clrelease.
*/
-APPLESTATIC void
+void
nfscl_clientrelease(struct nfsclclient *clp)
{
@@ -980,7 +980,7 @@
/*
* Called when wanting to lock a byte region.
*/
-APPLESTATIC int
+int
nfscl_getbytelock(vnode_t vp, u_int64_t off, u_int64_t len,
short type, struct ucred *cred, NFSPROC_T *p, struct nfsclclient *rclp,
int recovery, void *id, int flags, u_int8_t *rownp, u_int8_t *ropenownp,
@@ -1180,7 +1180,7 @@
/*
* Called to unlock a byte range, for LockU.
*/
-APPLESTATIC int
+int
nfscl_relbytelock(vnode_t vp, u_int64_t off, u_int64_t len,
__unused struct ucred *cred, NFSPROC_T *p, int callcnt,
struct nfsclclient *clp, void *id, int flags,
@@ -1292,7 +1292,7 @@
/*
* Release all lockowners marked in progess for this process and file.
*/
-APPLESTATIC void
+void
nfscl_releasealllocks(struct nfsclclient *clp, vnode_t vp, NFSPROC_T *p,
void *id, int flags)
{
@@ -1330,7 +1330,7 @@
* is required before a LockU.
* If in doubt, return 1, so the flush will occur.
*/
-APPLESTATIC int
+int
nfscl_checkwritelocked(vnode_t vp, struct flock *fl,
struct ucred *cred, NFSPROC_T *p, void *id, int flags)
{
@@ -1436,7 +1436,7 @@
/*
* Release a byte range lock owner structure.
*/
-APPLESTATIC void
+void
nfscl_lockrelease(struct nfscllockowner *lp, int error, int candelete)
{
struct nfsclclient *clp;
@@ -1457,7 +1457,7 @@
/*
* Free up an open structure and any associated byte range lock structures.
*/
-APPLESTATIC void
+void
nfscl_freeopen(struct nfsclopen *op, int local)
{
@@ -1554,7 +1554,7 @@
/*
* Free up a byte range lock owner structure.
*/
-APPLESTATIC void
+void
nfscl_freelockowner(struct nfscllockowner *lp, int local)
{
struct nfscllock *lop, *nlop;
@@ -1573,7 +1573,7 @@
/*
* Free up a byte range lock structure.
*/
-APPLESTATIC void
+void
nfscl_freelock(struct nfscllock *lop, int local)
{
@@ -1880,7 +1880,7 @@
/*
* Called from nfs umount to free up the clientid.
*/
-APPLESTATIC void
+void
nfscl_umount(struct nfsmount *nmp, NFSPROC_T *p)
{
struct nfsclclient *clp;
@@ -2300,7 +2300,7 @@
* XXX Someday it should post a signal to the process(es) that hold the
* state, so they know that lock state has been lost.
*/
-APPLESTATIC int
+int
nfscl_hasexpired(struct nfsclclient *clp, u_int32_t clidrev, NFSPROC_T *p)
{
struct nfsmount *nmp;
@@ -2528,7 +2528,7 @@
* This function must be run as a kernel thread.
* It does Renew Ops and recovery, when required.
*/
-APPLESTATIC void
+void
nfscl_renewthread(struct nfsclclient *clp, NFSPROC_T *p)
{
struct nfsclowner *owp, *nowp;
@@ -2865,7 +2865,7 @@
* Initiate state recovery. Called when NFSERR_STALECLIENTID,
* NFSERR_STALESTATEID or NFSERR_BADSESSION is received.
*/
-APPLESTATIC void
+void
nfscl_initiate_recovery(struct nfsclclient *clp)
{
@@ -2880,7 +2880,7 @@
/*
* Dump out the state stuff for debugging.
*/
-APPLESTATIC void
+void
nfscl_dumpstate(struct nfsmount *nmp, int openowner, int opens,
int lockowner, int locks)
{
@@ -2976,7 +2976,7 @@
* Check for duplicate open owners and opens.
* (Only used as a diagnostic aid.)
*/
-APPLESTATIC void
+void
nfscl_dupopen(vnode_t vp, int dupopens)
{
struct nfsclclient *clp;
@@ -3085,7 +3085,7 @@
* If it returns 0 for success, there will be a referenced
* clp returned via clpp.
*/
-APPLESTATIC int
+int
nfscl_getclose(vnode_t vp, struct nfsclclient **clpp)
{
struct nfsclclient *clp;
@@ -3159,7 +3159,7 @@
return (0);
}
-APPLESTATIC int
+int
nfscl_doclose(vnode_t vp, struct nfsclclient **clpp, NFSPROC_T *p)
{
struct nfsclclient *clp;
@@ -3252,7 +3252,7 @@
/*
* Do a callback RPC.
*/
-APPLESTATIC void
+void
nfscl_docb(struct nfsrv_descript *nd, NFSPROC_T *p)
{
int clist, gotseq_ok, i, j, k, op, rcalls;
@@ -3862,7 +3862,7 @@
/*
* Check for a local conflicting lock.
*/
-APPLESTATIC int
+int
nfscl_lockt(vnode_t vp, struct nfsclclient *clp, u_int64_t off,
u_int64_t len, struct flock *fl, NFSPROC_T *p, void *id, int flags)
{
@@ -4303,7 +4303,7 @@
* retrying while NFSERR_DELAY. Also, try system credentials, if the passed in
* credentials fail.
*/
-APPLESTATIC int
+int
nfscl_tryclose(struct nfsclopen *op, struct ucred *cred,
struct nfsmount *nmp, NFSPROC_T *p)
{
@@ -4332,7 +4332,7 @@
* to the server. This might be a big performance win in some environments.
* (Not useful until the client does caching on local stable storage.)
*/
-APPLESTATIC int
+int
nfscl_mustflush(vnode_t vp)
{
struct nfsclclient *clp;
@@ -4366,7 +4366,7 @@
/*
* See if a (write) delegation exists for this file.
*/
-APPLESTATIC int
+int
nfscl_nodeleg(vnode_t vp, int writedeleg)
{
struct nfsclclient *clp;
@@ -4399,7 +4399,7 @@
/*
* Look for an associated delegation that should be DelegReturned.
*/
-APPLESTATIC int
+int
nfscl_removedeleg(vnode_t vp, NFSPROC_T *p, nfsv4stateid_t *stp)
{
struct nfsclclient *clp;
@@ -4495,7 +4495,7 @@
/*
* Look for associated delegation(s) that should be DelegReturned.
*/
-APPLESTATIC int
+int
nfscl_renamedeleg(vnode_t fvp, nfsv4stateid_t *fstp, int *gotfdp, vnode_t tvp,
nfsv4stateid_t *tstp, int *gottdp, NFSPROC_T *p)
{
@@ -4631,7 +4631,7 @@
* Get a reference on the clientid associated with the mount point.
* Return 1 if success, 0 otherwise.
*/
-APPLESTATIC int
+int
nfscl_getref(struct nfsmount *nmp)
{
struct nfsclclient *clp;
@@ -4650,7 +4650,7 @@
/*
* Release a reference on a clientid acquired with the above call.
*/
-APPLESTATIC void
+void
nfscl_relref(struct nfsmount *nmp)
{
struct nfsclclient *clp;
@@ -4669,7 +4669,7 @@
* Save the size attribute in the delegation, since the nfsnode
* is going away.
*/
-APPLESTATIC void
+void
nfscl_reclaimnode(vnode_t vp)
{
struct nfsclclient *clp;
@@ -4696,7 +4696,7 @@
* Get the saved size attribute in the delegation, since it is a
* newly allocated nfsnode.
*/
-APPLESTATIC void
+void
nfscl_newnode(vnode_t vp)
{
struct nfsclclient *clp;
@@ -4723,7 +4723,7 @@
* If there is a valid write delegation for this file, set the modtime
* to the local clock time.
*/
-APPLESTATIC void
+void
nfscl_delegmodtime(vnode_t vp)
{
struct nfsclclient *clp;
@@ -4752,7 +4752,7 @@
* If there is a valid write delegation for this file with a modtime set,
* put that modtime in mtime.
*/
-APPLESTATIC void
+void
nfscl_deleggetmodtime(vnode_t vp, struct timespec *mtime)
{
struct nfsclclient *clp;
@@ -4813,7 +4813,7 @@
* error is returned.
* If a layout is passed in via lypp, it is locked (exclusively locked).
*/
-APPLESTATIC int
+int
nfscl_layout(struct nfsmount *nmp, vnode_t vp, u_int8_t *fhp, int fhlen,
nfsv4stateid_t *stateidp, int layouttype, int retonclose,
struct nfsclflayouthead *fhlp, struct nfscllayout **lypp,
@@ -5035,7 +5035,7 @@
* If NFSCLDS_SAMECONN is set, the connection is shared with other DSs and
* cannot be shut down.
*/
-APPLESTATIC void
+void
nfscl_cancelreqs(struct nfsclds *dsp)
{
struct __rpc_client *cl;
@@ -5176,7 +5176,7 @@
* Add this nfscldevinfo to the client, if it doesn't already exist.
* This function consumes the structure pointed at by dip, if not NULL.
*/
-APPLESTATIC int
+int
nfscl_adddevinfo(struct nfsmount *nmp, struct nfscldevinfo *dip, int ind,
struct nfsclflayout *flp)
{
@@ -5226,7 +5226,7 @@
/*
* Free up a layout structure and associated file layout structure(s).
*/
-APPLESTATIC void
+void
nfscl_freelayout(struct nfscllayout *layp)
{
struct nfsclflayout *flp, *nflp;
@@ -5251,7 +5251,7 @@
/*
* Free up a file layout structure.
*/
-APPLESTATIC void
+void
nfscl_freeflayout(struct nfsclflayout *flp)
{
int i, j;
@@ -5275,7 +5275,7 @@
/*
* Free up a file layout devinfo structure.
*/
-APPLESTATIC void
+void
nfscl_freedevinfo(struct nfscldevinfo *dip)
{
Index: sys/fs/nfsserver/nfs_nfsdcache.c
===================================================================
--- sys/fs/nfsserver/nfs_nfsdcache.c
+++ sys/fs/nfsserver/nfs_nfsdcache.c
@@ -301,7 +301,7 @@
/*
* Initialize the server request cache list
*/
-APPLESTATIC void
+void
nfsrvd_initcache(void)
{
int i;
@@ -326,7 +326,7 @@
* Get a cache entry for this request. Basically just malloc a new one
* and then call nfsrc_getudp() or nfsrc_gettcp() to do the rest.
*/
-APPLESTATIC int
+int
nfsrvd_getcache(struct nfsrv_descript *nd)
{
struct nfsrvcache *newrp;
@@ -453,7 +453,7 @@
/*
* Update a request cache entry after the rpc has been done
*/
-APPLESTATIC struct nfsrvcache *
+struct nfsrvcache *
nfsrvd_updatecache(struct nfsrv_descript *nd)
{
struct nfsrvcache *rp;
@@ -555,7 +555,7 @@
* Invalidate and, if possible, free an in prog cache entry.
* Must not sleep.
*/
-APPLESTATIC void
+void
nfsrvd_delcache(struct nfsrvcache *rp)
{
struct mtx *mutex;
@@ -575,7 +575,7 @@
* the entry's sequence number and unlock it. The argument is
* the pointer returned by nfsrvd_updatecache().
*/
-APPLESTATIC void
+void
nfsrvd_sentcache(struct nfsrvcache *rp, int have_seq, uint32_t seq)
{
struct nfsrchash_bucket *hbp;
@@ -807,7 +807,7 @@
/*
* Clean out the cache. Called when nfsserver module is unloaded.
*/
-APPLESTATIC void
+void
nfsrvd_cleancache(void)
{
struct nfsrvcache *rp, *nextrp;
@@ -972,7 +972,7 @@
/*
* Add a seqid# reference to the cache entry.
*/
-APPLESTATIC void
+void
nfsrvd_refcache(struct nfsrvcache *rp)
{
struct mtx *mutex;
@@ -991,7 +991,7 @@
/*
* Dereference a seqid# cache entry.
*/
-APPLESTATIC void
+void
nfsrvd_derefcache(struct nfsrvcache *rp)
{
struct mtx *mutex;
Index: sys/fs/nfsserver/nfs_nfsdserv.c
===================================================================
--- sys/fs/nfsserver/nfs_nfsdserv.c
+++ sys/fs/nfsserver/nfs_nfsdserv.c
@@ -110,7 +110,7 @@
/*
* nfs access service (not a part of NFS V2)
*/
-APPLESTATIC int
+int
nfsrvd_access(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t vp, struct nfsexstuff *exp)
{
@@ -217,7 +217,7 @@
/*
* nfs getattr service
*/
-APPLESTATIC int
+int
nfsrvd_getattr(struct nfsrv_descript *nd, int isdgram,
vnode_t vp, __unused struct nfsexstuff *exp)
{
@@ -344,7 +344,7 @@
/*
* nfs setattr service
*/
-APPLESTATIC int
+int
nfsrvd_setattr(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t vp, struct nfsexstuff *exp)
{
@@ -558,7 +558,7 @@
* nfs lookup rpc
* (Also performs lookup parent for v4)
*/
-APPLESTATIC int
+int
nfsrvd_lookup(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t dp, vnode_t *vpp, fhandle_t *fhp, struct nfsexstuff *exp)
{
@@ -658,7 +658,7 @@
/*
* nfs readlink service
*/
-APPLESTATIC int
+int
nfsrvd_readlink(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t vp, __unused struct nfsexstuff *exp)
{
@@ -702,7 +702,7 @@
/*
* nfs read service
*/
-APPLESTATIC int
+int
nfsrvd_read(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t vp, struct nfsexstuff *exp)
{
@@ -888,7 +888,7 @@
/*
* nfs write service
*/
-APPLESTATIC int
+int
nfsrvd_write(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t vp, struct nfsexstuff *exp)
{
@@ -1070,7 +1070,7 @@
* The core creation routine has been extracted out into nfsrv_creatsub(),
* so it can also be used by nfsrv_open() for V4.
*/
-APPLESTATIC int
+int
nfsrvd_create(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t dp, struct nfsexstuff *exp)
{
@@ -1240,7 +1240,7 @@
/*
* nfs v3 mknod service (and v4 create)
*/
-APPLESTATIC int
+int
nfsrvd_mknod(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t dp, vnode_t *vpp, fhandle_t *fhp, struct nfsexstuff *exp)
{
@@ -1458,7 +1458,7 @@
/*
* nfs remove service
*/
-APPLESTATIC int
+int
nfsrvd_remove(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t dp, struct nfsexstuff *exp)
{
@@ -1541,7 +1541,7 @@
/*
* nfs rename service
*/
-APPLESTATIC int
+int
nfsrvd_rename(struct nfsrv_descript *nd, int isdgram,
vnode_t dp, vnode_t todp, struct nfsexstuff *exp, struct nfsexstuff *toexp)
{
@@ -1711,7 +1711,7 @@
/*
* nfs link service
*/
-APPLESTATIC int
+int
nfsrvd_link(struct nfsrv_descript *nd, int isdgram,
vnode_t vp, vnode_t tovp, struct nfsexstuff *exp, struct nfsexstuff *toexp)
{
@@ -1814,7 +1814,7 @@
/*
* nfs symbolic link service
*/
-APPLESTATIC int
+int
nfsrvd_symlink(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t dp, vnode_t *vpp, fhandle_t *fhp, struct nfsexstuff *exp)
{
@@ -1934,7 +1934,7 @@
/*
* nfs mkdir service
*/
-APPLESTATIC int
+int
nfsrvd_mkdir(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t dp, vnode_t *vpp, fhandle_t *fhp, struct nfsexstuff *exp)
{
@@ -2068,7 +2068,7 @@
/*
* nfs commit service
*/
-APPLESTATIC int
+int
nfsrvd_commit(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t vp, __unused struct nfsexstuff *exp)
{
@@ -2126,7 +2126,7 @@
/*
* nfs statfs service
*/
-APPLESTATIC int
+int
nfsrvd_statfs(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t vp, __unused struct nfsexstuff *exp)
{
@@ -2186,7 +2186,7 @@
/*
* nfs fsinfo service
*/
-APPLESTATIC int
+int
nfsrvd_fsinfo(struct nfsrv_descript *nd, int isdgram,
vnode_t vp, __unused struct nfsexstuff *exp)
{
@@ -2226,7 +2226,7 @@
/*
* nfs pathconf service
*/
-APPLESTATIC int
+int
nfsrvd_pathconf(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t vp, __unused struct nfsexstuff *exp)
{
@@ -2278,7 +2278,7 @@
/*
* nfsv4 lock service
*/
-APPLESTATIC int
+int
nfsrvd_lock(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t vp, struct nfsexstuff *exp)
{
@@ -2506,7 +2506,7 @@
/*
* nfsv4 lock test service
*/
-APPLESTATIC int
+int
nfsrvd_lockt(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t vp, struct nfsexstuff *exp)
{
@@ -2621,7 +2621,7 @@
/*
* nfsv4 unlock service
*/
-APPLESTATIC int
+int
nfsrvd_locku(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t vp, struct nfsexstuff *exp)
{
@@ -2737,7 +2737,7 @@
/*
* nfsv4 open service
*/
-APPLESTATIC int
+int
nfsrvd_open(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t dp, vnode_t *vpp, __unused fhandle_t *fhp, struct nfsexstuff *exp)
{
@@ -3216,7 +3216,7 @@
/*
* nfsv4 close service
*/
-APPLESTATIC int
+int
nfsrvd_close(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t vp, __unused struct nfsexstuff *exp)
{
@@ -3297,7 +3297,7 @@
/*
* nfsv4 delegpurge service
*/
-APPLESTATIC int
+int
nfsrvd_delegpurge(struct nfsrv_descript *nd, __unused int isdgram,
__unused vnode_t vp, __unused struct nfsexstuff *exp)
{
@@ -3334,7 +3334,7 @@
/*
* nfsv4 delegreturn service
*/
-APPLESTATIC int
+int
nfsrvd_delegreturn(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t vp, __unused struct nfsexstuff *exp)
{
@@ -3375,7 +3375,7 @@
/*
* nfsv4 get file handle service
*/
-APPLESTATIC int
+int
nfsrvd_getfh(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t vp, __unused struct nfsexstuff *exp)
{
@@ -3393,7 +3393,7 @@
/*
* nfsv4 open confirm service
*/
-APPLESTATIC int
+int
nfsrvd_openconfirm(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t vp, __unused struct nfsexstuff *exp)
{
@@ -3447,7 +3447,7 @@
/*
* nfsv4 open downgrade service
*/
-APPLESTATIC int
+int
nfsrvd_opendowngrade(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t vp, __unused struct nfsexstuff *exp)
{
@@ -3558,7 +3558,7 @@
/*
* nfsv4 renew lease service
*/
-APPLESTATIC int
+int
nfsrvd_renew(struct nfsrv_descript *nd, __unused int isdgram,
__unused vnode_t vp, __unused struct nfsexstuff *exp)
{
@@ -3599,7 +3599,7 @@
/*
* nfsv4 security info service
*/
-APPLESTATIC int
+int
nfsrvd_secinfo(struct nfsrv_descript *nd, int isdgram,
vnode_t dp, struct nfsexstuff *exp)
{
@@ -3703,7 +3703,7 @@
/*
* nfsv4 set client id service
*/
-APPLESTATIC int
+int
nfsrvd_setclientid(struct nfsrv_descript *nd, __unused int isdgram,
__unused vnode_t vp, __unused struct nfsexstuff *exp)
{
@@ -3864,7 +3864,7 @@
/*
* nfsv4 set client id confirm service
*/
-APPLESTATIC int
+int
nfsrvd_setclientidcfrm(struct nfsrv_descript *nd,
__unused int isdgram, __unused vnode_t vp,
__unused struct nfsexstuff *exp)
@@ -3902,7 +3902,7 @@
/*
* nfsv4 verify service
*/
-APPLESTATIC int
+int
nfsrvd_verify(struct nfsrv_descript *nd, int isdgram,
vnode_t vp, __unused struct nfsexstuff *exp)
{
@@ -3942,7 +3942,7 @@
/*
* nfs openattr rpc
*/
-APPLESTATIC int
+int
nfsrvd_openattr(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t dp, __unused vnode_t *vpp, __unused fhandle_t *fhp,
__unused struct nfsexstuff *exp)
@@ -3962,7 +3962,7 @@
/*
* nfsv4 release lock owner service
*/
-APPLESTATIC int
+int
nfsrvd_releaselckown(struct nfsrv_descript *nd, __unused int isdgram,
__unused vnode_t vp, __unused struct nfsexstuff *exp)
{
@@ -4023,7 +4023,7 @@
/*
* nfsv4 exchange_id service
*/
-APPLESTATIC int
+int
nfsrvd_exchangeid(struct nfsrv_descript *nd, __unused int isdgram,
__unused vnode_t vp, __unused struct nfsexstuff *exp)
{
@@ -4189,7 +4189,7 @@
/*
* nfsv4 create session service
*/
-APPLESTATIC int
+int
nfsrvd_createsession(struct nfsrv_descript *nd, __unused int isdgram,
__unused vnode_t vp, __unused struct nfsexstuff *exp)
{
@@ -4302,7 +4302,7 @@
/*
* nfsv4 sequence service
*/
-APPLESTATIC int
+int
nfsrvd_sequence(struct nfsrv_descript *nd, __unused int isdgram,
__unused vnode_t vp, __unused struct nfsexstuff *exp)
{
@@ -4346,7 +4346,7 @@
/*
* nfsv4 reclaim complete service
*/
-APPLESTATIC int
+int
nfsrvd_reclaimcomplete(struct nfsrv_descript *nd, __unused int isdgram,
__unused vnode_t vp, __unused struct nfsexstuff *exp)
{
@@ -4379,7 +4379,7 @@
/*
* nfsv4 destroy clientid service
*/
-APPLESTATIC int
+int
nfsrvd_destroyclientid(struct nfsrv_descript *nd, __unused int isdgram,
__unused vnode_t vp, __unused struct nfsexstuff *exp)
{
@@ -4404,7 +4404,7 @@
/*
* nfsv4 bind connection to session service
*/
-APPLESTATIC int
+int
nfsrvd_bindconnsess(struct nfsrv_descript *nd, __unused int isdgram,
__unused vnode_t vp, __unused struct nfsexstuff *exp)
{
@@ -4443,7 +4443,7 @@
/*
* nfsv4 destroy session service
*/
-APPLESTATIC int
+int
nfsrvd_destroysession(struct nfsrv_descript *nd, __unused int isdgram,
__unused vnode_t vp, __unused struct nfsexstuff *exp)
{
@@ -4465,7 +4465,7 @@
/*
* nfsv4 free stateid service
*/
-APPLESTATIC int
+int
nfsrvd_freestateid(struct nfsrv_descript *nd, __unused int isdgram,
__unused vnode_t vp, __unused struct nfsexstuff *exp)
{
@@ -4513,7 +4513,7 @@
/*
* nfsv4 layoutget service
*/
-APPLESTATIC int
+int
nfsrvd_layoutget(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t vp, struct nfsexstuff *exp)
{
@@ -4611,7 +4611,7 @@
/*
* nfsv4 layoutcommit service
*/
-APPLESTATIC int
+int
nfsrvd_layoutcommit(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t vp, struct nfsexstuff *exp)
{
@@ -4697,7 +4697,7 @@
/*
* nfsv4 layoutreturn service
*/
-APPLESTATIC int
+int
nfsrvd_layoutreturn(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t vp, struct nfsexstuff *exp)
{
@@ -4783,7 +4783,7 @@
/*
* nfsv4 layout error service
*/
-APPLESTATIC int
+int
nfsrvd_layouterror(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t vp, struct nfsexstuff *exp)
{
@@ -4850,7 +4850,7 @@
/*
* nfsv4 layout stats service
*/
-APPLESTATIC int
+int
nfsrvd_layoutstats(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t vp, struct nfsexstuff *exp)
{
@@ -4912,7 +4912,7 @@
/*
* nfsv4 io_advise service
*/
-APPLESTATIC int
+int
nfsrvd_ioadvise(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t vp, struct nfsexstuff *exp)
{
@@ -5006,7 +5006,7 @@
/*
* nfsv4 getdeviceinfo service
*/
-APPLESTATIC int
+int
nfsrvd_getdevinfo(struct nfsrv_descript *nd, __unused int isdgram,
__unused vnode_t vp, __unused struct nfsexstuff *exp)
{
@@ -5078,7 +5078,7 @@
/*
* nfsv4 test stateid service
*/
-APPLESTATIC int
+int
nfsrvd_teststateid(struct nfsrv_descript *nd, __unused int isdgram,
__unused vnode_t vp, __unused struct nfsexstuff *exp)
{
@@ -5123,7 +5123,7 @@
/*
* nfs allocate service
*/
-APPLESTATIC int
+int
nfsrvd_allocate(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t vp, struct nfsexstuff *exp)
{
@@ -5216,7 +5216,7 @@
/*
* nfs copy service
*/
-APPLESTATIC int
+int
nfsrvd_copy_file_range(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t vp, vnode_t tovp, struct nfsexstuff *exp, struct nfsexstuff *toexp)
{
@@ -5452,7 +5452,7 @@
/*
* nfs seek service
*/
-APPLESTATIC int
+int
nfsrvd_seek(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t vp, struct nfsexstuff *exp)
{
@@ -5525,7 +5525,7 @@
/*
* nfs get extended attribute service
*/
-APPLESTATIC int
+int
nfsrvd_getxattr(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t vp, __unused struct nfsexstuff *exp)
{
@@ -5581,7 +5581,7 @@
/*
* nfs set extended attribute service
*/
-APPLESTATIC int
+int
nfsrvd_setxattr(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t vp, __unused struct nfsexstuff *exp)
{
@@ -5675,7 +5675,7 @@
/*
* nfs remove extended attribute service
*/
-APPLESTATIC int
+int
nfsrvd_rmxattr(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t vp, __unused struct nfsexstuff *exp)
{
@@ -5745,7 +5745,7 @@
/*
* nfs list extended attribute service
*/
-APPLESTATIC int
+int
nfsrvd_listxattr(struct nfsrv_descript *nd, __unused int isdgram,
vnode_t vp, __unused struct nfsexstuff *exp)
{
@@ -5857,7 +5857,7 @@
/*
* nfsv4 service not supported
*/
-APPLESTATIC int
+int
nfsrvd_notsupp(struct nfsrv_descript *nd, __unused int isdgram,
__unused vnode_t vp, __unused struct nfsexstuff *exp)
{
Index: sys/fs/nfsserver/nfs_nfsdsocket.c
===================================================================
--- sys/fs/nfsserver/nfs_nfsdsocket.c
+++ sys/fs/nfsserver/nfs_nfsdsocket.c
@@ -529,7 +529,7 @@
* handle plus name or ...
* The NFS V4 Compound RPC is performed separately by nfsrvd_compound().
*/
-APPLESTATIC void
+void
nfsrvd_dorpc(struct nfsrv_descript *nd, int isdgram, u_char *tag, int taglen,
u_int32_t minorvers)
{
Index: sys/fs/nfsserver/nfs_nfsdstate.c
===================================================================
--- sys/fs/nfsserver/nfs_nfsdstate.c
+++ sys/fs/nfsserver/nfs_nfsdstate.c
@@ -240,7 +240,7 @@
* If returning a non-error, the clp structure must either be linked into
* the client list or free'd.
*/
-APPLESTATIC int
+int
nfsrv_setclient(struct nfsrv_descript *nd, struct nfsclient **new_clpp,
nfsquad_t *clientidp, nfsquad_t *confirmp, NFSPROC_T *p)
{
@@ -581,7 +581,7 @@
/*
* Check to see if the client id exists and optionally confirm it.
*/
-APPLESTATIC int
+int
nfsrv_getclient(nfsquad_t clientid, int opflags, struct nfsclient **clpp,
struct nfsdsession *nsep, nfsquad_t confirm, uint32_t cbprogram,
struct nfsrv_descript *nd, NFSPROC_T *p)
@@ -864,7 +864,7 @@
* Called from the new nfssvc syscall to admin revoke a clientid.
* Returns 0 for success, error otherwise.
*/
-APPLESTATIC int
+int
nfsrv_adminrevoke(struct nfsd_clid *revokep, NFSPROC_T *p)
{
struct nfsclient *clp = NULL;
@@ -932,7 +932,7 @@
* Dump out stats for all clients. Called from nfssvc(2), that is used
* nfsstatsv1.
*/
-APPLESTATIC void
+void
nfsrv_dumpclients(struct nfsd_dumpclients *dumpp, int maxcnt)
{
struct nfsclient *clp;
@@ -1035,7 +1035,7 @@
/*
* Dump out lock stats for a file.
*/
-APPLESTATIC void
+void
nfsrv_dumplocks(vnode_t vp, struct nfsd_dumplocks *ldumpp, int maxcnt,
NFSPROC_T *p)
{
@@ -1208,7 +1208,7 @@
* Darwin, I'm not sure what will work correctly yet.)
* Should be called once per second.
*/
-APPLESTATIC void
+void
nfsrv_servertimer(void)
{
struct nfsclient *clp, *nclp;
@@ -1333,7 +1333,7 @@
* Caller must hold an exclusive lock on nfsv4rootfs_lock, so that
* there are no other active nfsd threads.
*/
-APPLESTATIC void
+void
nfsrv_cleanclient(struct nfsclient *clp, NFSPROC_T *p)
{
struct nfsstate *stp, *nstp;
@@ -1352,7 +1352,7 @@
* (Just to be safe w.r.t. newnfs_disconnect(), call this function when
* softclock interrupts are enabled.)
*/
-APPLESTATIC void
+void
nfsrv_zapclient(struct nfsclient *clp, NFSPROC_T *p)
{
@@ -1384,7 +1384,7 @@
* (This function will also free all nfslockfile structures that no
* longer have associated state.)
*/
-APPLESTATIC void
+void
nfsrv_freedeleglist(struct nfsstatehead *sthp)
{
struct nfsstate *stp, *nstp;
@@ -1668,7 +1668,7 @@
* cases, *new_stpp and *new_lopp should be malloc'd before the call,
* in case they are used.
*/
-APPLESTATIC int
+int
nfsrv_lockctrl(vnode_t vp, struct nfsstate **new_stpp,
struct nfslock **new_lopp, struct nfslockconflict *cfp,
nfsquad_t clientid, nfsv4stateid_t *stateidp,
@@ -2391,7 +2391,7 @@
* repstat is passed back out as an error if more critical errors
* are not detected.
*/
-APPLESTATIC int
+int
nfsrv_opencheck(nfsquad_t clientid, nfsv4stateid_t *stateidp,
struct nfsstate *new_stp, vnode_t vp, struct nfsrv_descript *nd,
NFSPROC_T *p, int repstat)
@@ -2642,7 +2642,7 @@
/*
* Open control function to create/update open state for an open.
*/
-APPLESTATIC int
+int
nfsrv_openctrl(struct nfsrv_descript *nd, vnode_t vp,
struct nfsstate **new_stpp, nfsquad_t clientid, nfsv4stateid_t *stateidp,
nfsv4stateid_t *delegstateidp, u_int32_t *rflagsp, struct nfsexstuff *exp,
@@ -3408,7 +3408,7 @@
/*
* Open update. Does the confirm, downgrade and close.
*/
-APPLESTATIC int
+int
nfsrv_openupdate(vnode_t vp, struct nfsstate *new_stp, nfsquad_t clientid,
nfsv4stateid_t *stateidp, struct nfsrv_descript *nd, NFSPROC_T *p,
int *retwriteaccessp)
@@ -3572,7 +3572,7 @@
/*
* Delegation update. Does the purge and return.
*/
-APPLESTATIC int
+int
nfsrv_delegupdate(struct nfsrv_descript *nd, nfsquad_t clientid,
nfsv4stateid_t *stateidp, vnode_t vp, int op, struct ucred *cred,
NFSPROC_T *p, int *retwriteaccessp)
@@ -3661,7 +3661,7 @@
/*
* Release lock owner.
*/
-APPLESTATIC int
+int
nfsrv_releaselckown(struct nfsstate *new_stp, nfsquad_t clientid,
NFSPROC_T *p)
{
@@ -4047,7 +4047,7 @@
* for callbacks, but can be printed out by nfsstats for info.)
* Return error if the xdr can't be parsed, 0 otherwise.
*/
-APPLESTATIC int
+int
nfsrv_getclientipaddr(struct nfsrv_descript *nd, struct nfsclient *clp)
{
u_int32_t *tl;
@@ -4802,7 +4802,7 @@
* Read in the stable storage file. Called by nfssvc() before the nfsd
* processes start servicing requests.
*/
-APPLESTATIC void
+void
nfsrv_setupstable(NFSPROC_T *p)
{
struct nfsrv_stablefirst *sf = &nfsrv_stablefirst;
@@ -4937,7 +4937,7 @@
/*
* Update the stable storage file, now that the grace period is over.
*/
-APPLESTATIC void
+void
nfsrv_updatestable(NFSPROC_T *p)
{
struct nfsrv_stablefirst *sf = &nfsrv_stablefirst;
@@ -5020,7 +5020,7 @@
/*
* Append a record to the stable storage file.
*/
-APPLESTATIC void
+void
nfsrv_writestable(u_char *client, int len, int flag, NFSPROC_T *p)
{
struct nfsrv_stablefirst *sf = &nfsrv_stablefirst;
@@ -5388,7 +5388,7 @@
* Check for a remove allowed, if remove is set to 1 and get rid of
* delegations.
*/
-APPLESTATIC int
+int
nfsrv_checkremove(vnode_t vp, int remove, struct nfsrv_descript *nd,
nfsquad_t clientid, NFSPROC_T *p)
{
@@ -5533,7 +5533,7 @@
* and all delegations for the vnode recalled. This is done via the
* second function, using the VV_DISABLEDELEG vflag on the vnode.
*/
-APPLESTATIC void
+void
nfsd_recalldelegation(vnode_t vp, NFSPROC_T *p)
{
time_t starttime;
@@ -5580,7 +5580,7 @@
NFSUNLOCKV4ROOTMUTEX();
}
-APPLESTATIC void
+void
nfsd_disabledelegation(vnode_t vp, NFSPROC_T *p)
{
@@ -5610,7 +5610,7 @@
* as Write backs, even if there is no delegation, so it really isn't any
* different?)
*/
-APPLESTATIC int
+int
nfsrv_checksetattr(vnode_t vp, struct nfsrv_descript *nd,
nfsv4stateid_t *stateidp, struct nfsvattr *nvap, nfsattrbit_t *attrbitp,
struct nfsexstuff *exp, NFSPROC_T *p)
@@ -5657,7 +5657,7 @@
* Should I return an error if I can't get the attributes? (For now, I'll
* just return ok.
*/
-APPLESTATIC int
+int
nfsrv_checkgetattr(struct nfsrv_descript *nd, vnode_t vp,
struct nfsvattr *nvap, nfsattrbit_t *attrbitp, NFSPROC_T *p)
{
@@ -5763,7 +5763,7 @@
* a while and throws them away. Called by an nfsd when NFSNSF_NOOPENS
* is set.
*/
-APPLESTATIC void
+void
nfsrv_throwawayopens(NFSPROC_T *p)
{
struct nfsclient *clp, *nclp;
@@ -6654,7 +6654,7 @@
* This is only called after all the nfsd threads are done performing RPCs,
* so locking shouldn't be an issue.
*/
-APPLESTATIC void
+void
nfsrv_freeallbackchannel_xprts(void)
{
struct nfsdsession *sep;
@@ -7794,7 +7794,7 @@
* point.
* Also, returns an error instead of the nfsdevice found.
*/
-APPLESTATIC int
+int
nfsrv_delds(char *devid, NFSPROC_T *p)
{
struct nfsdevice *ds, *fndds;
@@ -8048,7 +8048,7 @@
* Getattr RPC to the Data Server (DS) is necessary.
*/
#define NFSCLIDVECSIZE 6
-APPLESTATIC int
+int
nfsrv_checkdsattr(vnode_t vp, NFSPROC_T *p)
{
fhandle_t fh, *tfhp;
Index: sys/fs/nfsserver/nfs_nfsdsubs.c
===================================================================
--- sys/fs/nfsserver/nfs_nfsdsubs.c
+++ sys/fs/nfsserver/nfs_nfsdsubs.c
@@ -1271,7 +1271,7 @@
* A fiddled version of m_adj() that ensures null fill to a long
* boundary and only trims off the back end
*/
-APPLESTATIC void
+void
nfsrv_adj(struct mbuf *mp, int len, int nul)
{
struct mbuf *m;
@@ -1330,7 +1330,7 @@
* Make these functions instead of macros, so that the kernel text size
* doesn't get too big...
*/
-APPLESTATIC void
+void
nfsrv_wcc(struct nfsrv_descript *nd, int before_ret,
struct nfsvattr *before_nvap, int after_ret, struct nfsvattr *after_nvap)
{
@@ -1351,7 +1351,7 @@
nfsrv_postopattr(nd, after_ret, after_nvap);
}
-APPLESTATIC void
+void
nfsrv_postopattr(struct nfsrv_descript *nd, int after_ret,
struct nfsvattr *after_nvap)
{
@@ -1370,7 +1370,7 @@
* Fill in file attributes for V2 and 3. For V4, call a separate
* routine that sifts through all the attribute bits.
*/
-APPLESTATIC void
+void
nfsrv_fillattr(struct nfsrv_descript *nd, struct nfsvattr *nvap)
{
struct nfs_fattr *fp;
@@ -1429,7 +1429,7 @@
* the public file handle.
* For NFSv4, if the length is incorrect, set nd_repstat == NFSERR_BADHANDLE
*/
-APPLESTATIC int
+int
nfsrv_mtofh(struct nfsrv_descript *nd, struct nfsrvfh *fhp)
{
u_int32_t *tl;
@@ -1498,7 +1498,7 @@
* RPC procedure is not involved.
* Returns the error number in XDR.
*/
-APPLESTATIC int
+int
nfsd_errmap(struct nfsrv_descript *nd)
{
short *defaulterrp, *errp;
@@ -1554,7 +1554,7 @@
* file object. (Called when uid and/or gid is specified in the
* settable attributes for V4.
*/
-APPLESTATIC int
+int
nfsrv_checkuidgid(struct nfsrv_descript *nd, struct nfsvattr *nvap)
{
int error = 0;
@@ -1587,7 +1587,7 @@
* and this routine fixes up the settable attributes for V4 if allowed
* by nfsrv_checkuidgid().
*/
-APPLESTATIC void
+void
nfsrv_fixattr(struct nfsrv_descript *nd, vnode_t vp,
struct nfsvattr *nvap, NFSACL_T *aclp, NFSPROC_T *p, nfsattrbit_t *attrbitp,
struct nfsexstuff *exp)
@@ -1695,7 +1695,7 @@
* Check to see if NFSERR_MOVED can be returned for this op. Return 1 iff
* it can be.
*/
-APPLESTATIC int
+int
nfsrv_errmoved(int op)
{
short *errp;
@@ -1713,7 +1713,7 @@
* Fill in attributes for a Referral.
* (Return the number of bytes of XDR created.)
*/
-APPLESTATIC int
+int
nfsrv_putreferralattr(struct nfsrv_descript *nd, nfsattrbit_t *retbitp,
struct nfsreferral *refp, int getattr, int *reterrp)
{
@@ -1831,7 +1831,7 @@
/*
* Parse a file name out of a request.
*/
-APPLESTATIC int
+int
nfsrv_parsename(struct nfsrv_descript *nd, char *bufp, u_long *hashp,
NFSPATHLEN_T *outlenp)
{
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Feb 4, 12:43 AM (20 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16445483
Default Alt Text
D24811.diff (57 KB)
Attached To
Mode
D24811: nfs: Remove APPLESTATIC macro
Attached
Detach File
Event Timeline
Log In to Comment