/* vnode */
#define VN_HOLD(vp) (vget(vp, 0))
#define VN_RELE(vp) (vrele(vp))
-#define osi_vnhold(avc, r) (VN_HOLD(AFSTOV(avc)))
#define va_nodeid va_fileid
/* time */
#define afs_hz hz
-#define osi_GetTime(x) getmicrotime(x)
#define osi_Time() time_second
/* str */
#define AFS_USE_NBSD_NAMECACHE 0
+static_inline void
+osi_GetTime(osi_timeval32_t *atv)
+{
+ struct timeval now;
+ getmicrotime(&now);
+ atv->tv_sec = now.tv_sec;
+ atv->tv_usec = now.tv_usec;
+}
+
#endif /* _OSI_MACHDEP_H_ */