more header cleaning; updated INSTALL

This commit is contained in:
Sears Russell 2009-07-26 19:47:05 +00:00
parent 081c61b414
commit 0a308f035c
18 changed files with 60 additions and 116 deletions

View file

@ -1,10 +1,10 @@
Prerequisites (ubuntu/debian): Prerequisites (ubuntu/debian):
autoconf build-essential cmake build-essential cmake
Recommended build procedure: Recommended build procedure:
./bootstrap ; mkdir build ; cd build ; cmake .. mkdir build ; cd build ; cmake ..
make -j 4 make -j 4
cd test ; make test cd test ; make test
@ -19,7 +19,7 @@ Optional dependencies:
Obsolete build procedure Obsolete build procedure
========================= =========================
(Uses automake and libtool) (Uses autoconf, automake and libtool)
./reconf ; ./configure --quiet ./reconf ; ./configure --quiet
make -j 4 make -j 4

View file

@ -44,13 +44,8 @@ terms specified in this license.
* *
* implementation of the page buffer * implementation of the page buffer
* *************************************************/ * *************************************************/
#include <config.h>
#ifdef PROFILE_LATCHES_WRITE_ONLY #ifdef PROFILE_LATCHES_WRITE_ONLY
#define _GNU_SOURCE #define _GNU_SOURCE
#include <stdio.h> // Need _GNU_SOURCE for asprintf #include <stdio.h> // Need _GNU_SOURCE for asprintf
#include <stasis/lhtable.h> #include <stasis/lhtable.h>

View file

@ -5,13 +5,10 @@
allows bufferManager's implementation to focus on providing atomic allows bufferManager's implementation to focus on providing atomic
writes, and locking. writes, and locking.
*/ */
#include <config.h>
#include <stasis/common.h> #include <stasis/common.h>
#include <stasis/page.h> #include <stasis/page.h>
#include <stasis/bufferManager.h> #include <stasis/bufferManager.h>
#include <stasis/bufferManager/legacy/pageCache.h> #include <stasis/bufferManager/legacy/pageCache.h>
#include <assert.h> #include <assert.h>

View file

@ -1,12 +1,10 @@
#define _GNU_SOURCE #define _GNU_SOURCE
#include <config.h>
#include <stasis/common.h> #include <stasis/common.h>
#include <stasis/latches.h> #include <stasis/latches.h>
#include <pbl/pbl.h> #include <pbl/pbl.h>
#include <errno.h>
#include <assert.h> #include <assert.h>
#undef pthread_mutex_t #undef pthread_mutex_t

View file

@ -1,18 +1,10 @@
#include <config.h> #include <config.h>
#define _XOPEN_SOURCE 500
#include <fcntl.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <errno.h>
#include <assert.h>
#include <stasis/common.h>
#include <stasis/io/handle.h> #include <stasis/io/handle.h>
#include <pthread.h>
#include <fcntl.h>
#include <stdio.h>
#include <assert.h>
/** /**
@file @file

View file

@ -4,9 +4,6 @@
* Created on: May 12, 2009 * Created on: May 12, 2009
* Author: sears * Author: sears
*/ */
#include <config.h>
#include <stasis/common.h>
#include <stasis/logger/logger2.h> #include <stasis/logger/logger2.h>
#include <stdio.h> #include <stdio.h>

View file

@ -39,16 +39,13 @@ authors grant the U.S. Government and others acting in its behalf
permission to use and distribute the software in accordance with the permission to use and distribute the software in accordance with the
terms specified in this license. terms specified in this license.
---*/ ---*/
#include <config.h>
#include <stasis/common.h>
#include <assert.h>
#include <stasis/page.h> // For stasis_record_type_to_size() #include <stasis/page.h> // For stasis_record_type_to_size()
#include <stasis/logger/logger2.h> // needed for LoggerSizeOfInternalLogEntry() #include <stasis/logger/logger2.h> // needed for LoggerSizeOfInternalLogEntry()
#include <stasis/logger/logEntry.h> #include <stasis/logger/logEntry.h>
#include <stasis/crc32.h> #include <stasis/crc32.h>
#include <assert.h>
LogEntry * allocCommonLogEntry(lsn_t prevLSN, int xid, unsigned int type) { LogEntry * allocCommonLogEntry(lsn_t prevLSN, int xid, unsigned int type) {
LogEntry * ret = calloc(1,sizeof(struct __raw_log_entry)); LogEntry * ret = calloc(1,sizeof(struct __raw_log_entry));
ret->LSN = -1; ret->LSN = -1;

View file

@ -45,13 +45,7 @@ terms specified in this license.
Abstract log implementation. Provides access to methods that Abstract log implementation. Provides access to methods that
directly read and write log entries, force the log to disk, etc. directly read and write log entries, force the log to disk, etc.
@todo Switch logger2 to use function pointers
*/ */
#include <config.h>
#include <stasis/common.h>
#include <stasis/logger/logger2.h> #include <stasis/logger/logger2.h>
#include <stasis/logger/safeWrites.h> #include <stasis/logger/safeWrites.h>

View file

@ -39,15 +39,12 @@ authors grant the U.S. Government and others acting in its behalf
permission to use and distribute the software in accordance with the permission to use and distribute the software in accordance with the
terms specified in this license. terms specified in this license.
---*/ ---*/
#include <config.h>
#include <stasis/common.h>
#include <assert.h>
#include <stasis/operations.h> #include <stasis/operations.h>
#include <stasis/logger/logEntry.h> #include <stasis/logger/logEntry.h>
#include <stasis/page.h> #include <stasis/page.h>
#include <assert.h>
static stasis_operation_impl stasis_operation_table[MAX_OPERATIONS]; static stasis_operation_impl stasis_operation_table[MAX_OPERATIONS];
void stasis_operation_impl_register(stasis_operation_impl o) { void stasis_operation_impl_register(stasis_operation_impl o) {

View file

@ -1,5 +1,3 @@
#include <config.h>
#include <stasis/operations/arrayList.h> #include <stasis/operations/arrayList.h>
#include <assert.h> #include <assert.h>

View file

@ -1,7 +1,7 @@
#include "config.h"
#include <stasis/page.h> #include <stasis/page.h>
#include <stasis/operations.h> #include <stasis/operations.h>
#include <stasis/logger/logger2.h> #include <stasis/logger/logger2.h>
#include <assert.h> #include <assert.h>
typedef struct regionAllocLogArg{ typedef struct regionAllocLogArg{

View file

@ -1,4 +1,3 @@
#include "config.h"
#include <stasis/page.h> #include <stasis/page.h>
#include <stasis/page/slotted.h> #include <stasis/page/slotted.h>
//#include <assert.h> //#include <assert.h>

View file

@ -5,13 +5,6 @@
Implements three phase recovery Implements three phase recovery
*/ */
#include <config.h>
#include <stasis/common.h>
#include <stdio.h>
#include <assert.h>
#include <pbl/pbl.h> #include <pbl/pbl.h>
#include <stasis/recovery.h> #include <stasis/recovery.h>
@ -26,6 +19,9 @@
#include <stasis/linkedlist.h> #include <stasis/linkedlist.h>
#include <stasis/page.h> // Needed for pageReadLSN. #include <stasis/page.h> // Needed for pageReadLSN.
#include <stdio.h>
#include <assert.h>
static pblHashTable_t * transactionLSN; static pblHashTable_t * transactionLSN;
static LinkedList * rollbackLSNs = NULL; static LinkedList * rollbackLSNs = NULL;
/** @todo There is no real reason to have this mutex (which prevents /** @todo There is no real reason to have this mutex (which prevents

View file

@ -1,4 +1,3 @@
#include <config.h>
#include <stasis/common.h> #include <stasis/common.h>
#include <stasis/latches.h> #include <stasis/latches.h>

View file

@ -1,6 +1,3 @@
#include <config.h>
#include <stasis/common.h>
#include <stasis/latches.h> #include <stasis/latches.h>
#include <stasis/transactional.h> #include <stasis/transactional.h>
#include <stasis/recovery.h> #include <stasis/recovery.h>

View file

@ -122,10 +122,6 @@ typedef int16_t pagetype_t;
/*#define PROFILE_LATCHES*/ /*#define PROFILE_LATCHES*/
/*#define NO_LATCHES */ /*#define NO_LATCHES */
#if _POSIX_C_SOURCE >= 199309L || _XOPEN_SOURCE >= 500
#define HAVE_FDATASYNC
#endif
#ifdef DEBUGGING #ifdef DEBUGGING
/** @todo Files that use DEBUG have to pull in stdio.h, which is a pain! */ /** @todo Files that use DEBUG have to pull in stdio.h, which is a pain! */
#define DEBUG(...) \ #define DEBUG(...) \
@ -162,8 +158,6 @@ typedef struct {
*/ */
typedef struct Page_s Page; typedef struct Page_s Page;
#include "compensations.h" #include "compensations.h"
#endif /* __stasis_common_h */ #endif /* __stasis_common_h */

View file

@ -39,9 +39,6 @@ authors grant the U.S. Government and others acting in its behalf
permission to use and distribute the software in accordance with the permission to use and distribute the software in accordance with the
terms specified in this license. terms specified in this license.
---*/ ---*/
#include <config.h>
#include "../check_includes.h" #include "../check_includes.h"
#include <assert.h> #include <assert.h>
#include <libdfa/networksetup.h> #include <libdfa/networksetup.h>

View file

@ -46,14 +46,11 @@ terms specified in this license.
#include <stasis/logger/logMemory.h> #include <stasis/logger/logMemory.h>
#include <pbl/pbl.h> #include <pbl/pbl.h>
#include <stdlib.h>
#include <string.h>
#include <config.h>
#include <assert.h>
#include <sys/time.h> #include <sys/time.h>
#include <time.h> #include <time.h>
#include <assert.h>
#define LOG_NAME "check_iterator.log" #define LOG_NAME "check_iterator.log"
#define NUM_BYTES_IN_FIFO 1000 #define NUM_BYTES_IN_FIFO 1000