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

📄 tdb_store.3

📁 Linux下的一个关系数据库源代码
💻 3
字号:
.TH tdb_store "Aug 16, 2000" "Samba" "Linux Programmer's Manual".SH NAMEtdb_store - store a record in a tdb database..SH SYNOPSIS.nf.B #include <tdb.h>.sp.BI "int tdb_store(TDB_CONTEXT *" tdb ", TDB_DATA " key ", TDB_DATA " record ", int " flag ");".sp.SH DESCRIPTIONStore a lump of data pointed to by .I recordin the.I tdbdatabase under the index pointed to by.I key.The TDB_DATA structure used by both .I key and .I record is defined as:.PP.RS.nftypedef struct {	char *dptr;	size_t dsize;} TDB_DATA;.fi.RE.PPThe .I flagdetermines the way that tdb_store behaves and can be any one of thefollowing values..TP.B TDB_REPLACEInsert a record creating a new one or overwriting an existing one..TP.B TDB_INSERTInsert a new entry but refuse to overwrite an existing entry..TP.B TDB_MODIFYReplace an existing record with a new one. This will fail if,a record does not already exist..PP.SH "RETURN VALUE"A return value of 0 indicates success and -1 indicates failure..SH AUTHORSSoftware: Andrew Tridgell <tridge@linuxcare.com> and Luke Kenneth Casson LeightonMan page: Ben Woodard <ben@valinux.com>.SH "SEE ALSO".BR gdbm (3),.BR tdb(3)

⌨️ 快捷键说明

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