#include <afs/vice.h>
#ifdef AFS_AIX_ENV
#include <sys/lockf.h>
+#ifdef AFS_AIX51_ENV
+#include <sys/cred.h>
+#include <sys/pag.h>
+#endif
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
return 0;
}
-
-ktc_SetToken(aserver, atoken, aclient, flags)
- struct ktc_principal *aserver;
- struct ktc_principal *aclient;
- struct ktc_token *atoken;
- afs_int32 flags;
+int
+ktc_SetToken(struct ktc_principal *aserver,
+ struct ktc_token *atoken,
+ struct ktc_principal *aclient,
+ afs_int32 flags)
{
int ncode, ocode;
* next rock in (*aindex). (*aserver) is set to the relevant ticket on
* success. */
-ktc_ListTokens(aprevIndex, aindex, aserver)
- int aprevIndex, *aindex;
- struct ktc_principal *aserver;
+int
+ktc_ListTokens(int aprevIndex,
+ int *aindex,
+ struct ktc_principal *aserver)
{
struct ViceIoctl iob;
char tbuffer[MAXPIOCTLTOKENLEN];
/* discard all tokens from this user's cache */
static int
-NewForgetAll()
+NewForgetAll(void)
{
#ifndef NO_AFS_CLIENT
TRY_KERNEL(KTC_FORGETALLTOKENS_OP, 0, 0, 0, 0);
}
static int
-OldForgetAll()
+OldForgetAll(void)
{
struct ViceIoctl iob;
register afs_int32 code;
}
int
-ktc_ForgetAllTokens()
+ktc_ForgetAllTokens(void)
{
int ncode, ocode;
static afs_uint32
curpag(void)
{
+#if defined(AFS_AIX51_ENV)
+ int code = getpagvalue("afs");
+ if (code < 0 && errno == EINVAL)
+ code = 0;
+ return code;
+#else
gid_t groups[NGROUPS_MAX];
afs_uint32 g0, g1;
afs_uint32 h, l, ret;
return -1;
}
return -1;
+#endif
}
int
#include <limits.h>
#include <string.h>
#include <stdlib.h>
+#ifdef AFS_AIX51_ENV
+#include <sys/cred.h>
+#include <sys/pag.h>
+#endif
RCSID
("$Header$");
static afs_int32
curpag(void)
{
+#if defined(AFS_AIX51_ENV)
+ int code = getpagvalue("afs");
+ if (code < 0 && errno == EINVAL)
+ code = 0;
+ return code;
+#else
gid_t groups[NGROUPS_MAX];
afs_uint32 g0, g1;
afs_uint32 h, l, ret;
return -1;
}
return -1;
+#endif
}
/* Returns the AFS pag number, if any, otherwise return -1 */