summaryrefslogtreecommitdiff
path: root/src/backend/storage/buf_internals.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/storage/buf_internals.h')
-rw-r--r--src/backend/storage/buf_internals.h39
1 files changed, 31 insertions, 8 deletions
diff --git a/src/backend/storage/buf_internals.h b/src/backend/storage/buf_internals.h
index 84583867fa..90e9c38487 100644
--- a/src/backend/storage/buf_internals.h
+++ b/src/backend/storage/buf_internals.h
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: buf_internals.h,v 1.1.1.1 1996/07/09 06:21:52 scrappy Exp $
+ * $Id: buf_internals.h,v 1.2 1996/07/22 22:59:42 scrappy Exp $
*
* NOTE
* If BUFFERPAGE0 is defined, then 0 will be used as a
@@ -135,18 +135,41 @@ struct sbufdesc {
* It eats up more shared memory, of course, but we're (allegedly)
* going to make some of these types bigger soon anyway... -pma 1/2/93
*/
+
+/* NO spinlock */
+
#if defined(PORTNAME_ultrix4)
char sb_pad[60]; /* no slock_t */
#endif /* mips */
-#if defined(PORTNAME_sparc) || defined(PORTNAME_sparc_solaris) || defined(PORTNAME_irix5)
- char sb_pad[56]; /* has slock_t */
-#endif /* sparc || irix5 */
-#if defined(PORTNAME_hpux)
- char sb_pad[44]; /* has slock_t */
-#endif /* alpha */
+
+/* HAS_TEST_AND_SET -- platform dependent size */
+
+#if defined(PORTNAME_aix)
+ char sb_pad[44]; /* typedef unsigned int slock_t; */
+#endif /* aix */
#if defined(PORTNAME_alpha)
- char sb_pad[40]; /* has slock_t */
+ char sb_pad[40]; /* typedef msemaphore slock_t; */
#endif /* alpha */
+#if defined(PORTNAME_hpux)
+ char sb_pad[44]; /* typedef struct { int sem[4]; } slock_t; */
+#endif /* hpux */
+#if defined(PORTNAME_irix5)
+ char sb_pad[44]; /* typedef abilock_t slock_t; */
+#endif /* irix5 */
+#if defined(PORTNAME_next)
+ char sb_pad[56]; /* typedef struct mutex slock_t; */
+#endif /* next */
+
+/* HAS_TEST_AND_SET -- default 1 byte spinlock */
+
+#if defined(PORTNAME_BSD44_derived) || \
+ defined(PORTNAME_bsdi) || \
+ defined(PORTNAME_i86pc_solaris) || \
+ defined(PORTNAME_linux) || \
+ defined(PORTNAME_sparc) || \
+ defined(PORTNAME_sparc_solaris)
+ char sb_pad[56]; /* has slock_t */
+#endif /* 1 byte slock_t */
};
/*