Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Jul 2000 03:43:55 -0700
From:      Alfred Perlstein <bright@wintelcom.net>
To:        Jeroen Ruigrok/Asmodai <asmodai@wxs.nl>
Cc:        arch@FreeBSD.ORG
Subject:   Re: Importing tsearch routines.
Message-ID:  <20000701034355.F25571@fw.wintelcom.net>
In-Reply-To: <20000701111344.S307@daemon.ninth-circle.org>; from asmodai@wxs.nl on Sat, Jul 01, 2000 at 11:13:44AM %2B0200
References:  <20000630153151.J275@fw.wintelcom.net> <20000701111344.S307@daemon.ninth-circle.org>

next in thread | previous in thread | raw e-mail | index | archive | help
* Jeroen Ruigrok/Asmodai <asmodai@wxs.nl> [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&sect=&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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000701034355.F25571>