docs/80070: [patch] Wrong dbm_close return value described in dbm(3) man page

Aleksej Saushev asau at pisem.net
Mon Apr 18 13:20:14 UTC 2005


>Number:         80070
>Category:       docs
>Synopsis:       [patch] Wrong dbm_close return value described in dbm(3) man page
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 18 13:20:13 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Aleksej Saushev
>Release:        FreeBSD 5.3-RELEASE i386
>Organization:
>Environment:
>Description:
Quoting dbm(3) man page:
----------------------------------------------------------------
void
dbm_close(DBM *db);

..

The dbm_close(db) function closes the database.  The dbm_close() function
normally returns zero.
----------------------------------------------------------------

/usr/include/ndbm.h file contains line:
void	 dbm_close(DBM *);
      
>How-To-Repeat:
      
>Fix:
diff -u /usr/src/lib/libc/db/man/dbm.3.orig /usr/src/lib/libc/db/man/dbm.3
--- /usr/src/lib/libc/db/man/dbm.3.orig	Thu Apr  7 19:20:43 2005
+++ /usr/src/lib/libc/db/man/dbm.3	Thu Apr  7 19:21:07 2005
@@ -124,10 +124,6 @@
 .Fn dbm_close db
 function
 closes the database.
-The
-.Fn dbm_close
-function
-normally returns zero.
 .Pp
 The
 .Fn dbm_store db key data flags
      
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-doc mailing list