From owner-freebsd-bugs@FreeBSD.ORG Wed Aug 25 07:10:36 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0FEF016A587 for ; Wed, 25 Aug 2004 07:10:36 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E807643D54 for ; Wed, 25 Aug 2004 07:10:35 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i7P7AZxk085278 for ; Wed, 25 Aug 2004 07:10:35 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i7P7AZuh085277; Wed, 25 Aug 2004 07:10:35 GMT (envelope-from gnats) Resent-Date: Wed, 25 Aug 2004 07:10:35 GMT Resent-Message-Id: <200408250710.i7P7AZuh085277@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, dada@sbox.tugraz.at Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1DB6816A4CE for ; Wed, 25 Aug 2004 07:09:26 +0000 (GMT) Received: from mailrelay02.tugraz.at (mailrelay.tu-graz.ac.at [129.27.3.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2381A43D45 for ; Wed, 25 Aug 2004 07:09:25 +0000 (GMT) (envelope-from dada@sbox.tugraz.at) Received: from webmail.tugraz.at (webmail02.tu-graz.ac.at [129.27.3.144]) by mailrelay02.tugraz.at (8.13.1/8.13.1) with ESMTP id i7P79MFX019051 for ; Wed, 25 Aug 2004 09:09:23 +0200 (CEST) Received: from ARP410.kfunigraz.ac.at (ARP410.kfunigraz.ac.at ; Wed, 25 Aug 2004 09:09:22 +0200 Message-Id: <20040825090922.gbcsg8g0kg8sk4s0@webmail.tugraz.at> Date: Wed, 25 Aug 2004 09:09:22 +0200 From: dada@sbox.tugraz.at To: FreeBSD problem reports Subject: bin/70929: [patch] mpool(3): ignored function argument documented to work X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2004 07:10:36 -0000 >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 >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Wed Aug 25 07:10:35 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Martin Kammerhofer >Release: FreeBSD 4.10-RELEASE-p2 i386 >Organization: Graz Uni >Environment: System: FreeBSD Martin.liebt.Susi 4.10-RELEASE-p2 FreeBSD 4.10-RELEASE-p2 #1: Mon Aug 16 14:26:52 CEST 2004 toor@Martin.liebt.Susi:/mnt/redhat/freebsd/usr/src/sys/compile/GEIDORF4 i386 >Description: 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. >How-To-Repeat: gcc -W -Wunused /usr/src/lib/libc/db/mpool/mpool.c 2>&1 | grep key >Fix: --- /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. .Pp The .Fn mpool_open function initializes a memory pool. The .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. -If -.Fa key -is -.Dv NULL , -the buffers are mapped into private memory. +argument is currently ignored. The .Fa fd argument is a file descriptor for the underlying file, which must be seekable. -If -.Fa key -is -.No non\- Ns Dv NULL -and matches a file already being mapped, the -.Fa fd -argument is ignored. .Pp The .Fa pagesize --=_2ubyz9a36hwk-- >Release-Note: >Audit-Trail: >Unformatted: This message is in MIME format. --=_2ubyz9a36hwk Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 7bit --=_2ubyz9a36hwk Content-Type: text/plain; charset=UTF-8; name="mpool.pr" Content-Disposition: inline; filename="mpool.pr" Content-Transfer-Encoding: 7bit