Deleted Added
full compact
mpool.3 (84306) mpool.3 (108037)
1.\" Copyright (c) 1990, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)mpool.3 8.1 (Berkeley) 6/4/93
1.\" Copyright (c) 1990, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)mpool.3 8.1 (Berkeley) 6/4/93
33.\" $FreeBSD: head/lib/libc/db/man/mpool.3 84306 2001-10-01 16:09:29Z ru $
33.\" $FreeBSD: head/lib/libc/db/man/mpool.3 108037 2002-12-18 12:45:11Z ru $
34.\"
35.Dd June 4, 1993
36.Dt MPOOL 3
37.Os
38.Sh NAME
39.Nm mpool
40.Nd "shared memory buffer pool"
41.Sh SYNOPSIS

--- 120 unchanged lines hidden (view full) ---

162value is specified by
163.Em or Ns 'ing
164any of the following values:
165.Bl -tag -width indent
166.It Dv MPOOL_DIRTY
167The page has been modified and needs to be written to the backing file.
168.El
169.Pp
34.\"
35.Dd June 4, 1993
36.Dt MPOOL 3
37.Os
38.Sh NAME
39.Nm mpool
40.Nd "shared memory buffer pool"
41.Sh SYNOPSIS

--- 120 unchanged lines hidden (view full) ---

162value is specified by
163.Em or Ns 'ing
164any of the following values:
165.Bl -tag -width indent
166.It Dv MPOOL_DIRTY
167The page has been modified and needs to be written to the backing file.
168.El
169.Pp
170.Fn Mpool_put
170The
171.Fn mpool_put
172function
171returns 0 on success and -1 if an error occurs.
172.Pp
173The function
174.Fn mpool_sync
175writes all modified pages associated with the
176.Ft MPOOL
177pointer to the
178backing file.
173returns 0 on success and -1 if an error occurs.
174.Pp
175The function
176.Fn mpool_sync
177writes all modified pages associated with the
178.Ft MPOOL
179pointer to the
180backing file.
179.Fn Mpool_sync
181The
182.Fn mpool_sync
183function
180returns 0 on success and -1 if an error occurs.
181.Pp
182The
183.Fn mpool_close
184function free's up any allocated memory associated with the memory pool
185cookie.
186Modified pages are
187.Em not
188written to the backing file.
184returns 0 on success and -1 if an error occurs.
185.Pp
186The
187.Fn mpool_close
188function free's up any allocated memory associated with the memory pool
189cookie.
190Modified pages are
191.Em not
192written to the backing file.
189.Fn Mpool_close
193The
194.Fn mpool_close
195function
190returns 0 on success and -1 if an error occurs.
191.Sh ERRORS
192The
193.Fn mpool_open
194function may fail and set
195.Va errno
196for any of the errors specified for the library routine
197.Xr malloc 3 .

--- 41 unchanged lines hidden ---
196returns 0 on success and -1 if an error occurs.
197.Sh ERRORS
198The
199.Fn mpool_open
200function may fail and set
201.Va errno
202for any of the errors specified for the library routine
203.Xr malloc 3 .

--- 41 unchanged lines hidden ---