📄 dbopen.3.ps
字号:
%!PS-Adobe-3.0%%Creator: groff version 1.08%%DocumentNeededResources: font Times-Roman%%+ font Times-Bold%%+ font Times-Italic%%DocumentSuppliedResources: procset grops 1.08 0%%Pages: 4%%PageOrder: Ascend%%Orientation: Portrait%%EndComments%%BeginProlog%%BeginResource: procset grops 1.08 0/setpacking where{popcurrentpackingtrue setpacking}if/grops 120 dict dup begin/SC 32 def/A/show load def/B{0 SC 3 -1 roll widthshow}bind def/C{0 exch ashow}bind def/D{0 exch 0 SC 5 2 roll awidthshow}bind def/E{0 rmoveto show}bind def/F{0 rmoveto 0 SC 3 -1 roll widthshow}bind def/G{0 rmoveto 0 exch ashow}bind def/H{0 rmoveto 0 exch 0 SC 5 2 roll awidthshow}bind def/I{0 exch rmoveto show}bind def/J{0 exch rmoveto 0 SC 3 -1 roll widthshow}bind def/K{0 exch rmoveto 0 exch ashow}bind def/L{0 exch rmoveto 0 exch 0 SC 5 2 roll awidthshow}bind def/M{rmoveto show}bind def/N{rmoveto 0 SC 3 -1 roll widthshow}bind def/O{rmoveto 0 exch ashow}bind def/P{rmoveto 0 exch 0 SC 5 2 roll awidthshow}bind def/Q{moveto show}bind def/R{moveto 0 SC 3 -1 roll widthshow}bind def/S{moveto 0 exch ashow}bind def/T{moveto 0 exch 0 SC 5 2 roll awidthshow}bind def/SF{findfont exch[exch dup 0 exch 0 exch neg 0 0]makefontdup setfont[exch/setfont cvx]cvx bind def}bind def/MF{findfont[5 2 roll0 3 1 roll neg 0 0]makefontdup setfont[exch/setfont cvx]cvx bind def}bind def/level0 0 def/RES 0 def/PL 0 def/LS 0 def/PLG{gsave newpath clippath pathbbox grestoreexch pop add exch pop}bind def/BP{/level0 save def1 setlinecap1 setlinejoin72 RES div dup scaleLS{90 rotate}{0 PL translate}ifelse1 -1 scale}bind def/EP{level0 restoreshowpage}bind def/DA{newpath arcn stroke}bind def/SN{transform.25 sub exch .25 sub exchround .25 add exch round .25 add exchitransform}bind def/DL{SNmovetoSNlineto stroke}bind def/DC{newpath 0 360 arc closepath}bind def/TM matrix def/DE{TM currentmatrix poptranslate scale newpath 0 0 .5 0 360 arc closepathTM setmatrix}bind def/RC/rcurveto load def/RL/rlineto load def/ST/stroke load def/MT/moveto load def/CL/closepath load def/FL{currentgray exch setgray fill setgray}bind def/BL/fill load def/LW/setlinewidth load def/RE{findfontdup maxlength 1 index/FontName known not{1 add}if dict begin{1 index/FID ne{def}{pop pop}ifelse}forall/Encoding exch defdup/FontName exch defcurrentdict end definefont pop}bind def/DEFS 0 def/EBEGIN{movetoDEFS begin}bind def/EEND/end load def/CNT 0 def/level1 0 def/PBEGIN{/level1 save deftranslatediv 3 1 roll div exch scaleneg exch neg exch translate0 setgray0 setlinecap1 setlinewidth0 setlinejoin10 setmiterlimit[]0 setdash/setstrokeadjust where{popfalse setstrokeadjust}if/setoverprint where{popfalse setoverprint}ifnewpath/CNT countdictstack defuserdict begin/showpage{}def}bind def/PEND{clearcountdictstack CNT sub{end}repeatlevel1 restore}bind defend def/setpacking where{popsetpacking}if%%EndResource%%IncludeResource: font Times-Roman%%IncludeResource: font Times-Bold%%IncludeResource: font Times-Italicgrops begin/DEFS 1 dict def DEFS begin/u{.001 mul}bind def end/RES 72 def/PL792 def/LS false def/ENC0[/asciicircum/asciitilde/Scaron/Zcaron/scaron/zcaron/Ydieresis/trademark/quotesingle/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/space/exclam/quotedbl/numbersign/dollar/percent/ampersand/quoteright/parenleft/parenright/asterisk/plus/comma/hyphen/period/slash/zero/one/two/three/four/five/six/seven/eight/nine/colon/semicolon/less/equal/greater/question/at/A/B/C/D/E/F/G/H/I/J/K/L/M/N/O/P/Q/R/S/T/U/V/W/X/Y/Z/bracketleft/backslash/bracketright/circumflex/underscore/quoteleft/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/braceleft/bar/braceright/tilde/.notdef/quotesinglbase/guillemotleft/guillemotright/bullet/florin/fraction/perthousand/dagger/daggerdbl/endash/emdash/ff/fi/fl/ffi/ffl/dotlessi/dotlessj/grave/hungarumlaut/dotaccent/breve/caron/ring/ogonek/quotedblleft/quotedblright/oe/lslash/quotedblbase/OE/Lslash/.notdef/exclamdown/cent/sterling/currency/yen/brokenbar/section/dieresis/copyright/ordfeminine/guilsinglleft/logicalnot/minus/registered/macron/degree/plusminus/twosuperior/threesuperior/acute/mu/paragraph/periodcentered/cedilla/onesuperior/ordmasculine/guilsinglright/onequarter/onehalf/threequarters/questiondown/Agrave/Aacute/Acircumflex/Atilde/Adieresis/Aring/AE/Ccedilla/Egrave/Eacute/Ecircumflex/Edieresis/Igrave/Iacute/Icircumflex/Idieresis/Eth/Ntilde/Ograve/Oacute/Ocircumflex/Otilde/Odieresis/multiply/Oslash/Ugrave/Uacute/Ucircumflex/Udieresis/Yacute/Thorn/germandbls/agrave/aacute/acircumflex/atilde/adieresis/aring/ae/ccedilla/egrave/eacute/ecircumflex/edieresis/igrave/iacute/icircumflex/idieresis/eth/ntilde/ograve/oacute/ocircumflex/otilde/odieresis/divide/oslash/ugrave/uacute/ucircumflex/udieresis/yacute/thorn/ydieresis]def/Times-Italic@0 ENC0/Times-Italic RE/Times-Bold@0 ENC0/Times-Bold RE/Times-Roman@0 ENC0/Times-Roman RE%%EndProlog%%Page: 1 1%%BeginPageSetupBP%%EndPageSetup/F0 10/Times-Roman@0 SF 124.01(DBOPEN\(3\) BSD)72 48 R(Programmer')2.5 E 2.5(sM)-.55 G 124.01(anual DBOPEN\(3\))340.17 48 R/F1 9/Times-Bold@0 SF -.18(NA)7284 S(ME).18 E F0(dbopen \255 database access methods)108 96 Q F1(SYNOPSIS)72112.8 Q/F2 10/Times-Bold@0 SF(#include <sys/types.h>)108 124.8 Q(#include <limits.h>)108 136.8 Q(#include <db)108 148.8 Q(.h>)-.4 E(DB *)108172.8 Q(dbopen\(const char *\214le, int \215ags, int mode, DBTYPE type,)108184.8 Q(const v)158 196.8 Q(oid *openinf)-.1 E(o\);)-.25 E F1(DESCRIPTION)72213.6 Q/F3 10/Times-Italic@0 SF(Dbopen)108 225.6 Q F0 .032(is the library interf)2.532 F .031(ace to database \214les.)-.1 F .031(The supported \214le formats are btree, hashed and UNIX \214le)5.031 F 2.82(oriented. The)108 237.6 R .32(btree format is a representation of a sorted, balanced tree structure.)2.82 F.321(The hashed format is an)5.321 F -.15(ex)108 249.6 S .424(tensible, dynamic hashing scheme.).15 F .423(The \215at-\214le format is a byte stream \214le with \214x)5.423 F .423(ed or v)-.15 F .423(ariable length)-.25 F 2.906(records. The)108 261.6 R .407(formats and \214le format speci\214c information are described in detail in t\heir respecti)2.906 F .707 -.15(ve m)-.25 H(anual).15 E(pages)108 273.6 Q F3(btr)2.5 E(ee)-.37 E F0(\(3\),).18 E F3(hash)2.5 E F0(\(3\) and).28 E F3 -.37(re)2.5 G(cno).37 E F0(\(3\).).18 E .433(Dbopen opens)108 290.4 R F3(\214le)2.933 E F0 .433(for reading and/or writing.)2.933 F .433(Files ne)5.433 F -.15(ve)-.25 G 2.933(ri).15 G .433(ntended to be preserv)346.737 290.4 R .433(ed on disk may be created)-.15 F(by setting the \214le parameter to NULL.)108302.4 Q(The)108 319.2 Q F3<8d61>4.661 E(gs)-.1 E F0(and)4.661 E F3 2.161(mode ar)4.661 F(guments)-.37 E F0 2.161(are as speci\214ed to the)4.661 F F3(open)4.661 E F0 2.162(\(2\) routine, ho).24 F(we)-.25 E -.15(ve)-.25 G 2.962-.4(r, o).15 H 2.162(nly the O_CREA).4 F -.74(T,)-1.11 G .128(O_EXCL, O_EXLOCK, O_NONBLOCK, O_RDONL)108 331.2 R 2.708 -1.29(Y, O)-1 H(_RD)1.29 E .128(WR, O_SHLOCK and O_TR)-.3 F .127(UNC \215ags are)-.4 F 2.5(meaningful. \(Note,)108 343.2 R(opening a database \214le O_WR)2.5 E(ONL)-.4 E2.5(Yi)-1 G 2.5(sn)342.67 343.2 S(ot possible.\))354.06 343.2 Q(The)108 360 QF3(type)5.337 E F0(ar)5.337 E 2.837(gument is of type DBTYPE \(as de\214ned in the <db)-.18 F 2.838(.h> include \214le\) and may be set to)-.4 F(DB_BTREE, DB_HASH or DB_RECNO.)108 372 Q(The)108 388.8 Q F3(openinfo)2.85 E F0(ar)2.85 E .349(gument is a poi\nter to an access method speci\214c structure described in the access method')-.18 F(s)-.55 E .03(manual page.)108 400.8 R(If)5.03 E F3(openinfo)2.53 E F0.031(is NULL, each access method will use def)2.53 F .031(aults appropriate for the system and the)-.1 F(access method.)108 412.8 Q F3(Dbopen)108 429.6 Q F0 .416(returns a pointer to a DB structure on success and NULL on error)2.917 F 5.416(.T)-.55 G .416(he DB structure is de\214ned in)423.21 429.6 R(the <db)108441.6 Q(.h> include \214le, and contains at least the follo)-.4 E(wing \214elds:)-.25 E(typedef struct {)108 465.6 Q(DBTYPE type;)144 477.6 Q(int \(*close\)\(const DB *db\);)144 489.6 Q(int \(*del\)\(const DB *db, const DBT *k)144 501.6 Q -.15(ey)-.1 G 2.5(,u)-.5G(_int \215ags\);)318.92 501.6 Q(int \(*fd\)\(const DB *db\);)144 513.6 Q(int \(*get\)\(const DB *db, DBT *k)144 525.6 Q -.15(ey)-.1 G 2.5(,D)-.5 G(BT *data, u_int \215ags\);)297.53 525.6 Q(int \(*put\)\(const DB *db, DBT *k)144 537.6 Q -.15(ey)-.1 G 2.5(,c)-.5 G(onst DBT *data,)295.31 537.6 Q(u_int \215ags\);)194 549.6 Q(int \(*sync\)\(const DB *db, u_int \215ags\);)144561.6 Q(int \(*seq\)\(const DB *db, DBT *k)144 573.6 Q -.15(ey)-.1 G 2.5(,D)-.5G(BT *data, u_int \215ags\);)298.64 573.6 Q 2.5(}D)108 585.6 S(B;)122.52 585.6Q .101(These elements describe a database type and a set of functions performing v)108 602.4 R .101(arious actions.)-.25 F .101(These functions)5.101 F(tak)108
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -