⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tdb_open.3

📁 Linux下的一个关系数据库源代码
💻 3
字号:
.TH tdb_open 3 "Aug 16, 2000" "Samba" "Linux Programmer's Manual".SH NAMEtdb_open \- Open a tdb database..SH SYNOPSIS.nf.B #include <tdb.h>.sp.BI "TDB_CONTEXT *tdb_open(const char *" pathname ", int " hash_size ",".BI "        int " tdb_flags ", int " open_flags ", mode_t " mode " );".sp.SH DESCRIPTIONOpen the database, creating it if necessary. The .I hash size is advisory, use zero for a default value. .I tdb_flagscan be one of.TP.B TDB_CLEAR_IF_FIRSTClear database if we are the only one with it open..TP.B TDB_INTERNALDon't use a file, instead store the data in memory. The .I pathname,.I open_flags, and.I modeare ignored inthis case. This is useful if you need a quick associative array or map..TP.B TDB_NOLOCKDon't do any locking (this is always turned on for read-only filedescriptors).TP.B TDB_NOMMAP Don't use mmap..TP.B TDB_CONVERT Create a database in the reverse of native endian: normally when thedatabase is created (or cleared with TDB_CLEAR_IF_FIRST), it iscreated in native endian order.  This flag is set (or unset)automatically for existing databases..PPThe .I open_flags and .I mode are passed straight to the open call on the database file. A flagsvalue of O_WRONLY is invalid..SH "RETURN VALUE"On success a pointer to an opaque data structure, a TDB_CONTEXT isreturned. On error a NULL is returned..SH AUTHORSSoftware: Andrew Tridgell <tridge@linuxcare.com> and Luke Kenneth Casson LeightonMan page: Ben Woodard <ben@valinux.com>.SH "SEE ALSO".BR open (2),.BR gdbm (3),.BR tdb(3)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -