NetBSD Problem Report #42413
From www@NetBSD.org Sat Dec 5 02:28:34 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 1437563C4CB
for <gnats-bugs@gnats.netbsd.org>; Sat, 5 Dec 2009 02:28:34 +0000 (UTC)
Message-Id: <20091205022833.8253F63C3AC@www.NetBSD.org>
Date: Sat, 5 Dec 2009 02:28:33 +0000 (UTC)
From: silasdb@gmail.com
Reply-To: silasdb@gmail.com
To: gnats-bugs@NetBSD.org
Subject: Wrong signature for prop_dictionary_ensure_capacity() in man page
X-Send-Pr-Version: www-1.0
>Number: 42413
>Category: lib
>Synopsis: Wrong signature for prop_dictionary_ensure_capacity() in man page
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: lib-bug-people
>State: closed
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Sat Dec 05 02:30:00 +0000 2009
>Closed-Date: Sat Dec 05 10:17:34 +0000 2009
>Last-Modified: Sat Dec 05 10:20:02 +0000 2009
>Originator: Silas Silva
>Release: current
>Organization:
>Environment:
>Description:
prop_dictionary(3) informs two different signatures for the prop_dictionary_ensure_capacity() function. One in the SYNOPSIS section (the correct one, I think) and a different signature in the DESCRIPTION section (it lacks the "capacity" parameter).
>How-To-Repeat:
man prop_dictionary
>Fix:
Apply this patch in src/common/lib/libprop:
--- prop_dictionary.3.orig 2009-12-05 00:05:18.000000000 -0200
+++ prop_dictionary.3 2009-12-05 00:13:54.000000000 -0200
@@ -165,7 +165,8 @@
except the resulting dictionary is always mutable.
.It Fn prop_dictionary_count "prop_dictionary_t dict"
Returns the number of objects stored in the dictionary.
-.It Fn prop_dictionary_ensure_capacity "prop_dictionary_t dict"
+.It Fn prop_dictionary_ensure_capacity "prop_dictionary_t dict" \
+ "unsigned int capacity"
Ensure that the dictionary has a total capacity of
.Fa capacity ,
including objects already stored in the dictionary.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Sat, 05 Dec 2009 10:17:34 +0000
State-Changed-Why:
Fixed, thanks!
From: Thomas Klausner <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/42413 CVS commit: src/common/lib/libprop
Date: Sat, 5 Dec 2009 10:17:17 +0000
Module Name: src
Committed By: wiz
Date: Sat Dec 5 10:17:17 UTC 2009
Modified Files:
src/common/lib/libprop: prop_dictionary.3
Log Message:
Fix prop_dictionary_ensure_capacity signature, bump date.
From Silas Silva in PR 42413.
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/common/lib/libprop/prop_dictionary.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.