diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-01-02 23:03:32 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-01-02 23:03:32 +0000 |
commit | 8b1229c3feecc1d4827f562b1dc31d0853186794 (patch) | |
tree | e3d094417d0f22314c2e07ef1c1c7239e296e2d0 | |
parent | 9a781a8c6de9513ba5f4cafef41379fae96807c1 (diff) | |
download | samba-8b1229c3feecc1d4827f562b1dc31d0853186794.tar.gz samba-8b1229c3feecc1d4827f562b1dc31d0853186794.tar.bz2 samba-8b1229c3feecc1d4827f562b1dc31d0853186794.zip |
updated docs
(This used to be commit c199ec9543d0d84bd5ea29078887684f708c9637)
-rw-r--r-- | source3/tdb/README | 8 | ||||
-rw-r--r-- | source3/tdb/tdb.c | 2 |
2 files changed, 7 insertions, 3 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); diff --git a/source3/tdb/tdb.c b/source3/tdb/tdb.c index 731d1fdbc8..8ed3dd3bac 100644 --- a/source3/tdb/tdb.c +++ b/source3/tdb/tdb.c @@ -1097,7 +1097,7 @@ int tdb_store(TDB_CONTEXT *tdb, TDB_DATA key, TDB_DATA dbuf, int flag) /* 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. |