From owner-FreeBSD-tech-jp@jp.freebsd.org  Tue Jun 19 14:12:23 2001
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id OAA16733;
	Tue, 19 Jun 2001 14:12:23 +0900 (JST)
	(envelope-from owner-FreeBSD-tech-jp@jp.FreeBSD.org)
Received: from shiva.tri.asanuma.co.jp (shiva.tri.asanuma.co.jp [210.160.188.2])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id OAA16725
	for <FreeBSD-tech-jp@jp.freebsd.org>; Tue, 19 Jun 2001 14:12:21 +0900 (JST)
	(envelope-from mori@tri.asanuma.co.jp)
Received: from yashoda.tri.asanuma.co.jp (yashoda.tri.asanuma.co.jp [172.16.57.11])
	by shiva.tri.asanuma.co.jp (Postfix) with ESMTP id 746AD542B
	for <FreeBSD-tech-jp@jp.freebsd.org>; Tue, 19 Jun 2001 14:12:19 +0900 (JST)
Received: from kurishna.tri.asanuma.co.jp (kurishna.tri.asanuma.co.jp [172.16.57.2])
	by yashoda.tri.asanuma.co.jp (8.11.0/8.11.0) with ESMTP id f5J5CHx16456
	for <FreeBSD-tech-jp@jp.freebsd.org>; Tue, 19 Jun 2001 14:12:18 +0900 (JST)
To: FreeBSD-tech-jp@jp.freebsd.org
References: <80zob5b3gp.fsf@kurishna.tri.asanuma.co.jp>
	<20010619044049.D55C946EE0@edison.ee.t.u-tokyo.ac.jp>
Siganture-File: ~/.signature
MIME-Version: 1.0 (generated by REMI 1.14.2 - =?ISO-8859-4?Q?=22Hokuhoku-=D2?=
 =?ISO-8859-4?Q?shima=22?=)
Content-Type: text/plain; charset=ISO-2022-JP
From: Mori Kouji <mori@tri.asanuma.co.jp>
Date: 19 Jun 2001 14:12:17 +0900
In-Reply-To: <20010619044049.D55C946EE0@edison.ee.t.u-tokyo.ac.jp> (MITA Yoshio's message of "Tue, 19 Jun 2001 13:41:18 +0900")
Message-ID: <80u21daw9a.fsf@kurishna.tri.asanuma.co.jp>
Lines: 42
User-Agent: Nana-gnus/7.1.0.23 REMI/1.14.2 (=?ISO-8859-4?Q?Hokuhoku-=D2shi?=
 =?ISO-8859-4?Q?ma?=) Chao/1.14.1 (=?ISO-8859-4?Q?Rokujiz=F2?=) APEL/10.3
 Emacs/21.0.103 (i386--freebsd) MULE/5.0 (SAKAKI)
Reply-To: FreeBSD-tech-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+010328
X-Sequence: FreeBSD-tech-jp 3118
Subject: [FreeBSD-tech-jp 3118] Re: [FreeBSD-users-jp 62385] Re: lpc kterm
Errors-To: owner-FreeBSD-tech-jp@jp.freebsd.org
Sender: owner-FreeBSD-tech-jp@jp.freebsd.org
X-Originator: mori@kurishna.tri.asanuma.co.jp

$B?9$G$9!#(B

MITA Yoshio <mita@ee.t.u-tokyo.ac.jp> writes:

> >$B$`!"$h$/8+$?$i(B http://www.freebsd.org/cgi/query-pr.cgi?pr=25244 $B$G(B
> >$B4{=P$NOCBj$N$h$&$G$9$M!#(Bopen $B$K$J$C$F$k$1$I$I$&$9$k$N$,$$$$$s$@$m$&(B?
> >  1. pr $B$K%U%)%m!<$9$k!#(B
> 
> $B$O$$$+$,(B?

$BK\2H$N%"!<%+%$%V$r5y$C$?$i$3$s$J$N$b=P$F$-$^$7$?!#LdBj$OG'<1$5$l$F$$$k(B
$B$h$&$G!"2r7h0F$b=P$F$$$k$h$&$G$9$M!#(B

API $B$NJQ99$K4X$o$k$N$G=$@5$5$l$F$$$J$$$N$G$O$J$$$+$H;W$&$s$G!"(B

  1. $B=$@5$5$l$k$N$O;~4V$NLdBj$H3Z4QE*$KBT$C$F$_$k!#(B
  2. $B%a!<%j%s%0%j%9%H$G5DO@$r$U$C$+$1$F$_$k!#(B

$B$+$J$"!#%A%-%s$J$N$G(B 1 $B$K$7$H$-$^$9!#(B(^^;

  http://www.freebsd.org/cgi/getmsg.cgi?fetch=864743+868118+/usr/local/www/db/text/2001/freebsd-bugs/20010318.freebsd-bugs

  Date: Sat, 17 Mar 2001 17:38:40 -0800 (PST)
  From: Bill Fenner <fenner@research.att.com>
  Subject: bin/25886: cgetset(3) doesn't get cleared when switching databases

  (snip)

  Workaround: call cgetset(NULL) right before the first cgetfirst()
  in any getcap(3) consumer (e.g. usr.sbin/lpr/common_source/printcap.c),
  particularly those that link with -ltermcap (but who knows what other
  library function might use cgetset(), so better safe than sorry).

  Fix: Change the getcap(3) API?  Make cgetfirst() notice that it's being
  called with a different db_array without a cgetset() call in between
  and call cgetset(NULL)?  (eeew)  Make cgetclose() call cgetset(NULL)
  if gottoprec == 1?  (subtle API change but less eeew)

-- 
$B?9(B $B9@Fs(B	(MORI Kouji)
($B3t(B)$B^I>BAH(B $B5;=Q8&5f=j(B
E-mail: mori@tri.asanuma.co.jp
