tdb_open(3) Linux Programmer's Manual tdb_open(3) NAME tdb_open - Open a tdb database. SYNOPSIS #include TDB_CONTEXT *tdb_open(char *pathname, int hash_size, int tdb_flags, int open_flags, mode_t mode ); DESCRIPTION Open the database, creating it if necessary. The hash size is advisory, use zero for a default value. tdb_flags can be one of TDB_CLEAR_IF_FIRST Clear database if we are the only one with it open. TDB_INTERNAL Don't use a file, instaed store the data in memory. The pathname , open_flags , and mode are ignored in this case. This is useful if you need a quick asso- ciative array or map. TDB_NOLOCK Don't do any locking. TDB_NOMMAP Don't use mmap. The open_flags and mode are passed straight to the open call on the database file. A flags value of O_WRONLY is invalid. RETURN VALUE On success a pointer to an opaque data structure, a TDB_CONTEXT is returned. On error a NULL is returned. AUTHORS Software: Andrew Tridgell and Luke Kenneth Casson Leighton Man page: Ben Woodard SEE ALSO open(2), gdbm(3), tdb(3) Samba Aug 16, 2000 1