this doesn't work right now. revert it
#include <afs/vice.h>
#ifdef AFS_AIX_ENV
#include <sys/lockf.h>
-#ifdef AFS_AIX51_ENV
-#include <sys/cred.h>
-#endif
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
static afs_uint32
curpag()
{
-#if defined(AFS_AIX51_ENV)
- afs_int32 pag;
-
- if (get_pag(PAG_AFS, &pag) < 0 || pag == 0)
- pag = NOPAG;
- return pag;
-#else
gid_t groups[NGROUPS_MAX];
afs_uint32 g0, g1;
afs_uint32 h, l, ret;
return -1;
}
return -1;
-#endif
}
#endif
#endif
#include <stdlib.h>
-#ifdef AFS_AIX51_ENV
-#include <sys/cred.h>
-#endif
RCSID
("$Header$");
#if defined(AFS_AIX51_ENV)
afs_int32 pag;
- if (get_pag(PAG_AFS, &pag) < 0 || pag == 0)
+ if (kcred_getpag(cred, PAG_AFS, &pag) < 0 || pag == 0)
pag = NOPAG;
return pag;
#else
return -1;
}
return -1;
-#endif
}
/* Returns the AFS pag number, if any, otherwise return -1 */
#ifdef AFS_AIX32_ENV
#include <signal.h>
-#ifdef AFS_AIX51_ENV
-#include <sys/cred.h>
-#endif
#endif
#include <stdio.h>
#include <stdlib.h>
static afs_uint32
curpag(void)
{
-#if defined(AFS_AIX51_ENV)
- afs_int32 pag;
-
- if (get_pag(PAG_AFS, &pag) < 0 || pag == 0)
- pag = -1;
- return pag;
-#else
afs_uint32 groups[NGROUPS_MAX];
afs_uint32 g0, g1;
afs_uint32 h, l, ret;
return -1;
}
return -1;
-#endif
}
int