From owner-freebsd-current Wed Jun 13 8:22:59 2001 Delivered-To: freebsd-current@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 3FDE837B403 for ; Wed, 13 Jun 2001 08:22:41 -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 f5DFLvD22497; Wed, 13 Jun 2001 18:21:57 +0300 (EEST) (envelope-from ru) Date: Wed, 13 Jun 2001 18:21:57 +0300 From: Ruslan Ermilov To: Garrett Wollman Cc: Bruce Evans , current@FreeBSD.ORG Subject: Re: fts_open() (was: Re: Patch to restore WARNS feature) Message-ID: <20010613182157.A12432@sunbay.com> Mail-Followup-To: Garrett Wollman , Bruce Evans , current@FreeBSD.ORG References: <20010613153416.B21292@sunbay.com> <200106131516.LAA02178@khavrinen.lcs.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200106131516.LAA02178@khavrinen.lcs.mit.edu>; from wollman@khavrinen.lcs.mit.edu on Wed, Jun 13, 2001 at 11:16:57AM -0400 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Jun 13, 2001 at 11:16:57AM -0400, Garrett Wollman wrote: > < said: > > > 3. Provide an alternative to qsort() that takes an comparison function > > that takes an additional function pointer arg (use this arg to avoid > > the global in (1)). > > Actually, doing this would solve a number of similar problems, and it > doesn't look to be too difficult to do. I would make the additional > argument a `void *'; fts's comparison trampoline function could use > this as a `FTS *' to look up the comparison function. (I think this > is more general than passing any kind of function pointer.) > How should we call this function? (I'll implement this tomorrow.) -- 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-current" in the body of the message