From owner-freebsd-current Wed Jun 13 18:16:55 2001 Delivered-To: freebsd-current@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 89E4137B401 for ; Wed, 13 Jun 2001 18:16:51 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id LAA16085; Thu, 14 Jun 2001 11:16:47 +1000 Date: Thu, 14 Jun 2001 11:14:33 +1000 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: Garrett Wollman Cc: current@FreeBSD.org Subject: Re: fts_open() (was: Re: Patch to restore WARNS feature) In-Reply-To: <200106131516.LAA02178@khavrinen.lcs.mit.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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, 13 Jun 2001, 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.) Good idea. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message