From owner-freebsd-audit Mon May 14 12:13: 4 2001 Delivered-To: freebsd-audit@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 5405537B423; Mon, 14 May 2001 12:13:01 -0700 (PDT) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id f4EJCvG01821; Mon, 14 May 2001 12:12:57 -0700 (PDT) Date: Mon, 14 May 2001 12:12:57 -0700 From: Alfred Perlstein To: Ruslan Ermilov Cc: audit@FreeBSD.org, freebsd-standards@bostonradio.org Subject: Re: Please review: new implementation of hsearch(3) Message-ID: <20010514121257.Q18676@fw.wintelcom.net> References: <20010511143904.A58159@sunbay.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010511143904.A58159@sunbay.com>; from ru@FreeBSD.org on Fri, May 11, 2001 at 02:39:05PM +0300 X-all-your-base: are belong to us. Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * 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. -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message