|
|
@ -355,12 +355,10 @@ typedef HANDLE mdb_mutex_t, mdb_mutexref_t; |
|
|
|
#else |
|
|
|
#else |
|
|
|
#define MDB_PROCESS_QUERY_LIMITED_INFORMATION 0x1000 |
|
|
|
#define MDB_PROCESS_QUERY_LIMITED_INFORMATION 0x1000 |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#define Z "I" |
|
|
|
|
|
|
|
#else |
|
|
|
#else |
|
|
|
#define THREAD_RET void * |
|
|
|
#define THREAD_RET void * |
|
|
|
#define THREAD_CREATE(thr,start,arg) pthread_create(&thr,NULL,start,arg) |
|
|
|
#define THREAD_CREATE(thr,start,arg) pthread_create(&thr,NULL,start,arg) |
|
|
|
#define THREAD_FINISH(thr) pthread_join(thr,NULL) |
|
|
|
#define THREAD_FINISH(thr) pthread_join(thr,NULL) |
|
|
|
#define Z "z" /**< printf format modifier for size_t */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** For MDB_LOCK_FORMAT: True if readers take a pid lock in the lockfile */ |
|
|
|
/** For MDB_LOCK_FORMAT: True if readers take a pid lock in the lockfile */ |
|
|
|
#define MDB_PIDLOCK 1 |
|
|
|
#define MDB_PIDLOCK 1 |
|
|
@ -458,15 +456,8 @@ typedef pthread_mutex_t mdb_mutex_t[1], *mdb_mutexref_t; |
|
|
|
#define GET_PAGESIZE(x) ((x) = sysconf(_SC_PAGE_SIZE)) |
|
|
|
#define GET_PAGESIZE(x) ((x) = sysconf(_SC_PAGE_SIZE)) |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#ifdef MDB_VL32 |
|
|
|
#define Z MDB_FMT_Z /**< printf/scanf format modifier for size_t */ |
|
|
|
#ifdef _WIN32 |
|
|
|
#define Y MDB_FMT_Y /**< printf/scanf format modifier for #mdb_size_t */ |
|
|
|
#define Y "I64" |
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
#define Y "ll" |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
#define Y Z |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if defined(_WIN32) || defined(MDB_USE_POSIX_SEM) |
|
|
|
#if defined(_WIN32) || defined(MDB_USE_POSIX_SEM) |
|
|
|
#define MNAME_LEN 32 |
|
|
|
#define MNAME_LEN 32 |
|
|
|