bin/70929: [patch] mpool(3): ignored function argument documented to work

dada at dada at
Wed Aug 25 00:10:36 PDT 2004

>Number:         70929
>Category:       bin
>Synopsis:       mpool(3): ignored function argument documented to work
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 25 07:10:35 GMT 2004
>Originator:     Martin Kammerhofer
>Release:        FreeBSD 4.10-RELEASE-p2 i386
Graz Uni
System: FreeBSD Martin.liebt.Susi 4.10-RELEASE-p2 FreeBSD 4.10-RELEASE-p2 #1: Mon Aug 16 14:26:52 CEST 2004 toor at Martin.liebt.Susi:/mnt/redhat/freebsd/usr/src/sys/compile/GEIDORF4 i386
The mpool(3) manpage explains an unimplemented feature of
mpool_open(). The `key' argument is unused by the code.  BTW, the
mpool(3) interface has been dropped in later versions of db(3);
i.e. Berkeley DB >= 2.0 does not have it any more. See also the last
sentence of the dbopen(3) manpage.
gcc -W -Wunused /usr/src/lib/libc/db/mpool/mpool.c 2>&1 | grep key
--- /usr/src/lib/libc/db/man/mpool.3.orig	Sun Feb 23 20:45:52 2003
+++ /usr/src/lib/libc/db/man/mpool.3	Sun Aug 22 17:18:36 2004
@@ -65,32 +65,16 @@
 .Nm mpool
 library interface is intended to provide page oriented buffer management
 of files.
-The buffers may be shared between processes.
 .Fn mpool_open
 function initializes a memory pool.
 .Fa key
-argument is the byte string used to negotiate between multiple
-processes wishing to share buffers.
-If the file buffers are mapped in shared memory, all processes using
-the same key will share the buffers.
-.Fa key
-.Dv NULL ,
-the buffers are mapped into private memory.
+argument is currently ignored.
 .Fa fd
 argument is a file descriptor for the underlying file, which must be seekable.
-.Fa key
-.No non\- Ns Dv NULL
-and matches a file already being mapped, the
-.Fa fd
-argument is ignored.
 .Fa pagesize


 This message is in MIME format.
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Disposition: inline
 Content-Transfer-Encoding: 7bit
 Content-Type: text/plain; charset=UTF-8; name=""
 Content-Disposition: inline; filename=""
 Content-Transfer-Encoding: 7bit

More information about the freebsd-bugs mailing list