NetBSD Problem Report #90
From gnats Fri Jan 21 12:06:02 1994
Received: from localhost (glass@localhost) by sun-lamp.cs.berkeley.edu (8.6.4/8.6.4) id LAA27340; Fri, 21 Jan 1994 11:59:47 -0800
Message-Id: <199401211959.LAA27340@sun-lamp.cs.berkeley.edu>
Date: Fri, 21 Jan 1994 11:59:47 -0800
From: glass@sun-lamp.cs.berkeley.edu
Reply-To: glass@sun-lamp.cs.berkeley.edu
To: sun-lamp-gnats
Subject: termcap routines don't use getcap(3)
X-Send-Pr-Version: 3.01.6
>Number: 90
>Category: lib
>Synopsis: termcap access routines don't use getcap(3)
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: gnats-admin
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri Jan 21 12:20:03 +0000 1994
>Closed-Date: Mon Jan 24 23:40:27 +0000 1994
>Last-Modified: Fri Mar 21 19:04:26 +0000 2014
>Originator: Adam Glass
>Release: NetBSD current
>Organization:
Adam Glass |E-mail home: glass@sun-lamp.cs.berkeley.edu
|Physical : Seattle
"reality is for dead birds"
>Environment:
System: NetBSD sun-lamp.cs.berkeley.edu 0.9a SUN_LAMP_AHBBT_NODDB#15 i386
>Description:
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.
>How-To-Repeat:
look at lib/libterm/termcap.c
>Fix:
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.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: cgd
State-Changed-When: Mon Jan 24 15:40:27 PST 1994
State-Changed-Why:
because i fixed it.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.