1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-06 07:49:08 +03:00

Removed PORTNAME_. Use OS version only.

This commit is contained in:
Bruce Momjian
1996-11-04 04:00:56 +00:00
parent 510ebf75a1
commit 7e42f4814d
17 changed files with 78 additions and 80 deletions

View File

@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: buf_internals.h,v 1.3 1996/11/01 03:36:13 momjian Exp $
* $Id: buf_internals.h,v 1.4 1996/11/04 04:00:24 momjian Exp $
*
* NOTE
* If BUFFERPAGE0 is defined, then 0 will be used as a
@@ -137,36 +137,36 @@ struct sbufdesc {
/* NO spinlock */
#if defined(PORTNAME_ultrix4)
#if defined(ultrix4)
char sb_pad[60]; /* no slock_t */
#endif /* mips */
/* HAS_TEST_AND_SET -- platform dependent size */
#if defined(PORTNAME_aix)
#if defined(aix)
char sb_pad[44]; /* typedef unsigned int slock_t; */
#endif /* aix */
#if defined(PORTNAME_alpha)
#if defined(alpha)
char sb_pad[40]; /* typedef msemaphore slock_t; */
#endif /* alpha */
#if defined(PORTNAME_hpux)
#if defined(hpux)
char sb_pad[44]; /* typedef struct { int sem[4]; } slock_t; */
#endif /* hpux */
#if defined(PORTNAME_irix5)
#if defined(irix5)
char sb_pad[44]; /* typedef abilock_t slock_t; */
#endif /* irix5 */
#if defined(PORTNAME_next)
#if defined(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_i386_solaris) || \
defined(PORTNAME_linux) || \
defined(PORTNAME_sparc) || \
defined(PORTNAME_sparc_solaris)
#if defined(BSD44_derived) || \
defined(bsdi) || \
defined(i386_solaris) || \
defined(linux) || \
defined(sparc) || \
defined(sparc_solaris)
char sb_pad[56]; /* has slock_t */
#endif /* 1 byte slock_t */
};

View File

@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: ipc.h,v 1.8 1996/11/01 09:31:12 scrappy Exp $
* $Id: ipc.h,v 1.9 1996/11/04 04:00:28 momjian Exp $
*
* NOTES
* This file is very architecture-specific. This stuff should actually
@@ -31,27 +31,27 @@
* we may in fact have different architectures, thus make the tests
* based on portnames somewhat misleading.
*/
#if defined(PORTNAME_aix) || \
defined(PORTNAME_alpha) || \
defined(PORTNAME_BSD44_derived) || \
defined(PORTNAME_bsdi) || \
defined(PORTNAME_hpux) || \
defined(PORTNAME_i386_solaris) || \
defined(PORTNAME_irix5) || \
defined(PORTNAME_linux) || \
defined(PORTNAME_next) || \
defined(PORTNAME_sparc) || \
defined(PORTNAME_sparc_solaris)
#if defined(aix) || \
defined(alpha) || \
defined(BSD44_derived) || \
defined(bsdi) || \
defined(hpux) || \
defined(i386_solaris) || \
defined(irix5) || \
defined(linux) || \
defined(next) || \
defined(sparc) || \
defined(sparc_solaris)
#define HAS_TEST_AND_SET
#endif
#if defined(PORTNAME_BSD44_derived) && defined(__mips__)
#if defined(BSD44_derived) && defined(__mips__)
#undef HAS_TEST_AND_SET
#endif
#if defined(HAS_TEST_AND_SET)
#if defined(PORTNAME_aix)
#if defined(aix)
/*
* The AIX C library has the cs(3) builtin for compare-and-set that
* operates on ints.
@@ -59,11 +59,11 @@
typedef unsigned int slock_t;
#else /* aix */
#if defined(PORTNAME_alpha)
#if defined(alpha)
typedef msemaphore slock_t;
#else /* alpha */
#if defined(PORTNAME_hpux)
#if defined(hpux)
/*
* The PA-RISC "semaphore" for the LDWCX instruction is 4 bytes aligned
* to a 16-byte boundary.
@@ -71,11 +71,11 @@ typedef msemaphore slock_t;
typedef struct { int sem[4]; } slock_t;
#else /* hpux */
#if defined(PORTNAME_irix5)
#if defined(irix5)
typedef abilock_t slock_t;
#else /* irix5 */
#if defined(PORTNAME_next)
#if defined(next)
/*
* Use Mach mutex routines since these are, in effect, test-and-set
* spinlocks.
@@ -99,10 +99,10 @@ extern void S_LOCK(slock_t *lock);
extern void S_UNLOCK(slock_t *lock);
extern void S_INIT_LOCK(slock_t *lock);
#if defined(PORTNAME_alpha) || \
defined(PORTNAME_hpux) || \
defined(PORTNAME_irix5) || \
defined(PORTNAME_next)
#if defined(alpha) || \
defined(hpux) || \
defined(irix5) || \
defined(next)
extern int S_LOCK_FREE(slock_t *lock);
#else
#define S_LOCK_FREE(lock) ((*lock) == 0)