Changeset 981 for trunk/src/emx/include/db.h
- Timestamp:
- Jan 11, 2004, 9:04:19 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/include/db.h
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r980 r981 32 32 * 33 33 * @(#)db.h 8.7 (Berkeley) 6/16/94 34 * $FreeBSD: src/include/db.h,v 1.5 2002/03/26 01:35:05 bde Exp $ 35 */ 36 37 /** @file 38 * FreeBSD 5.1 34 39 */ 35 40 … … 37 42 #define _DB_H_ 38 43 39 #if defined (__cplusplus)40 extern "C" {41 #endif42 43 44 #include <sys/types.h> 44 45 #include <sys/cdefs.h> 45 46 46 47 #include <limits.h> 47 48 #ifdef __DBINTERFACE_PRIVATE49 #include <compat.h>50 #endif51 48 52 49 #define RET_ERROR -1 /* Return values. */ 53 50 #define RET_SUCCESS 0 54 51 #define RET_SPECIAL 1 55 56 #if 057 #ifndef __BIT_TYPES_DEFINED__58 #define __BIT_TYPES_DEFINED__59 typedef __signed char int8_t;60 typedef unsigned char u_int8_t;61 typedef short int16_t;62 typedef unsigned short u_int16_t;63 typedef int int32_t;64 typedef unsigned int u_int32_t;65 #ifdef WE_DONT_NEED_QUADS66 typedef long long int64_t;67 typedef unsigned long long u_int64_t;68 #endif69 #endif70 #else71 /*#include <sys/inttypes.h> */72 #endif73 52 74 53 #define MAX_PAGE_NUMBER 0xffffffff /* >= # of pages in a file */ … … 126 105 typedef struct __db { 127 106 DBTYPE type; /* Underlying db type. */ 128 int (*close) __P((struct __db *));129 int (*del) __P((const struct __db *, const DBT *, u_int));130 int (*get) __P((const struct __db *, const DBT *, DBT *, u_int));131 int (*put) __P((const struct __db *, DBT *, const DBT *, u_int));132 int (*seq) __P((const struct __db *, DBT *, DBT *, u_int));133 int (*sync) __P((const struct __db *, u_int));107 int (*close)(struct __db *); 108 int (*del)(const struct __db *, const DBT *, u_int); 109 int (*get)(const struct __db *, const DBT *, DBT *, u_int); 110 int (*put)(const struct __db *, DBT *, const DBT *, u_int); 111 int (*seq)(const struct __db *, DBT *, DBT *, u_int); 112 int (*sync)(const struct __db *, u_int); 134 113 void *internal; /* Access method private. */ 135 int (*fd) __P((const struct __db *));114 int (*fd)(const struct __db *); 136 115 } DB; 137 116 … … 148 127 u_int psize; /* page size */ 149 128 int (*compare) /* comparison function */ 150 __P((const DBT *, const DBT *));129 (const DBT *, const DBT *); 151 130 size_t (*prefix) /* prefix function */ 152 __P((const DBT *, const DBT *));131 (const DBT *, const DBT *); 153 132 int lorder; /* byte order */ 154 133 } BTREEINFO; … … 164 143 u_int cachesize; /* bytes to cache */ 165 144 u_int32_t /* hash function */ 166 (*hash) __P((const void *, size_t));145 (*hash)(const void *, size_t); 167 146 int lorder; /* byte order */ 168 147 } HASHINFO; … … 233 212 234 213 __BEGIN_DECLS 235 DB *dbopen __P((const char *, int, int, DBTYPE, const void *));214 DB *dbopen(const char *, int, int, DBTYPE, const void *); 236 215 237 216 #ifdef __DBINTERFACE_PRIVATE 238 DB *__bt_open __P((const char *, int, int, const BTREEINFO *, int));239 DB *__hash_open __P((const char *, int, int, const HASHINFO *, int));240 DB *__rec_open __P((const char *, int, int, const RECNOINFO *, int));241 void __dbpanic __P((DB *dbp));217 DB *__bt_open(const char *, int, int, const BTREEINFO *, int); 218 DB *__hash_open(const char *, int, int, const HASHINFO *, int); 219 DB *__rec_open(const char *, int, int, const RECNOINFO *, int); 220 void __dbpanic(DB *dbp); 242 221 #endif 243 222 __END_DECLS 244 245 #if defined (__cplusplus)246 }247 #endif248 249 223 #endif /* !_DB_H_ */ -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.