#include <afs/param.h>
#include <sys/wait.h>
#include <limits.h>
-#ifdef HAVE_STRING_H
#include <string.h>
-#else
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-#endif
#include <stdlib.h>
#ifdef AFS_AIX51_ENV
#include <sys/cred.h>
+#ifdef HAVE_SYS_PAG_H
+#include <sys/pag.h>
+#endif
#endif
RCSID
curpag(void)
{
#if defined(AFS_AIX51_ENV)
- afs_int32 pag;
-
- if (get_pag(PAG_AFS, &pag) < 0 || pag == 0)
- pag = NOPAG;
- return pag;
+ int code = getpagvalue("afs");
+ if (code < 0 && errno == EINVAL)
+ code = 0;
+ return code;
#else
gid_t groups[NGROUPS_MAX];
afs_uint32 g0, g1;