#define __XDR_INCLUDE__
#include "afs/stds.h"
#include "afs/sysincludes.h" /* Standard vendor system headers */
-#if defined(AFS_SUN55_ENV) && !defined(AFS_NONFSTRANS)
+#if defined(AFS_SUN5_ENV) && !defined(AFS_NONFSTRANS)
#include "rpc/types.h"
#include "rpc/auth.h"
#include "rpc/auth_unix.h"
#include "rpc/auth_des.h"
-#if !defined(AFS_SUN58_ENV)
-#include "rpc/auth_kerb.h"
-#endif
#include "sys/tiuser.h"
-#include "rpc/xdr.h"
#include "rpc/svc.h"
#include "nfs/nfs.h"
+
#include "nfs/export.h"
+/* Solaris 11.1 defines areq to areq_u.areq (and auid to areq_u.auid), for
+ * shortcut accessors to the nfsauth_arg structure. Since we dare to use the
+ * names areq and auid as parameter names in a lot of functions, work around
+ * this by undefining it. */
+#ifdef areq
+# undef areq
+#endif
+#ifdef auid
+# undef auid
+#endif
+
#include "nfs/nfs_clnt.h"
#include "nfs/nfs_acl.h"
#include "afs/afsincludes.h"
fhp = &sargs->fh;
break;
}
-#if defined(AFS_SUN510_ENV)
+#if defined(AFS_SUN510_ENV)
case ACLPROC2_GETXATTRDIR:
{
struct GETXATTRDIR2args *sargs = (struct GETXATTRDIR2args *)args;
int
afs_nfs2_dispatcher(int type, afs_int32 which, char *argp,
struct exportinfo **expp, struct svc_req *rp,
- AFS_UCRED *crp)
+ afs_ucred_t *crp)
{
afs_int32 call = 0;
afs_int32 code = 0;
void
afs_nfs2_smallfidder(struct nfsdiropres *dr)
{
- register fhandle_t *fhp = (fhandle_t *) & dr->dr_fhandle;
+ fhandle_t *fhp = (fhandle_t *) & dr->dr_fhandle;
afs_int32 addr[2];
struct vcache *vcp;
-#if defined(AFS_SUN57_64BIT_ENV)
+#if defined(AFS_SUN5_64BIT_ENV)
/* See also afs_fid() */
memcpy((char *)addr, fhp->fh_data, SIZEOF_SMALLFID);
addr[1] = (addr[1] >> 48) & 0xffff;
afs_nfs2_getattr(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call = afs_nfs2_dispatcher(0, RFS_GETATTR, (char *)args, &exp, rp, crp);
if (call > 1)
afs_nfs2_noaccess((struct afs_nfs2_resp *)xp);
afs_nfs2_setattr(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call = afs_nfs2_dispatcher(0, RFS_SETATTR, (char *)args, &exp, rp, crp);
if (call > 1)
afs_nfs2_noaccess((struct afs_nfs2_resp *)xp);
afs_nfs2_lookup(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call = afs_nfs2_dispatcher(0, RFS_LOOKUP, (char *)args, &exp, rp, crp);
if (call > 1)
afs_nfs2_noaccess((struct afs_nfs2_resp *)xp);
afs_nfs2_readlink(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call = afs_nfs2_dispatcher(0, RFS_READLINK, (char *)args, &exp, rp, crp);
if (call > 1)
afs_nfs2_noaccess((struct afs_nfs2_resp *)xp);
afs_nfs2_read(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call = afs_nfs2_dispatcher(0, RFS_READ, (char *)args, &exp, rp, crp);
if (call > 1)
afs_nfs2_noaccess((struct afs_nfs2_resp *)xp);
afs_nfs2_write(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call = afs_nfs2_dispatcher(0, RFS_WRITE, (char *)args, &exp, rp, crp);
if (call > 1)
afs_nfs2_noaccess((struct afs_nfs2_resp *)xp);
afs_nfs2_create(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call = afs_nfs2_dispatcher(0, RFS_CREATE, (char *)args, &exp, rp, crp);
if (call > 1)
afs_nfs2_noaccess((struct afs_nfs2_resp *)xp);
afs_nfs2_remove(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call = afs_nfs2_dispatcher(0, RFS_REMOVE, (char *)args, &exp, rp, crp);
if (call > 1)
afs_nfs2_noaccess((struct afs_nfs2_resp *)xp);
afs_nfs2_rename(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call = afs_nfs2_dispatcher(0, RFS_RENAME, (char *)args, &exp, rp, crp);
if (call > 1)
afs_nfs2_noaccess((struct afs_nfs2_resp *)xp);
afs_nfs2_link(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call = afs_nfs2_dispatcher(0, RFS_LINK, (char *)args, &exp, rp, crp);
if (call > 1)
afs_nfs2_noaccess((struct afs_nfs2_resp *)xp);
afs_nfs2_symlink(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call = afs_nfs2_dispatcher(0, RFS_SYMLINK, (char *)args, &exp, rp, crp);
if (call > 1)
afs_nfs2_noaccess((struct afs_nfs2_resp *)xp);
afs_nfs2_mkdir(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call = afs_nfs2_dispatcher(0, RFS_MKDIR, (char *)args, &exp, rp, crp);
if (call > 1)
afs_nfs2_noaccess((struct afs_nfs2_resp *)xp);
afs_nfs2_rmdir(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call = afs_nfs2_dispatcher(0, RFS_RMDIR, (char *)args, &exp, rp, crp);
if (call > 1)
afs_nfs2_noaccess((struct afs_nfs2_resp *)xp);
afs_nfs2_readdir(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call = afs_nfs2_dispatcher(0, RFS_READDIR, (char *)args, &exp, rp, crp);
if (call > 1)
afs_nfs2_noaccess((struct afs_nfs2_resp *)xp);
afs_nfs2_statfs(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call = afs_nfs2_dispatcher(0, RFS_STATFS, (char *)args, &exp, rp, crp);
if (call > 1)
afs_nfs2_noaccess((struct afs_nfs2_resp *)xp);
afs_acl2_getacl(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call =
afs_nfs2_dispatcher(1, ACLPROC2_GETACL, (char *)args, &exp, rp, crp);
if (call > 1)
afs_acl2_setacl(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call =
afs_nfs2_dispatcher(1, ACLPROC2_SETACL, (char *)args, &exp, rp, crp);
if (call > 1)
afs_acl2_getattr(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call =
afs_nfs2_dispatcher(1, ACLPROC2_GETATTR, (char *)args, &exp, rp, crp);
if (call > 1)
afs_acl2_access(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call =
afs_nfs2_dispatcher(1, ACLPROC2_ACCESS, (char *)args, &exp, rp, crp);
if (call > 1)
return;
}
-#if defined(AFS_SUN510_ENV)
+#if defined(AFS_SUN510_ENV)
void
afs_acl2_getxattrdir(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call =
afs_nfs2_dispatcher(1, ACLPROC2_GETXATTRDIR, (char *)args, &exp, rp, crp);
if (call > 1)
{afs_acl2_setacl},
{afs_acl2_getattr},
{afs_acl2_access},
-#if defined(AFS_SUN510_ENV)
+#if defined(AFS_SUN510_ENV)
{afs_acl2_getxattrdir}
#endif
};
case NFSPROC3_LOOKUP:
{
LOOKUP3args *arg = (LOOKUP3args *) args;
-#ifdef AFS_SUN58_ENV
fhp1 = (nfs_fh3 *) arg->what.dirp;
-#else
- fhp1 = (nfs_fh3 *) & arg->what.dir;
-#endif
break;
}
case NFSPROC3_ACCESS:
case NFSPROC3_CREATE:
{
CREATE3args *arg = (CREATE3args *) args;
-#ifdef AFS_SUN58_ENV
fhp1 = (nfs_fh3 *) arg->where.dirp;
-#else
- fhp1 = (nfs_fh3 *) & arg->where.dir;
-#endif
break;
}
case NFSPROC3_MKDIR:
{
MKDIR3args *arg = (MKDIR3args *) args;
-#ifdef AFS_SUN58_ENV
fhp1 = (nfs_fh3 *) arg->where.dirp;
-#else
- fhp1 = (nfs_fh3 *) & arg->where.dir;
-#endif
break;
}
case NFSPROC3_SYMLINK:
{
SYMLINK3args *arg = (SYMLINK3args *) args;
-#ifdef AFS_SUN58_ENV
fhp1 = (nfs_fh3 *) arg->where.dirp;
-#else
- fhp1 = (nfs_fh3 *) & arg->where.dir;
-#endif
break;
}
case NFSPROC3_MKNOD:
{
MKNOD3args *arg = (MKNOD3args *) args;
-#ifdef AFS_SUN58_ENV
fhp1 = (nfs_fh3 *) arg->where.dirp;
-#else
- fhp1 = (nfs_fh3 *) & arg->where.dir;
-#endif
break;
}
case NFSPROC3_REMOVE:
{
REMOVE3args *arg = (REMOVE3args *) args;
-#ifdef AFS_SUN58_ENV
fhp1 = (nfs_fh3 *) arg->object.dirp;
-#else
- fhp1 = (nfs_fh3 *) & arg->object.dir;
-#endif
break;
}
case NFSPROC3_RMDIR:
{
RMDIR3args *arg = (RMDIR3args *) args;
-#ifdef AFS_SUN58_ENV
fhp1 = (nfs_fh3 *) arg->object.dirp;
-#else
- fhp1 = (nfs_fh3 *) & arg->object.dir;
-#endif
break;
}
case NFSPROC3_RENAME:
{
RENAME3args *arg = (RENAME3args *) args;
-#ifdef AFS_SUN58_ENV
fhp1 = (nfs_fh3 *) arg->from.dirp;
fhp2 = (nfs_fh3 *) arg->to.dirp;
-#else
- fhp1 = (nfs_fh3 *) & arg->from.dir;
- fhp2 = (nfs_fh3 *) & arg->to.dir;
-#endif
break;
}
case NFSPROC3_LINK:
{
LINK3args *arg = (LINK3args *) args;
fhp1 = (nfs_fh3 *) & arg->file;
-#ifdef AFS_SUN58_ENV
fhp2 = (nfs_fh3 *) arg->link.dirp;
-#else
- fhp2 = (nfs_fh3 *) & arg->link.dir;
-#endif
break;
}
case NFSPROC3_READDIR:
fhp = &sargs->fh;
break;
}
-#if defined(AFS_SUN510_ENV)
+#if defined(AFS_SUN510_ENV)
case ACLPROC3_GETXATTRDIR:
{
struct GETXATTRDIR3args *sargs = (struct GETXATTRDIR3args *)args;
int
afs_nfs3_dispatcher(int type, afs_int32 which, char *argp,
struct exportinfo **expp, struct svc_req *rp,
- AFS_UCRED *crp)
+ afs_ucred_t *crp)
{
afs_int32 call = 0;
afs_int32 code = 0;
return 2;
sa = (struct sockaddr *)svc_getrpccaller(rp->rq_xprt)->buf;
- if (sa == NULL)
- return;
+ if (sa == NULL)
+ return 3;
if (sa->sa_family == AF_INET)
client = ((struct sockaddr_in *)sa)->sin_addr.s_addr;
afs_int32 addr[2];
struct vcache *vcp;
-#if defined(AFS_SUN57_64BIT_ENV)
+#if defined(AFS_SUN5_64BIT_ENV)
/* See also afs_fid() */
memcpy((char *)addr, fhp->fh3_data, 10);
addr[1] = (addr[1] >> 48) & 0xffff;
{
u_int call;
afs_nfs3_resp dummy;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_GETATTR, (char *)args, &exp, rp, crp);
if (call > 1)
{
u_int call;
afs_nfs3_resp dummy;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_SETATTR, (char *)args, &exp, rp, crp);
if (call > 1)
{
u_int call;
afs_nfs3_resp dummy;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_LOOKUP, (char *)args, &exp, rp, crp);
if (call > 1)
{
u_int call;
afs_nfs3_resp dummy;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_ACCESS, (char *)args, &exp, rp, crp);
if (call > 1)
{
u_int call;
afs_nfs3_resp dummy;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_READLINK, (char *)args, &exp, rp,
crp);
{
u_int call;
afs_nfs3_resp dummy;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call = afs_nfs3_dispatcher(0, NFSPROC3_READ, (char *)args, &exp, rp, crp);
if (call > 1)
afs_nfs3_noaccess((struct afs_nfs3_resp *)xp);
{
u_int call;
afs_nfs3_resp dummy;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_WRITE, (char *)args, &exp, rp, crp);
if (call > 1)
{
u_int call;
afs_nfs3_resp dummy;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_CREATE, (char *)args, &exp, rp, crp);
if (call > 1)
{
u_int call;
afs_nfs3_resp dummy;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_MKDIR, (char *)args, &exp, rp, crp);
if (call > 1)
{
u_int call;
afs_nfs3_resp dummy;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_SYMLINK, (char *)args, &exp, rp, crp);
if (call > 1)
{
u_int call;
afs_nfs3_resp dummy;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_MKNOD, (char *)args, &exp, rp, crp);
if (call > 1)
{
u_int call;
afs_nfs3_resp dummy;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_REMOVE, (char *)args, &exp, rp, crp);
if (call > 1)
{
u_int call;
afs_nfs3_resp dummy;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_RMDIR, (char *)args, &exp, rp, crp);
if (call > 1)
{
u_int call;
afs_nfs3_resp dummy;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_RENAME, (char *)args, &exp, rp, crp);
if (call > 1)
{
u_int call;
afs_nfs3_resp dummy;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call = afs_nfs3_dispatcher(0, NFSPROC3_LINK, (char *)args, &exp, rp, crp);
if (call > 1)
afs_nfs3_noaccess((struct afs_nfs3_resp *)xp);
{
u_int call;
afs_nfs3_resp dummy;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_READDIR, (char *)args, &exp, rp, crp);
if (call > 1)
{
u_int call;
afs_nfs3_resp dummy;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_READDIRPLUS, (char *)args, &exp, rp,
crp);
{
u_int call;
afs_nfs3_resp dummy;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_FSSTAT, (char *)args, &exp, rp, crp);
if (call > 1)
{
u_int call;
afs_nfs3_resp dummy;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_FSINFO, (char *)args, &exp, rp, crp);
if (call > 1)
{
u_int call;
afs_nfs3_resp dummy;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_PATHCONF, (char *)args, &exp, rp,
crp);
{
u_int call;
afs_nfs3_resp dummy;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_COMMIT, (char *)args, &exp, rp, crp);
if (call > 1)
afs_acl3_getacl(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call =
afs_nfs3_dispatcher(1, ACLPROC3_GETACL, (char *)args, &exp, rp, crp);
if (call > 1)
afs_acl3_setacl(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call =
afs_nfs3_dispatcher(1, ACLPROC3_SETACL, (char *)args, &exp, rp, crp);
if (call > 1)
return;
}
-#if defined(AFS_SUN510_ENV)
+#if defined(AFS_SUN510_ENV)
void
afs_acl3_getxattrdir(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- AFS_UCRED *svcred = curthread->t_cred;
- curthread->t_cred = (AFS_UCRED *)crp;
+ afs_ucred_t *svcred = curthread->t_cred;
+ curthread->t_cred = (afs_ucred_t *)crp;
call =
afs_nfs3_dispatcher(1, ACLPROC3_GETXATTRDIR, (char *)args, &exp, rp, crp);
if (call > 1)
{afs_nfs2_null},
{afs_acl3_getacl},
{afs_acl3_setacl},
-#if defined(AFS_SUN510_ENV)
+#if defined(AFS_SUN510_ENV)
{afs_acl3_getxattrdir},
#endif
};