register u_int32_t *tl; register caddr_t cp; register int32_t t2; caddr_t bpos, dpos; int error = 0; struct mbuf *mreq, *mrep, *md, *mb, *mb2;  nfsstats.rpccnt[NFSPROC_RENAME]++; nfsm_reqhead(sdvp, NFSPROC_RENAME, (NFSX_FH+NFSX_UNSIGNED)*2+nfsm_rndup(scnp->cn_namelen)+ nfsm_rndup(sp->s_namlen)); nfsm_fhtom(sdvp); nfsm_strtom(scnp->cn_nameptr, scnp->cn_namelen, NFS_MAXNAMLEN); nfsm_fhtom(sdvp); nfsm_strtom(sp->s_name, sp->s_namlen, NFS_MAXNAMLEN); nfsm_request(sdvp, NFSPROC_RENAME, scnp->cn_proc, scnp->cn_cred); nfsm_reqdone; FREE(scnp->cn_pnbuf, M_NAMEI); VTONFS(sdvp)->n_flag |= NMODIFIED; VTONFS(sdvp)->n_attrstamp = 0; return (error);
return (nfs_renamerpc(sdvp, scnp->cn_nameptr, scnp->cn_namelen, sdvp, sp->s_name, sp->s_namlen, scnp->cn_cred, scnp->cn_proc));
nfs_renameit(sdvp, scnp, sp)	struct vnode *sdvp;	struct componentname *scnp;	register struct sillyrename *sp;{	register u_int32_t *tl;	register caddr_t cp;	register int32_t t2;	caddr_t bpos, dpos;	int error = 0;	struct mbuf *mreq, *mrep, *md, *mb, *mb2;	nfsstats.rpccnt[NFSPROC_RENAME]++;	nfsm_reqhead(sdvp, NFSPROC_RENAME,		(NFSX_FH+NFSX_UNSIGNED)*2+nfsm_rndup(scnp->cn_namelen)+		nfsm_rndup(sp->s_namlen));	nfsm_fhtom(sdvp);	nfsm_strtom(scnp->cn_nameptr, scnp->cn_namelen, NFS_MAXNAMLEN);	nfsm_fhtom(sdvp);	nfsm_strtom(sp->s_name, sp->s_namlen, NFS_MAXNAMLEN);	nfsm_request(sdvp, NFSPROC_RENAME, scnp->cn_proc, scnp->cn_cred);	nfsm_reqdone;	FREE(scnp->cn_pnbuf, M_NAMEI);	VTONFS(sdvp)->n_flag |= NMODIFIED;	VTONFS(sdvp)->n_attrstamp = 0;	return (error);}