struct osi_stat {
afs_int32 size; /* file size in bytes */
- afs_int32 blksize; /* optimal transfer size in bytes */
afs_int32 mtime; /* modification date */
afs_int32 atime; /* access time */
};
/* should use curthread, but 'ps' can't display it */
#define osi_ThreadUnique() curproc
#else
+#ifdef AFS_LINUX_ENV
+#define osi_ThreadUnique() (current->pid)
+#else
#define osi_ThreadUnique() getpid()
#endif
+#endif
#ifdef AFS_GLOBAL_SUNLOCK
#define AFS_ASSERT_GLOCK() \
- (ISAFS_GLOCK() || (osi_Panic("afs global lock not held at %s:%d\n", __FILE__, __LINE__), 0))
+ do { if (!ISAFS_GLOCK()) osi_Panic("afs global lock not held at %s:%d\n", __FILE__, __LINE__); } while (0)
#endif /* AFS_GLOBAL_SUNLOCK */
#ifdef RX_ENABLE_LOCKS