Subject: lib/90: termcap routines don't use getcap(3)
To: None <gnats-admin>
From: None <>
List: netbsd-bugs
Date: 01/21/1994 12:20:05
>Number:         90
>Category:       lib
>Synopsis:       termcap access routines don't use getcap(3)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin (Library Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 21 12:20:03 1994
>Originator:     Adam Glass
Adam Glass                        |E-mail home:
				  |Physical   : Seattle
		     "reality is for dead birds"
>Release:        NetBSD current
System: NetBSD 0.9a SUN_LAMP_AHBBT_NODDB#15 i386

	cap_mkdb can build a db database from the termcap file.
	the getcap(3) routines are provided for traversing capability
		files via db database (if available) or the plain text version.
	the termcap access routines (tgetent(3), etc.) do not use the
		the getcap(3) routines currently, and thus we can't
		do termcap lookups via db.
	this is only a performance issue, no additional functionality is
		gained by using the getcap(3) routines.
	look at lib/libterm/termcap.c
	Can't get the code from 4.4, because it is too close to a sensitive
		piece of code.
	I believe it should be easy to do, as the getcap(3) routines
		appear to be derived from the termcap access routines.