From fanf@demon.net Wed Nov 17 12:00:42 1999
Return-Path: <fanf@demon.net>
Received: from internal.mail.demon.net (internal.mail.demon.net [193.195.224.3])
	by hub.freebsd.org (Postfix) with ESMTP id 54F1514A0B
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 17 Nov 1999 12:00:20 -0800 (PST)
	(envelope-from fanf@demon.net)
Received: from fanf.eng.demon.net (fanf.eng.demon.net [195.11.55.89])
	by internal.mail.demon.net with ESMTP id TAA08097;
	Wed, 17 Nov 1999 20:00:00 GMT
Received: from fanf by fanf.eng.demon.net with local (Exim 3.03 #2)
	id 11oBEn-000BUn-00
	for FreeBSD-gnats-submit@freebsd.org; Wed, 17 Nov 1999 19:59:29 +0000
Message-Id: <E11oBEn-000BUn-00@fanf.eng.demon.net>
Date: Wed, 17 Nov 1999 19:59:29 +0000
From: Tony Finch <dot@dotat.at>
Sender: Tony Finch <fanf@demon.net>
Reply-To: Tony Finch <dot@dotat.at>
To: FreeBSD-gnats-submit@freebsd.org
Subject: search.h is missing
X-Send-Pr-Version: 3.2

>Number:         14954
>Category:       bin
>Synopsis:       search.h is missing
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 17 12:10:00 PST 1999
>Closed-Date:    Mon Oct 9 10:06:17 PDT 2000
>Last-Modified:  Mon Oct 09 10:06:56 PDT 2000
>Originator:     Tony Finch
>Release:        FreeBSD 3.3-STABLE-19991115 i386
>Organization:
Demon Internet Ltd
>Environment:

any version of FreeBSD

>Description:

FreeBSD is missing the <search.h> header from SVID, but it is present
in NetBSD and OpenBSD. They also have implementations of the tsearch
etc. routines originally obtained from public domain sources by ESR.
There is an hsearch compatible interface to Berkeley DB which is
already in FreeBSD's libc.

Since these functions are in GNU libc I expect that in the near future
there will be more software out there that uses them.

>How-To-Repeat:



>Fix:
	



>Release-Note:
>Audit-Trail:

From: Sheldon Hearn <sheldonh@uunet.co.za>
To: Tony Finch <dot@dotat.at>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/14954: search.h is missing 
Date: Thu, 18 Nov 1999 12:52:06 +0200

 On Wed, 17 Nov 1999 19:59:29 GMT, Tony Finch wrote:
 
 > FreeBSD is missing the <search.h> header from SVID, but it is present
 > in NetBSD and OpenBSD. They also have implementations of the tsearch
 > etc. routines originally obtained from public domain sources by ESR.
 > There is an hsearch compatible interface to Berkeley DB which is
 > already in FreeBSD's libc.
 
 So is it a simple case of importing the header file, or are there
 interfaces missing in the API?
 
 Ciao,
 Sheldon.
 

From: Tony Finch <dot@dotat.at>
To: Sheldon Hearn <sheldonh@uunet.co.za>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/14954: search.h is missing 
Date: Thu, 18 Nov 1999 11:26:19 +0000

 Sheldon Hearn <sheldonh@uunet.co.za> wrote:
 > On Wed, 17 Nov 1999 19:59:29 GMT, Tony Finch wrote:
 > 
 > > FreeBSD is missing the <search.h> header from SVID, but it is present
 > > in NetBSD and OpenBSD. They also have implementations of the tsearch
 > > etc. routines originally obtained from public domain sources by ESR.
 > > There is an hsearch compatible interface to Berkeley DB which is
 > > already in FreeBSD's libc.
 > 
 > So is it a simple case of importing the header file, or are there
 > interfaces missing in the API?
 
 You also need the tsearch.[c3] and tfind.c files from
 src/lib/libc/stdlib in {Net,Open}BSD.
 
 There might be a better alternative to using Berkeley DB for the
 hsearch functions, but I couldn't find any other suitable existing
 code out there.
 
 Tony.
 -- 
 I'm the dot in dot at
 

From: Tony Finch <dot@dotat.at>
To: freebsd-gnats-submit@freebsd.org
Cc: Tony Finch <dot@dotat.at>
Subject: Re: bin/14954: search.h is missing
Date: Mon, 09 Oct 2000 14:04:09 +0000

 The API is now available in -CURRENT so this PR can be closed.
 
 Tony.
 -- 
 en oeccget g mtcaa    f.a.n.finch
 v spdlkishrhtewe y    dot@dotat.at
 eatp o v eiti i d.    fanf@covalent.net
 
State-Changed-From-To: open->closed 
State-Changed-By: dwmalone 
State-Changed-When: Mon Oct 9 10:06:17 PDT 2000 
State-Changed-Why:  
Closed at submitter's request. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=14954 
>Unformatted:
