summaryrefslogtreecommitdiff
path: root/source3/tdb/README
diff options
context:
space:
mode:
Diffstat (limited to 'source3/tdb/README')
-rw-r--r--source3/tdb/README8
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/tdb/README b/source3/tdb/README
index f4fa30dc64..3b070bdc40 100644
--- a/source3/tdb/README
+++ b/source3/tdb/README
@@ -50,17 +50,21 @@ here is a full list of tdb functions with brief descriptions.
----------------------------------------------------------------------
-TDB_CONTEXT *tdb_open(char *name, int hash_size, int flags, mode_t mode);
+TDB_CONTEXT *tdb_open(char *name, int hash_size, int tdb_flags,
+ int open_flags, mode_t mode)
open the database, creating it if necessary
- The flags and mode are passed straight to the open call on the database
+ The open_flags and mode are passed straight to the open call on the database
file. A flags value of O_WRONLY is invalid
The hash size is advisory, use zero for a default value.
return is NULL on error
+ possible tdb_flags are:
+ TDB_CLEAR_IF_FIRST - clear database if we are the only one with it open
+
----------------------------------------------------------------------
int tdb_close(TDB_CONTEXT *tdb);