TDB_OPEN(3) | Linux Programmer's Manual | TDB_OPEN(3) |
tdb_open - Open a tdb database.
#include <tdb.h> TDB_CONTEXT *tdb_open(const char *pathname, int hash_size, int tdb_flags, int open_flags, mode_t mode );
Open the database, creating it if necessary. The hash size is advisory, use zero for a default value. tdb_flags can be one of
The open_flags and mode are passed straight to the open call on the database file. A flags value of O_WRONLY is invalid.
On success a pointer to an opaque data structure, a TDB_CONTEXT is returned. On error a NULL is returned.
Software: Andrew Tridgell <tridge@linuxcare.com> and Luke Kenneth Casson Leighton Man page: Ben Woodard <ben@valinux.com>
August 16, 2000 | Samba |