#define AFS_PROC struct proc
#define AFS_UCRED ucred
#define afs_suser(x) afs_osi_suser(osi_curcred())
-#define getpid() (curproc->p_pid)
+#define getpid() curproc
#define osi_curcred() (curproc->p_cred->pc_ucred)
#define osi_curproc() curproc
#define p_rcred p_ucred
/* time */
-extern struct timeval time;
#define afs_hz hz
#define osi_GetTime(x) microtime(x)
#define osi_Time() (time.tv_sec)
} while(0)
#define ISAFS_GLOCK() (afs_global_owner == curproc && curproc)
#else
-extern struct simplelock afs_global_lock;
+extern struct lock afs_global_lock;
#define AFS_GLOCK()
#define AFS_GUNLOCK()
#define AFS_ASSERT_GLOCK()