diff options
author | Marc G. Fournier <scrappy@hub.org> | 1999-07-30 17:07:23 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1999-07-30 17:07:23 +0000 |
commit | 2c49183c80a47c4aa0a8ef3eea5da415d1cc8a32 (patch) | |
tree | 59454a97a765e8564fe79598dbf57d457d8487f7 /src/include/storage | |
parent | 710add2942db738ee6b7331598a4395ce10cab4f (diff) |
Carefully merge in Bruce's include file changes ... commit'd only after a
clean compile ...
Diffstat (limited to 'src/include/storage')
-rw-r--r-- | src/include/storage/multilev.h | 4 | ||||
-rw-r--r-- | src/include/storage/off.h | 3 | ||||
-rw-r--r-- | src/include/storage/pos.h | 4 | ||||
-rw-r--r-- | src/include/storage/proc.h | 4 | ||||
-rw-r--r-- | src/include/storage/s_lock.h | 20 | ||||
-rw-r--r-- | src/include/storage/shmem.h | 6 | ||||
-rw-r--r-- | src/include/storage/sinval.h | 6 | ||||
-rw-r--r-- | src/include/storage/sinvaladt.h | 6 | ||||
-rw-r--r-- | src/include/storage/smgr.h | 8 | ||||
-rw-r--r-- | src/include/storage/spin.h | 4 |
10 files changed, 34 insertions, 31 deletions
diff --git a/src/include/storage/multilev.h b/src/include/storage/multilev.h index 2baccce5bef..733e807c48c 100644 --- a/src/include/storage/multilev.h +++ b/src/include/storage/multilev.h @@ -7,14 +7,14 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: multilev.h,v 1.15 1999/02/13 23:22:07 momjian Exp $ + * $Id: multilev.h,v 1.15.2.1 1999/07/30 17:07:16 scrappy Exp $ * *------------------------------------------------------------------------- */ #ifndef MULTILEV_H #define MULTILEV_H -#include <storage/lmgr.h> +#include "storage/lmgr.h" #ifdef LowLevelLocking diff --git a/src/include/storage/off.h b/src/include/storage/off.h index 63a3e1b54c3..7d5f5588cb1 100644 --- a/src/include/storage/off.h +++ b/src/include/storage/off.h @@ -6,13 +6,14 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: off.h,v 1.7 1999/05/25 16:14:43 momjian Exp $ + * $Id: off.h,v 1.7.2.1 1999/07/30 17:07:16 scrappy Exp $ * *------------------------------------------------------------------------- */ #ifndef OFF_H #define OFF_H +#include "storage/itemid.h" /* * OffsetNumber: * diff --git a/src/include/storage/pos.h b/src/include/storage/pos.h index 91d85c68c55..20560c9dddd 100644 --- a/src/include/storage/pos.h +++ b/src/include/storage/pos.h @@ -6,13 +6,15 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: pos.h,v 1.7 1999/05/25 16:14:44 momjian Exp $ + * $Id: pos.h,v 1.7.2.1 1999/07/30 17:07:17 scrappy Exp $ * *------------------------------------------------------------------------- */ #ifndef POS_H #define POS_H +#include "storage/off.h" + /* * a 'position' used to be <pagenumber, offset> in postgres. this has * been changed to just <offset> as the notion of having multiple pages diff --git a/src/include/storage/proc.h b/src/include/storage/proc.h index f62106e1ce2..e9fbaf83b34 100644 --- a/src/include/storage/proc.h +++ b/src/include/storage/proc.h @@ -6,14 +6,14 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: proc.h,v 1.24 1999/05/25 22:43:27 momjian Exp $ + * $Id: proc.h,v 1.24.2.1 1999/07/30 17:07:17 scrappy Exp $ * *------------------------------------------------------------------------- */ #ifndef _PROC_H_ #define _PROC_H_ -#include <storage/lock.h> +#include "storage/lock.h" typedef struct { diff --git a/src/include/storage/s_lock.h b/src/include/storage/s_lock.h index 2780152f693..5a5cdc5e0d6 100644 --- a/src/include/storage/s_lock.h +++ b/src/include/storage/s_lock.h @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.61 1999/06/13 00:07:43 ishii Exp $ + * $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.61.2.1 1999/07/30 17:07:17 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -78,7 +78,7 @@ extern void s_lock_sleep(unsigned spin); * All the gcc inlines */ -#if defined(__alpha) +#if defined(__alpha__) #define TAS(lock) tas(lock) #define S_UNLOCK(lock) { __asm__("mb"); *(lock) = 0; } @@ -104,11 +104,11 @@ __asm__(" ldq $0, %0 \n\ return (int) _res; } -#endif /* __alpha */ +#endif /* __alpha__ */ -#if defined(i386) +#if defined(__i386__) #define TAS(lock) tas(lock) static __inline__ int @@ -120,7 +120,7 @@ __asm__("lock; xchgb %0,%1": "=q"(_res), "=m"(*lock):"0"(_res)); return (int) _res; } -#endif /* i386 */ +#endif /* __i386__ */ @@ -140,7 +140,7 @@ __asm__("swpb %0, %0, [%3]": "=r"(_res), "=m"(*lock):"0"(_res), "r" (lock)); -#if defined(sparc) +#if defined(__sparc__) #define TAS(lock) tas(lock) static __inline__ int @@ -154,7 +154,7 @@ tas(volatile slock_t *lock) return (int) _res; } -#endif /* sparc */ +#endif /* __sparc__ */ #if defined(__mc68000__) && defined(__linux__) @@ -226,7 +226,7 @@ tas(volatile slock_t *lock) * All non gcc */ -#if defined(__alpha) +#if defined(__alpha__) /* * OSF/1 (Alpha AXP) * @@ -237,7 +237,7 @@ tas(volatile slock_t *lock) #define S_UNLOCK(lock) msem_unlock((lock), 0) #define S_INIT_LOCK(lock) msem_init((lock), MSEM_UNLOCKED) #define S_LOCK_FREE(lock) (!(lock)->msem_state) -#endif /* __alpha */ +#endif /* __alpha__ */ @@ -307,7 +307,7 @@ tas(slock_t *s_lock) * assembly from his NECEWS SVR4 port, but we probably ought to retain this * for the R3000 chips out there. */ -#include <mutex.h> +#include "mutex.h" #define TAS(lock) (test_and_set(lock,1)) #define S_UNLOCK(lock) (test_then_and(lock,0)) #define S_INIT_LOCK(lock) (test_then_and(lock,0)) diff --git a/src/include/storage/shmem.h b/src/include/storage/shmem.h index 66365b4a9a7..a6b16cbde25 100644 --- a/src/include/storage/shmem.h +++ b/src/include/storage/shmem.h @@ -6,15 +6,15 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: shmem.h,v 1.18 1999/05/25 22:43:27 momjian Exp $ + * $Id: shmem.h,v 1.18.2.1 1999/07/30 17:07:17 scrappy Exp $ * *------------------------------------------------------------------------- */ #ifndef SHMEM_H #define SHMEM_H -#include <utils/hsearch.h> -#include <storage/spin.h> +#include "storage/spin.h" +#include "utils/hsearch.h" /* The shared memory region can start at a different address diff --git a/src/include/storage/sinval.h b/src/include/storage/sinval.h index 8ef86c8a488..4e86f2cbf09 100644 --- a/src/include/storage/sinval.h +++ b/src/include/storage/sinval.h @@ -6,15 +6,15 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: sinval.h,v 1.11 1999/05/28 17:03:31 tgl Exp $ + * $Id: sinval.h,v 1.11.2.1 1999/07/30 17:07:17 scrappy Exp $ * *------------------------------------------------------------------------- */ #ifndef SINVAL_H #define SINVAL_H -#include <storage/itemptr.h> -#include <storage/spin.h> +#include "storage/itemptr.h" +#include "storage/spin.h" extern SPINLOCK SInvalLock; diff --git a/src/include/storage/sinvaladt.h b/src/include/storage/sinvaladt.h index c939a0c6dbe..d1ebfd42f52 100644 --- a/src/include/storage/sinvaladt.h +++ b/src/include/storage/sinvaladt.h @@ -6,15 +6,15 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: sinvaladt.h,v 1.14 1999/05/28 17:03:30 tgl Exp $ + * $Id: sinvaladt.h,v 1.14.2.1 1999/07/30 17:07:18 scrappy Exp $ * *------------------------------------------------------------------------- */ #ifndef SINVALADT_H #define SINVALADT_H -#include <storage/itemptr.h> -#include <storage/ipc.h> +#include "storage/ipc.h" +#include "storage/itemptr.h" /* * The structure of the shared cache invaidation segment diff --git a/src/include/storage/smgr.h b/src/include/storage/smgr.h index c3c0d314462..5a845974338 100644 --- a/src/include/storage/smgr.h +++ b/src/include/storage/smgr.h @@ -6,16 +6,16 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: smgr.h,v 1.14 1999/02/13 23:22:10 momjian Exp $ + * $Id: smgr.h,v 1.14.2.1 1999/07/30 17:07:18 scrappy Exp $ * *------------------------------------------------------------------------- */ #ifndef SMGR_H #define SMGR_H -#include <storage/spin.h> -#include <storage/block.h> -#include <utils/rel.h> +#include "storage/block.h" +#include "storage/spin.h" +#include "utils/rel.h" #define SM_FAIL 0 #define SM_SUCCESS 1 diff --git a/src/include/storage/spin.h b/src/include/storage/spin.h index ace673d98ec..d612fc5f437 100644 --- a/src/include/storage/spin.h +++ b/src/include/storage/spin.h @@ -6,14 +6,14 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: spin.h,v 1.8 1999/02/13 23:22:10 momjian Exp $ + * $Id: spin.h,v 1.8.2.1 1999/07/30 17:07:18 scrappy Exp $ * *------------------------------------------------------------------------- */ #ifndef SPIN_H #define SPIN_H -#include <storage/ipc.h> +#include "storage/ipc.h" /* * two implementations of spin locks |