* secure (although of course not absolutely secure).
*/
#if !defined(UKERNEL) || !defined(AFS_WEB_ENHANCEMENTS)
-afs_uint32 genpag(void) {
+afs_uint32 genpag(void)
+{
AFS_STATCNT(genpag);
#ifdef AFS_LINUX20_ENV
/* Ensure unique PAG's (mod 200 days) when reloading the client. */
#endif /* AFS_LINUX20_ENV */
}
-afs_uint32 getpag(void) {
+afs_uint32 getpag(void)
+{
AFS_STATCNT(getpag);
#ifdef AFS_LINUX20_ENV
/* Ensure unique PAG's (mod 200 days) when reloading the client. */
/* Web enhancement: we don't need to restrict pags to 41XXXXXX since
* we are not sharing the space with anyone. So we use the full 32 bits. */
-afs_uint32 genpag(void) {
+afs_uint32 genpag(void)
+{
AFS_STATCNT(genpag);
#ifdef AFS_LINUX20_ENV
return (pag_epoch + pagCounter++);
#endif /* AFS_LINUX20_ENV */
}
-afs_uint32 getpag(void) {
+afs_uint32 getpag(void)
+{
AFS_STATCNT(getpag);
#ifdef AFS_LINUX20_ENV
/* Ensure unique PAG's (mod 200 days) when reloading the client. */
#endif /* UKERNEL && AFS_WEB_ENHANCEMENTS */
+/* Note - needs to be available on AIX, others can be static - rework this */
#if defined(AFS_OSF_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_FBSD_ENV)
int AddPag(struct proc *p, afs_int32 aval, struct AFS_UCRED **credpp)
#else /* AFS_OSF_ENV || AFS_FBSD_ENV */
afs_int32 newpag, code;
AFS_STATCNT(AddPag);
#if defined(AFS_OSF_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_FBSD_ENV)
- if (code = setpag(p, credpp, aval, &newpag, 0))
+ if ((code = setpag(p, credpp, aval, &newpag, 0)))
#else /* AFS_OSF_ENV */
- if (code = setpag(credpp, aval, &newpag, 0))
+ if ((code = setpag(credpp, aval, &newpag, 0)))
#endif
#if defined(AFS_SUN5_ENV) || defined(AFS_SGI_ENV) || defined(AFS_OSF_ENV) || defined(AFS_LINUX20_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_FBSD_ENV)
return (code);
}
-afs_InitReq(av, acred)
- register struct vrequest *av;
- struct AFS_UCRED *acred; {
-
+int afs_InitReq(register struct vrequest *av, struct AFS_UCRED *acred)
+{
AFS_STATCNT(afs_InitReq);
if (afs_shuttingdown) return EIO;
av->uid = PagInCred(acred);