int
-setpag(proc, cred, pagvalue, newpag, change_parent)
- struct proc *proc;
- struct ucred **cred;
- afs_uint32 pagvalue;
- afs_uint32 *newpag;
- afs_uint32 change_parent;
+setpag(struct proc *proc, struct ucred **cred, afs_uint32 pagvalue,
+ afs_uint32 *newpag, int change_parent)
{
gid_t gidset[NGROUPS];
int ngroups, code;
int follow;
{
struct afs_ioctl data;
-#ifdef AFS_NEED_CLIENTCONTEXT
struct AFS_UCRED *tmpcred, *foreigncreds = NULL;
-#endif
register afs_int32 code = 0;
struct vnode *vp;
#ifdef AFS_DEC_ENV
if ((com & 0xff) == 15) {
/* special case prefetch so entire pathname eval occurs in helper process.
otherwise, the pioctl call is essentially useless */
-#if defined(AFS_SUN5_ENV) || defined(AFS_AIX41_ENV) || defined(AFS_LINUX22_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_FBSD_ENV)
+#if defined(AFS_SUN5_ENV) || defined(AFS_AIX41_ENV) || defined(AFS_LINUX22_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
code = Prefetch(path, &data, follow,
foreigncreds ? foreigncreds : credp);
#else
#endif
-/* OBSD/osi_misc.c */
-#ifdef AFS_OBSD_ENV
-extern int setpag(struct proc *proc, struct ucred **cred, afs_uint32 pagvalue,
- afs_uint32 *newpag, int change_parent);
-#endif
-
/* ARCH/osi_sleep.c */
extern void afs_osi_InitWaitHandle(struct afs_osi_WaitHandle *achandle);
extern void afs_osi_CancelWait(struct afs_osi_WaitHandle *achandle);
extern void shutdown_osifile(void);
+/* ARCH/osi_groups.c */
+#ifdef AFS_XBSD_ENV
+extern int setpag(struct proc *proc, struct ucred **cred, afs_uint32 pagvalue,
+ afs_uint32 *newpag, int change_parent);
+#endif
+
+
/* ARCH/osi_vm.c */
extern int osi_VM_FlushVCache(struct vcache *avc, int *slept);
extern void osi_VM_StoreAllSegments(struct vcache *avc);