Date: Tue, 15 May 2001 07:57:35 -0400 From: "Brian F. Feldman" <green@FreeBSD.org> To: Ruslan Ermilov <ru@FreeBSD.org> Cc: Alfred Perlstein <bright@wintelcom.net>, audit@FreeBSD.org, freebsd-standards@bostonradio.org Subject: Re: Please review: new implementation of hsearch(3) Message-ID: <200105151157.f4FBvaw71562@green.bikeshed.org> In-Reply-To: Message from Ruslan Ermilov <ru@FreeBSD.org> of "Tue, 15 May 2001 09:40:12 %2B0300." <20010515094012.A14389@sunbay.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Ruslan Ermilov <ru@FreeBSD.org> wrote: > On Mon, May 14, 2001 at 12:12:57PM -0700, Alfred Perlstein wrote: > > * Ruslan Ermilov <ru@FreeBSD.org> [010514 12:10] wrote: > > > Hi! > > > > > > Our current hsearch(3) implementation is buggy in many ways. > > > The most limiting factor is that it can only handle char * > > > item.data despite the type was recently changed to void *. > > > (See example in the manpage.) > > > > > > The attached patch merely merges NetBSD re-implementation of > > > the hsearch(3), which is POSIX.1-200x conformant. > > > > Nice, it'd be sorta cool if we offered expanded versions that > > allowed for more than one hash table at a time. > > > But these are POSIX compatible :-) I was thinking the same thing. Do something exactly like how strtok_r() and strtok() are done :) That doesn't add much overhead or effort at all. -- Brian Fundakowski Feldman \ FreeBSD: The Power to Serve! / green@FreeBSD.org `------------------------------' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105151157.f4FBvaw71562>