From owner-freebsd-arch Sat Jul 1 3:44: 0 2000 Delivered-To: freebsd-arch@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 04D5F37BA00 for ; Sat, 1 Jul 2000 03:43:58 -0700 (PDT) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id e61Ahtp12735; Sat, 1 Jul 2000 03:43:55 -0700 (PDT) Date: Sat, 1 Jul 2000 03:43:55 -0700 From: Alfred Perlstein To: Jeroen Ruigrok/Asmodai Cc: arch@FreeBSD.ORG Subject: Re: Importing tsearch routines. Message-ID: <20000701034355.F25571@fw.wintelcom.net> References: <20000630153151.J275@fw.wintelcom.net> <20000701111344.S307@daemon.ninth-circle.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20000701111344.S307@daemon.ninth-circle.org>; from asmodai@wxs.nl on Sat, Jul 01, 2000 at 11:13:44AM +0200 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Jeroen Ruigrok/Asmodai [000701 02:14] wrote: > -On [20000701 04:01], Alfred Perlstein (bright@wintelcom.net) wrote: > >I would like to import Open/NetBSD's tsearch routines into libc: > > > >http://www.flame.org/cgi-bin/uncgi/hman?page=tsearch§=&arch=i386 > > > >tsearch seems to be in most every other libc out there and is quite > >handy. > > > >I have it ready for inclusion, and would like to backport to 4.0 > >asap, any objections? > > No. > > SUSv2 search.h: > > int hcreate(size_t); > void hdestroy(void); > ENTRY *hsearch(ENTRY, ACTION); > void insque(void *, void *); > void *lfind(const void *, const void *, size_t *, size_t, int (*)(const void *, const void *)); > void *lsearch(const void *, void *, size_t *, size_t, int (*)(const void *, const void *)); > void remque(void *); > void *tdelete(const void *, void **, int(*)(const void *, const void *)); > void *tfind(const void *, void *const *, int(*)(const void *, const void *)); > void *tsearch(const void *, void **, int(*)(const void *, const void *)); > void twalk(const void *, void (*)(const void *, VISIT, int )); > > Any chance of implementing the rest as well? =) ack! they are, in libcompat! (except the t* stuff) Does this mean they ought to be put back into libc? removed from libcompat as well? It's somewhat confusing, Solaris seems to have all this stuff available in the mainline libc, should we as well? -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message