142 #include <sys/types.h>
173 #define MDB_VERSION_MAJOR 0
175 #define MDB_VERSION_MINOR 9
177 #define MDB_VERSION_PATCH 9
180 #define MDB_VERINT(a,b,c) (((a) << 24) | ((b) << 16) | (c))
183 #define MDB_VERSION_FULL \
184 MDB_VERINT(MDB_VERSION_MAJOR,MDB_VERSION_MINOR,MDB_VERSION_PATCH)
187 #define MDB_VERSION_DATE "October 24, 2013"
190 #define MDB_VERSTR(a,b,c,d) "MDB " #a "." #b "." #c ": (" d ")"
193 #define MDB_VERFOO(a,b,c,d) MDB_VERSTR(a,b,c,d)
196 #define MDB_VERSION_STRING \
197 MDB_VERFOO(MDB_VERSION_MAJOR,MDB_VERSION_MINOR,MDB_VERSION_PATCH,MDB_VERSION_DATE)
261 #define MDB_FIXEDMAP 0x01
263 #define MDB_NOSUBDIR 0x4000
265 #define MDB_NOSYNC 0x10000
267 #define MDB_RDONLY 0x20000
269 #define MDB_NOMETASYNC 0x40000
271 #define MDB_WRITEMAP 0x80000
273 #define MDB_MAPASYNC 0x100000
275 #define MDB_NOTLS 0x200000
277 #define MDB_NOLOCK 0x400000
279 #define MDB_NORDAHEAD 0x800000
288 #define MDB_REVERSEKEY 0x02
290 #define MDB_DUPSORT 0x04
293 #define MDB_INTEGERKEY 0x08
295 #define MDB_DUPFIXED 0x10
297 #define MDB_INTEGERDUP 0x20
299 #define MDB_REVERSEDUP 0x40
301 #define MDB_CREATE 0x40000
308 #define MDB_NOOVERWRITE 0x10
313 #define MDB_NODUPDATA 0x20
315 #define MDB_CURRENT 0x40
319 #define MDB_RESERVE 0x10000
321 #define MDB_APPEND 0x20000
323 #define MDB_APPENDDUP 0x40000
325 #define MDB_MULTIPLE 0x80000
366 #define MDB_SUCCESS 0
368 #define MDB_KEYEXIST (-30799)
370 #define MDB_NOTFOUND (-30798)
372 #define MDB_PAGE_NOTFOUND (-30797)
374 #define MDB_CORRUPTED (-30796)
376 #define MDB_PANIC (-30795)
378 #define MDB_VERSION_MISMATCH (-30794)
380 #define MDB_INVALID (-30793)
382 #define MDB_MAP_FULL (-30792)
384 #define MDB_DBS_FULL (-30791)
386 #define MDB_READERS_FULL (-30790)
388 #define MDB_TLS_FULL (-30789)
390 #define MDB_TXN_FULL (-30788)
392 #define MDB_CURSOR_FULL (-30787)
394 #define MDB_PAGE_FULL (-30786)
396 #define MDB_MAP_RESIZED (-30785)
398 #define MDB_INCOMPATIBLE (-30784)
400 #define MDB_BAD_RSLOT (-30783)
402 #define MDB_BAD_TXN (-30782)
404 #define MDB_BAD_VALSIZE (-30781)
405 #define MDB_LAST_ERRCODE MDB_BAD_VALSIZE
436 char *
mdb_version(
int *major,
int *minor,
int *patch);
884 #define mdb_open(txn,name,flags,dbi) mdb_dbi_open(txn,name,flags,dbi)
886 #define mdb_close(env,dbi) mdb_dbi_close(env,dbi)
1151 unsigned int flags);
1316 unsigned int flags);