From owner-freebsd-audit Mon May 14 23:40:36 2001 Delivered-To: freebsd-audit@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 6D7E437B423 for ; Mon, 14 May 2001 23:40:32 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f4F6eCq14423; Tue, 15 May 2001 09:40:12 +0300 (EEST) (envelope-from ru) Date: Tue, 15 May 2001 09:40:12 +0300 From: Ruslan Ermilov To: Alfred Perlstein Cc: audit@FreeBSD.org, freebsd-standards@bostonradio.org Subject: Re: Please review: new implementation of hsearch(3) Message-ID: <20010515094012.A14389@sunbay.com> References: <20010511143904.A58159@sunbay.com> <20010514121257.Q18676@fw.wintelcom.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010514121257.Q18676@fw.wintelcom.net>; from bright@wintelcom.net on Mon, May 14, 2001 at 12:12:57PM -0700 Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, May 14, 2001 at 12:12:57PM -0700, Alfred Perlstein wrote: > * Ruslan Ermilov [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 :-) -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message