Commit | Line | Data |
---|---|---|
fdeaf90b RG |
1 | %!PS-Adobe-3.0 |
2 | %%Creator: groff version 1.08 | |
3 | %%DocumentNeededResources: font Times-Roman | |
4 | %%+ font Times-Bold | |
5 | %%+ font Times-Italic | |
6 | %%DocumentSuppliedResources: procset grops 1.08 0 | |
7 | %%Pages: 2 | |
8 | %%PageOrder: Ascend | |
9 | %%Orientation: Portrait | |
10 | %%EndComments | |
11 | %%BeginProlog | |
12 | %%BeginResource: procset grops 1.08 0 | |
13 | /setpacking where{ | |
14 | pop | |
15 | currentpacking | |
16 | true setpacking | |
17 | }if | |
18 | /grops 120 dict dup begin | |
19 | /SC 32 def | |
20 | /A/show load def | |
21 | /B{0 SC 3 -1 roll widthshow}bind def | |
22 | /C{0 exch ashow}bind def | |
23 | /D{0 exch 0 SC 5 2 roll awidthshow}bind def | |
24 | /E{0 rmoveto show}bind def | |
25 | /F{0 rmoveto 0 SC 3 -1 roll widthshow}bind def | |
26 | /G{0 rmoveto 0 exch ashow}bind def | |
27 | /H{0 rmoveto 0 exch 0 SC 5 2 roll awidthshow}bind def | |
28 | /I{0 exch rmoveto show}bind def | |
29 | /J{0 exch rmoveto 0 SC 3 -1 roll widthshow}bind def | |
30 | /K{0 exch rmoveto 0 exch ashow}bind def | |
31 | /L{0 exch rmoveto 0 exch 0 SC 5 2 roll awidthshow}bind def | |
32 | /M{rmoveto show}bind def | |
33 | /N{rmoveto 0 SC 3 -1 roll widthshow}bind def | |
34 | /O{rmoveto 0 exch ashow}bind def | |
35 | /P{rmoveto 0 exch 0 SC 5 2 roll awidthshow}bind def | |
36 | /Q{moveto show}bind def | |
37 | /R{moveto 0 SC 3 -1 roll widthshow}bind def | |
38 | /S{moveto 0 exch ashow}bind def | |
39 | /T{moveto 0 exch 0 SC 5 2 roll awidthshow}bind def | |
40 | /SF{ | |
41 | findfont exch | |
42 | [exch dup 0 exch 0 exch neg 0 0]makefont | |
43 | dup setfont | |
44 | [exch/setfont cvx]cvx bind def | |
45 | }bind def | |
46 | /MF{ | |
47 | findfont | |
48 | [5 2 roll | |
49 | 0 3 1 roll | |
50 | neg 0 0]makefont | |
51 | dup setfont | |
52 | [exch/setfont cvx]cvx bind def | |
53 | }bind def | |
54 | /level0 0 def | |
55 | /RES 0 def | |
56 | /PL 0 def | |
57 | /LS 0 def | |
58 | /PLG{ | |
59 | gsave newpath clippath pathbbox grestore | |
60 | exch pop add exch pop | |
61 | }bind def | |
62 | /BP{ | |
63 | /level0 save def | |
64 | 1 setlinecap | |
65 | 1 setlinejoin | |
66 | 72 RES div dup scale | |
67 | LS{ | |
68 | 90 rotate | |
69 | }{ | |
70 | 0 PL translate | |
71 | }ifelse | |
72 | 1 -1 scale | |
73 | }bind def | |
74 | /EP{ | |
75 | level0 restore | |
76 | showpage | |
77 | }bind def | |
78 | /DA{ | |
79 | newpath arcn stroke | |
80 | }bind def | |
81 | /SN{ | |
82 | transform | |
83 | .25 sub exch .25 sub exch | |
84 | round .25 add exch round .25 add exch | |
85 | itransform | |
86 | }bind def | |
87 | /DL{ | |
88 | SN | |
89 | moveto | |
90 | SN | |
91 | lineto stroke | |
92 | }bind def | |
93 | /DC{ | |
94 | newpath 0 360 arc closepath | |
95 | }bind def | |
96 | /TM matrix def | |
97 | /DE{ | |
98 | TM currentmatrix pop | |
99 | translate scale newpath 0 0 .5 0 360 arc closepath | |
100 | TM setmatrix | |
101 | }bind def | |
102 | /RC/rcurveto load def | |
103 | /RL/rlineto load def | |
104 | /ST/stroke load def | |
105 | /MT/moveto load def | |
106 | /CL/closepath load def | |
107 | /FL{ | |
108 | currentgray exch setgray fill setgray | |
109 | }bind def | |
110 | /BL/fill load def | |
111 | /LW/setlinewidth load def | |
112 | /RE{ | |
113 | findfont | |
114 | dup maxlength 1 index/FontName known not{1 add}if dict begin | |
115 | { | |
116 | 1 index/FID ne{def}{pop pop}ifelse | |
117 | }forall | |
118 | /Encoding exch def | |
119 | dup/FontName exch def | |
120 | currentdict end definefont pop | |
121 | }bind def | |
122 | /DEFS 0 def | |
123 | /EBEGIN{ | |
124 | moveto | |
125 | DEFS begin | |
126 | }bind def | |
127 | /EEND/end load def | |
128 | /CNT 0 def | |
129 | /level1 0 def | |
130 | /PBEGIN{ | |
131 | /level1 save def | |
132 | translate | |
133 | div 3 1 roll div exch scale | |
134 | neg exch neg exch translate | |
135 | 0 setgray | |
136 | 0 setlinecap | |
137 | 1 setlinewidth | |
138 | 0 setlinejoin | |
139 | 10 setmiterlimit | |
140 | []0 setdash | |
141 | /setstrokeadjust where{ | |
142 | pop | |
143 | false setstrokeadjust | |
144 | }if | |
145 | /setoverprint where{ | |
146 | pop | |
147 | false setoverprint | |
148 | }if | |
149 | newpath | |
150 | /CNT countdictstack def | |
151 | userdict begin | |
152 | /showpage{}def | |
153 | }bind def | |
154 | /PEND{ | |
155 | clear | |
156 | countdictstack CNT sub{end}repeat | |
157 | level1 restore | |
158 | }bind def | |
159 | end def | |
160 | /setpacking where{ | |
161 | pop | |
162 | setpacking | |
163 | }if | |
164 | %%EndResource | |
165 | %%IncludeResource: font Times-Roman | |
166 | %%IncludeResource: font Times-Bold | |
167 | %%IncludeResource: font Times-Italic | |
168 | grops begin/DEFS 1 dict def DEFS begin/u{.001 mul}bind def end/RES 72 def/PL | |
169 | 792 def/LS false def/ENC0[/asciicircum/asciitilde/Scaron/Zcaron/scaron/zcaron | |
170 | /Ydieresis/trademark/quotesingle/.notdef/.notdef/.notdef/.notdef/.notdef | |
171 | /.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef | |
172 | /.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/space | |
173 | /exclam/quotedbl/numbersign/dollar/percent/ampersand/quoteright/parenleft | |
174 | /parenright/asterisk/plus/comma/hyphen/period/slash/zero/one/two/three/four | |
175 | /five/six/seven/eight/nine/colon/semicolon/less/equal/greater/question/at/A/B/C | |
176 | /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 | |
177 | /bracketright/circumflex/underscore/quoteleft/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q | |
178 | /r/s/t/u/v/w/x/y/z/braceleft/bar/braceright/tilde/.notdef/quotesinglbase | |
179 | /guillemotleft/guillemotright/bullet/florin/fraction/perthousand/dagger | |
180 | /daggerdbl/endash/emdash/ff/fi/fl/ffi/ffl/dotlessi/dotlessj/grave/hungarumlaut | |
181 | /dotaccent/breve/caron/ring/ogonek/quotedblleft/quotedblright/oe/lslash | |
182 | /quotedblbase/OE/Lslash/.notdef/exclamdown/cent/sterling/currency/yen/brokenbar | |
183 | /section/dieresis/copyright/ordfeminine/guilsinglleft/logicalnot/minus | |
184 | /registered/macron/degree/plusminus/twosuperior/threesuperior/acute/mu | |
185 | /paragraph/periodcentered/cedilla/onesuperior/ordmasculine/guilsinglright | |
186 | /onequarter/onehalf/threequarters/questiondown/Agrave/Aacute/Acircumflex/Atilde | |
187 | /Adieresis/Aring/AE/Ccedilla/Egrave/Eacute/Ecircumflex/Edieresis/Igrave/Iacute | |
188 | /Icircumflex/Idieresis/Eth/Ntilde/Ograve/Oacute/Ocircumflex/Otilde/Odieresis | |
189 | /multiply/Oslash/Ugrave/Uacute/Ucircumflex/Udieresis/Yacute/Thorn/germandbls | |
190 | /agrave/aacute/acircumflex/atilde/adieresis/aring/ae/ccedilla/egrave/eacute | |
191 | /ecircumflex/edieresis/igrave/iacute/icircumflex/idieresis/eth/ntilde/ograve | |
192 | /oacute/ocircumflex/otilde/odieresis/divide/oslash/ugrave/uacute/ucircumflex | |
193 | /udieresis/yacute/thorn/ydieresis]def/Times-Italic@0 ENC0/Times-Italic RE | |
194 | /Times-Bold@0 ENC0/Times-Bold RE/Times-Roman@0 ENC0/Times-Roman RE | |
195 | %%EndProlog | |
196 | %%Page: 1 1 | |
197 | %%BeginPageSetup | |
198 | BP | |
199 | %%EndPageSetup | |
200 | /F0 10/Times-Roman@0 SF 174.84(MPOOL\(3\) 1991 MPOOL\(3\))72 48 R/F1 9 | |
201 | /Times-Bold@0 SF -.18(NA)72 84 S(ME).18 E F0(mpool \255 shared memory b)108 96 | |
202 | Q(uf)-.2 E(fer pool)-.25 E F1(SYNOPSIS)72 112.8 Q/F2 10/Times-Bold@0 SF | |
203 | (#include <db)108 124.8 Q(.h>)-.4 E(#include <mpool.h>)108 136.8 Q(MPOOL *)108 | |
204 | 160.8 Q(mpool_open \(DBT *k)108 172.8 Q(ey)-.1 E 2.5(,i)-.55 G | |
205 | (nt fd, pgno_t pagesize, pgno_t maxcache\);)216.25 172.8 Q -.1(vo)108 196.8 S | |
206 | (id).1 E(mpool_\214lter \(MPOOL *mp, v)108 208.8 Q(oid \(*pgin\)\(v)-.1 E | |
207 | (oid *, pgno_t, v)-.1 E(oid *\),)-.1 E -.1(vo)158 220.8 S(id \(*pgout\)\(v).1 E | |
208 | (oid *, pgno_t, v)-.1 E(oid *\), v)-.1 E(oid *pgcookie\);)-.1 E -.1(vo)108 | |
209 | 244.8 S(id *).1 E(mpool_new \(MPOOL *mp, pgno_t *pgnoaddr\);)108 256.8 Q -.1 | |
210 | (vo)108 280.8 S(id *).1 E(mpool_get \(MPOOL *mp, pgno_t pgno, u_int \215ags\);) | |
211 | 108 292.8 Q(int)108 316.8 Q(mpool_put \(MPOOL *mp, v)108 328.8 Q(oid *pgaddr) | |
212 | -.1 E 2.5(,u)-.92 G(_int \215ags\);)290.62 328.8 Q(int)108 352.8 Q | |
213 | (mpool_sync \(MPOOL *mp\);)108 364.8 Q(int)108 388.8 Q | |
214 | (mpool_close \(MPOOL *mp\);)108 400.8 Q F1(DESCRIPTION)72 417.6 Q/F3 10 | |
215 | /Times-Italic@0 SF(Mpool)108 429.6 Q F0 1.013(is the library interf)3.513 F | |
216 | 1.013(ace intended to pro)-.1 F 1.013(vide page oriented b)-.15 F(uf)-.2 E | |
217 | 1.012(fer management of \214les.)-.25 F 1.012(The b)6.012 F(uf)-.2 E(fers)-.25 | |
218 | E(may be shared between processes.)108 441.6 Q .416(The function)108 458.4 R F3 | |
219 | (mpool_open)2.916 E F0 .417(initializes a memory pool.)2.917 F(The)5.417 E F3 | |
220 | -.1(ke)2.917 G(y)-.2 E F0(ar)2.917 E .417(gument is the byte string used to ne) | |
221 | -.18 F(gotiate)-.15 E .697(between multiple processes wishing to share b)108 | |
222 | 470.4 R(uf)-.2 E 3.196(fers. If)-.25 F .696(the \214le b)3.196 F(uf)-.2 E .696 | |
223 | (fers are mapped in shared memory)-.25 F 3.196(,a)-.65 G(ll)534.44 470.4 Q .894 | |
224 | (processes using the same k)108 482.4 R 1.194 -.15(ey w)-.1 H .894 | |
225 | (ill share the b).15 F(uf)-.2 E 3.394(fers. If)-.25 F F3 -.1(ke)3.394 G(y)-.2 E | |
226 | F0 .895(is NULL, the b)3.395 F(uf)-.2 E .895(fers are mapped into pri)-.25 F | |
227 | -.25(va)-.25 G(te).25 E(memory)108 494.4 Q 5.116(.T)-.65 G(he)154.406 494.4 Q | |
228 | F3(fd)2.616 E F0(ar)2.616 E .115(gument is a \214le descriptor for the underly\ | |
229 | ing \214le, which must be seekable.)-.18 F(If)5.115 E F3 -.1(ke)2.615 G(y)-.2 E | |
230 | F0 .115(is non-)2.615 F(NULL and matches a \214le already being mapped, the)108 | |
231 | 506.4 Q F3(fd)2.5 E F0(ar)2.5 E(gument is ignored.)-.18 E(The)108 523.2 Q F3 | |
232 | (pa)3.328 E -.1(ge)-.1 G(size).1 E F0(ar)3.329 E .829 | |
233 | (gument is the size, in bytes, of the pages into which the \214le is brok)-.18 | |
234 | F .829(en up.)-.1 F(The)5.829 E F3(maxcac)3.329 E(he)-.15 E F0(ar)108 535.2 Q | |
235 | .153(gument is the maximum number of pages from the underlying \214le to cache\ | |
236 | at an)-.18 F 2.653(yo)-.15 G .153(ne time.)451.308 535.2 R .153(This v)5.153 F | |
237 | .153(alue is)-.25 F .099(not relati)108 547.2 R .399 -.15(ve t)-.25 H 2.599(ot) | |
238 | .15 G .099(he number of processes which share a \214le')168.727 547.2 R 2.6(sb) | |
239 | -.55 G(uf)350.39 547.2 Q .1(fers, b)-.25 F .1(ut will be the lar)-.2 F .1 | |
240 | (gest v)-.18 F .1(alue speci\214ed by)-.25 F(an)108 559.2 Q 2.5(yo)-.15 G 2.5 | |
241 | (ft)129.79 559.2 S(he processes sharing the \214le.)138.4 559.2 Q(The)108 576 Q | |
242 | F3(mpool_\214lter)3.254 E F0 .754(function is intended to mak)3.254 F 3.254(et) | |
243 | -.1 G .754(ransparent input and output processing of the pages possi-)301.778 | |
244 | 576 R 3.095(ble. If)108 588 R(the)3.095 E F3(pgin)3.095 E F0 .596 | |
245 | (function is speci\214ed, it is called each time a b)3.095 F(uf)-.2 E .596 | |
246 | (fer is read into the memory pool from the)-.25 F .125(backing \214le.)108 600 | |
247 | R .125(If the)5.125 F F3(pgout)2.625 E F0 .125 | |
248 | (function is speci\214ed, it is called each time a b)2.625 F(uf)-.2 E .125 | |
249 | (fer is written into the backing \214le.)-.25 F .276 | |
250 | (Both functions are are called with the)108 612 R F3(pgcookie)2.777 E F0 | |
251 | (pointer)2.777 E 2.777(,t)-.4 G .277 | |
252 | (he page number and a pointer to the page to being)337.27 612 R | |
253 | (read or written.)108 624 Q .124(The function)108 640.8 R F3(mpool_ne)2.624 E | |
254 | (w)-.15 E F0(tak)2.624 E .123(es an MPOOL pointer and an address as ar)-.1 F | |
255 | 2.623(guments. If)-.18 F 2.623(an)2.623 G .623 -.25(ew p)457.568 640.8 T .123 | |
256 | (age can be allo-).25 F .944(cated, a pointer to the page is returned and the \ | |
257 | page number is stored into the)108 652.8 R F3(pgnoaddr)3.445 E F0 3.445 | |
258 | (address. Other)3.445 F(-)-.2 E(wise, NULL is returned and errno is set.)108 | |
259 | 664.8 Q 1.167(The function)108 681.6 R F3(mpool_g)3.667 E(et)-.1 E F0(tak)3.667 | |
260 | E 1.167(es a MPOOL pointer and a page number as ar)-.1 F 3.666(guments. If)-.18 | |
261 | F 1.166(the page e)3.666 F 1.166(xists, a)-.15 F .686 | |
262 | (pointer to the page is returned.)108 693.6 R .687 | |
263 | (Otherwise, NULL is returned and errno is set.)5.686 F .687 | |
264 | (The \215ags parameter is not)5.687 F(currently used.)108 705.6 Q 1.463 | |
265 | (The function)108 722.4 R F3(mpool_put)3.963 E F0 1.462 | |
266 | (unpins the page referenced by)3.962 F F3(pgaddr)3.962 E F0(.).73 E F3(Pgaddr) | |
267 | 6.462 E F0 1.462(must be an address pre)3.962 F(viously)-.25 E 197.615 | |
268 | (12, September)72 768 R(1)535 768 Q EP | |
269 | %%Page: 2 2 | |
270 | %%BeginPageSetup | |
271 | BP | |
272 | %%EndPageSetup | |
273 | /F0 10/Times-Roman@0 SF 174.84(MPOOL\(3\) 1991 MPOOL\(3\))72 48 R(returned by) | |
274 | 108 84 Q/F1 10/Times-Italic@0 SF(mpool_g)2.5 E(et)-.1 E F0(or)2.5 E F1 | |
275 | (mpool_ne)2.5 E(w)-.15 E F0 5(.T).31 G(he \215ag v)271.65 84 Q | |
276 | (alue is speci\214ed by)-.25 E F1(or)2.5 E F0('ing an).73 E 2.5(yo)-.15 G 2.5 | |
277 | (ft)434.74 84 S(he follo)443.35 84 Q(wing v)-.25 E(alues:)-.25 E(MPOOL_DIR)108 | |
278 | 100.8 Q(TY)-.6 E | |
279 | (The page has been modi\214ed and needs to be written to the backing \214le.) | |
280 | 144 112.8 Q F1(Mpool_put)108 129.6 Q F0 | |
281 | (returns 0 on success and -1 if an error occurs.)2.5 E .247(The function)108 | |
282 | 146.4 R F1(mpool_sync)2.747 E F0 .247(writes all modi\214ed pages associated w\ | |
283 | ith the MPOOL pointer to the backing \214le.)2.747 F F1(Mpool_sync)108 158.4 Q | |
284 | F0(returns 0 on success and -1 if an error occurs.)2.5 E(The)108 175.2 Q F1 | |
285 | (mpool_close)2.698 E F0 .198(function free')2.698 F 2.698(su)-.55 G 2.698(pa) | |
286 | 245.432 175.2 S .498 -.15(ny a)257.57 175.2 T .198 | |
287 | (llocated memory associated with the memory pool cookie.).15 F(Modi-)5.197 E | |
288 | (\214ed pages are)108 187.2 Q/F2 10/Times-Bold@0 SF(not)2.5 E F0 | |
289 | (written to the backing \214le.)2.5 E F1(Mpool_close)5 E F0 | |
290 | (returns 0 on success and -1 if an error occurs.)2.5 E/F3 9/Times-Bold@0 SF | |
291 | (ERR)72 204 Q(ORS)-.27 E F0(The)108 216 Q F1(mpool_open)2.938 E F0 .438 | |
292 | (function may f)2.938 F .438(ail and set)-.1 F F1(errno)2.938 E F0 .438(for an) | |
293 | 2.938 F 2.938(yo)-.15 G 2.938(ft)344.87 216 S .439 | |
294 | (he errors speci\214ed for the library routine)353.918 216 R F1(mal-)2.939 E | |
295 | (loc)108 228 Q F0(\(3\).).31 E(The)108 244.8 Q F1(mpool_g)2.5 E(et)-.1 E F0 | |
296 | (function may f)2.5 E(ail and set)-.1 E F1(errno)2.5 E F0(for the follo)2.5 E | |
297 | (wing:)-.25 E([EINV)108 261.6 Q 29.98(AL] The)-1.35 F(requested record doesn') | |
298 | 2.5 E 2.5(te)-.18 G(xist.)305.96 261.6 Q(The)108 278.4 Q F1(mpool_ne)4.073 E(w) | |
299 | -.15 E F0(and)4.073 E F1(mpool_g)4.073 E(et)-.1 E F0 1.573(functions may f) | |
300 | 4.073 F 1.573(ail and set)-.1 F F1(errno)4.073 E F0 1.573(for an)4.073 F 4.073 | |
301 | (yo)-.15 G 4.073(ft)421.336 278.4 S 1.573(he errors speci\214ed for the)431.519 | |
302 | 278.4 R(library routines)108 290.4 Q F1 -.37(re)2.5 G(ad).37 E F0(\(2\)).77 E | |
303 | F1 2.5(,w).54 G(rite)214.48 290.4 Q F0(\(2\)).18 E F1(,).54 E F0(and)2.5 E F1 | |
304 | (malloc)2.5 E F0(\(3\).).31 E(The)108 307.2 Q F1(mpool_sync)4.287 E F0 1.787 | |
305 | (function may f)4.287 F 1.787(ail and set)-.1 F F1(errno)4.288 E F0 1.788 | |
306 | (for an)4.288 F 4.288(yo)-.15 G 4.288(ft)356.694 307.2 S 1.788 | |
307 | (he errors speci\214ed for the library routine)367.092 307.2 R F1(write)108 | |
308 | 319.2 Q F0(\(2\).).18 E(The)108 336 Q F1(mpool_close)4.125 E F0 1.624 | |
309 | (function may f)4.125 F 1.624(ail and set)-.1 F F1(errno)4.124 E F0 1.624 | |
310 | (for an)4.124 F 4.124(yo)-.15 G 4.124(ft)357.842 336 S 1.624 | |
311 | (he errors speci\214ed for the library routine)368.076 336 R F1(fr)108 348 Q | |
312 | (ee)-.37 E F0(\(3\).).18 E F3(SEE ALSO)72 364.8 Q F1(dbopen)108 376.8 Q F0 | |
313 | (\(3\),).24 E F1(btr)2.5 E(ee)-.37 E F0(\(3\),).18 E F1(hash)2.5 E F0(\(3\),) | |
314 | .28 E F1 -.37(re)2.5 G(cno).37 E F0(\(3\)).18 E 197.615(12, September)72 768 R | |
315 | (2)535 768 Q EP | |
316 | %%Trailer | |
317 | end | |
318 | %%EOF |