162 #include <sys/types.h>
193 #define MDB_VERSION_MAJOR 0
195 #define MDB_VERSION_MINOR 9
197 #define MDB_VERSION_PATCH 18
200 #define MDB_VERINT(a,b,c) (((a) << 24) | ((b) << 16) | (c))
203 #define MDB_VERSION_FULL \
204 MDB_VERINT(MDB_VERSION_MAJOR,MDB_VERSION_MINOR,MDB_VERSION_PATCH)
207 #define MDB_VERSION_DATE "December 19, 2015"
210 #define MDB_VERSTR(a,b,c,d) "LMDB " #a "." #b "." #c ": (" d ")"
213 #define MDB_VERFOO(a,b,c,d) MDB_VERSTR(a,b,c,d)
216 #define MDB_VERSION_STRING \
217 MDB_VERFOO(MDB_VERSION_MAJOR,MDB_VERSION_MINOR,MDB_VERSION_PATCH,MDB_VERSION_DATE)
279 #define MDB_FIXEDMAP 0x01
281 #define MDB_NOSUBDIR 0x4000
283 #define MDB_NOSYNC 0x10000
285 #define MDB_RDONLY 0x20000
287 #define MDB_NOMETASYNC 0x40000
289 #define MDB_WRITEMAP 0x80000
291 #define MDB_MAPASYNC 0x100000
293 #define MDB_NOTLS 0x200000
295 #define MDB_NOLOCK 0x400000
297 #define MDB_NORDAHEAD 0x800000
299 #define MDB_NOMEMINIT 0x1000000
306 #define MDB_REVERSEKEY 0x02
308 #define MDB_DUPSORT 0x04
311 #define MDB_INTEGERKEY 0x08
313 #define MDB_DUPFIXED 0x10
315 #define MDB_INTEGERDUP 0x20
317 #define MDB_REVERSEDUP 0x40
319 #define MDB_CREATE 0x40000
326 #define MDB_NOOVERWRITE 0x10
331 #define MDB_NODUPDATA 0x20
333 #define MDB_CURRENT 0x40
337 #define MDB_RESERVE 0x10000
339 #define MDB_APPEND 0x20000
341 #define MDB_APPENDDUP 0x40000
343 #define MDB_MULTIPLE 0x80000
352 #define MDB_CP_COMPACT 0x01
395 #define MDB_SUCCESS 0
397 #define MDB_KEYEXIST (-30799)
399 #define MDB_NOTFOUND (-30798)
401 #define MDB_PAGE_NOTFOUND (-30797)
403 #define MDB_CORRUPTED (-30796)
405 #define MDB_PANIC (-30795)
407 #define MDB_VERSION_MISMATCH (-30794)
409 #define MDB_INVALID (-30793)
411 #define MDB_MAP_FULL (-30792)
413 #define MDB_DBS_FULL (-30791)
415 #define MDB_READERS_FULL (-30790)
417 #define MDB_TLS_FULL (-30789)
419 #define MDB_TXN_FULL (-30788)
421 #define MDB_CURSOR_FULL (-30787)
423 #define MDB_PAGE_FULL (-30786)
425 #define MDB_MAP_RESIZED (-30785)
434 #define MDB_INCOMPATIBLE (-30784)
436 #define MDB_BAD_RSLOT (-30783)
438 #define MDB_BAD_TXN (-30782)
440 #define MDB_BAD_VALSIZE (-30781)
442 #define MDB_BAD_DBI (-30780)
444 #define MDB_LAST_ERRCODE MDB_BAD_DBI
475 char *
mdb_version(
int *major,
int *minor,
int *patch);
1041 #define mdb_open(txn,name,flags,dbi) mdb_dbi_open(txn,name,flags,dbi)
1043 #define mdb_close(env,dbi) mdb_dbi_close(env,dbi)
1322 unsigned int flags);
1491 unsigned int flags);