mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 23:04:20 +01:00
574016ffd3
git-svn-id: file:///svn/tokudb@623 c7de825b-a66e-492c-adef-691d508d4ae1
27 lines
791 B
C
27 lines
791 B
C
#ifndef BRTTYPES_H
|
|
#define BRTTYPES_H
|
|
#include <sys/types.h>
|
|
#define _XOPEN_SOURCE 500
|
|
#define _FILE_OFFSET_BITS 64
|
|
typedef unsigned int ITEMLEN;
|
|
typedef const void *bytevec;
|
|
//typedef const void *bytevec;
|
|
|
|
typedef long long DISKOFF; /* Offset in a disk. -1 is the NULL pointer. */
|
|
typedef long long TXNID;
|
|
|
|
/* Make the LSN be a struct instead of an integer so that we get better type checking. */
|
|
typedef struct __toku_lsn { u_int64_t lsn; } LSN;
|
|
#define ZERO_LSN ((LSN){0})
|
|
|
|
/* Make the FILEID a struct for the same reason. */
|
|
typedef struct __toku_fileid { u_int32_t fileid; } FILENUM;
|
|
|
|
typedef enum __toku_bool { FALSE=0, TRUE=1} BOOL;
|
|
|
|
typedef struct tokulogger *TOKULOGGER;
|
|
#define NULL_LOGGER ((TOKULOGGER)0)
|
|
typedef struct tokutxn *TOKUTXN;
|
|
#define NULL_TXN ((TOKUTXN)0)
|
|
|
|
#endif
|