]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb/tdb_private.h
Use _ convention everywhere: lock.c uses it already.
[ccan] / ccan / tdb / tdb_private.h
index b6eae478736696541d0767f5a90a529ba5b1d459..c1a9925f09337beb4fe71feeb68e930528c45d81 100644 (file)
@@ -34,6 +34,7 @@
 #include "system/wait.h"
 #else
 #define _XOPEN_SOURCE 500
+#define _FILE_OFFSET_BITS 64
 #include <stdint.h>
 #include <stdbool.h>
 #include <stdlib.h>
@@ -49,7 +50,7 @@
 #endif
 #include "tdb.h"
 
-#define TDB_TRACE 1
+/* #define TDB_TRACE 1 */
 
 #if HAVE_GETPAGESIZE
 #define getpagesize() 0x2000
@@ -249,7 +250,7 @@ int tdb_ofs_read(struct tdb_context *tdb, tdb_off_t offset, tdb_off_t *d);
 int tdb_ofs_write(struct tdb_context *tdb, tdb_off_t offset, tdb_off_t *d);
 int tdb_lock_record(struct tdb_context *tdb, tdb_off_t off);
 int tdb_unlock_record(struct tdb_context *tdb, tdb_off_t off);
-int tdb_transaction_cancel_internal(struct tdb_context *tdb);
+int _tdb_transaction_cancel(struct tdb_context *tdb);
 int tdb_rec_read(struct tdb_context *tdb, tdb_off_t offset, struct list_struct *rec);
 int tdb_rec_write(struct tdb_context *tdb, tdb_off_t offset, struct list_struct *rec);
 int tdb_do_delete(struct tdb_context *tdb, tdb_off_t rec_ptr, struct list_struct *rec);