Subject: lib/1249: ndbm.h is missing prototypes
To: None <gnats-bugs@gnats.netbsd.org>
From: Tom Yu <tlyu@MIT.EDU>
List: netbsd-bugs
Date: 07/21/1995 04:03:48
>Number:         1249
>Category:       lib
>Synopsis:       ndbm.h is missing prototypes
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people (Library Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 21 04:05:01 1995
>Last-Modified:
>Originator:     Tom Yu
>Organization:

MIT Kerberos 5 Development Team

>Release:        -current, 13 Jul 1995
>Environment:

System: NetBSD lothlorien 1.0A NetBSD 1.0A (LOTHLORIEN) #4: Tue Jul 18 09:27:26 EDT 1995 tlyu@lothlorien:/u1/usr/current-source/src/sys/arch/i386/compile/LOTHLORIEN i386

>Description:

src/include/ndbm.h is missing prototypes for dbm_error() and
dbm_clearerr(), even though these functions are defined in
src/lib/libc/db/hash/ndbm.c.

>How-To-Repeat:

N/A

>Fix:

The following patch should work:
--- include/ndbm.h  Mon Mar 20 02:17:51 1995
+++ /tmp/ndbm.h Fri Jul 21 03:48:32 1995
@@ -73,6 +73,8 @@
 datum   dbm_nextkey __P((DBM *));
 DBM    *dbm_open __P((const char *, int, int));
 int     dbm_store __P((DBM *, datum, datum, int));
+int     dbm_error __P((DBM *));
+int     dbm_clearerr __P((DBM *));
 int     dbm_dirfno __P((DBM *));
 __END_DECLS
 
>Audit-Trail:
>Unformatted: