int dcacheDisabled = 0;
struct afs_cacheOps afs_UfsCacheOps = {
+#if defined(AFS_SGI_ENV) && !defined(__c99)
+ osi_UFSOpen,
+ osi_UFSTruncate,
+ afs_osi_Read,
+ afs_osi_Write,
+ osi_UFSClose,
+ afs_UFSRead,
+ afs_UFSWrite,
+ afs_UFSGetDSlot,
+ afs_UFSGetVolSlot,
+ afs_UFSHandleLink,
+#else
.open = osi_UFSOpen,
.truncate = osi_UFSTruncate,
.fread = afs_osi_Read,
.GetDSlot = afs_UFSGetDSlot,
.GetVolSlot = afs_UFSGetVolSlot,
.HandleLink = afs_UFSHandleLink,
+#endif
};
struct afs_cacheOps afs_MemCacheOps = {
+#if (defined(AFS_SGI_ENV) && !defined(__c99))
+ afs_MemCacheOpen,
+ afs_MemCacheTruncate,
+ afs_MemReadBlk,
+ afs_MemWriteBlk,
+ afs_MemCacheClose,
+ afs_MemRead,
+ afs_MemWrite,
+ afs_MemGetDSlot,
+ afs_MemGetVolSlot,
+ afs_MemHandleLink,
+#else
.open = afs_MemCacheOpen,
.truncate = afs_MemCacheTruncate,
.fread = afs_MemReadBlk,
.GetDSlot = afs_MemGetDSlot,
.GetVolSlot = afs_MemGetVolSlot,
.HandleLink = afs_MemHandleLink,
+#endif
};
int cacheDiskType; /*Type of backing disk for cache */
static
struct storeOps rxfs_storeUfsOps = {
+#if (defined(AFS_SGI_ENV) && !defined(__c99))
+ rxfs_storeUfsPrepare,
+ rxfs_storeUfsRead,
+ rxfs_storeUfsWrite,
+ rxfs_storeStatus,
+ rxfs_storePadd,
+ rxfs_storeClose,
+ rxfs_storeDestroy
+#else
.prepare = rxfs_storeUfsPrepare,
.read = rxfs_storeUfsRead,
.write = rxfs_storeUfsWrite,
#ifdef AFS_LINUX26_ENV
.storeproc = afs_linux_storeproc
#endif
+#endif
};
static
struct storeOps rxfs_storeMemOps = {
+#if (defined(AFS_SGI_ENV) && !defined(__c99))
+ rxfs_storeMemPrepare,
+ rxfs_storeMemRead,
+ rxfs_storeMemWrite,
+ rxfs_storeStatus,
+ rxfs_storePadd,
+ rxfs_storeClose,
+ rxfs_storeDestroy
+#else
.prepare = rxfs_storeMemPrepare,
.read = rxfs_storeMemRead,
.write = rxfs_storeMemWrite,
.padd = rxfs_storePadd,
.close = rxfs_storeClose,
.destroy = rxfs_storeDestroy
+#endif
};
afs_int32
# undef osi_Assert
# define osi_Assert(expr) \
do { if (!(expr)) { osi_AssertFailK(#expr, __FILE__, __LINE__); BUG(); } } while (0)
-# elif defined(AFS_AIX_ENV) && !defined(AFS_AIX61_ENV)
+# elif (defined(AFS_AIX_ENV) && !defined(AFS_AIX61_ENV)) || defined(AFS_SGI_ENV)
extern void osi_Panic(char *fmt, void *a1, void *a2, void *a3);
# elif defined(AFS_AIX61_ENV)
/* No prototype. Deliberate, since there's no vprintf et al */