Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jun 2001 23:28:29 +1000 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Ruslan Ermilov <ru@FreeBSD.org>
Cc:        Garrett Wollman <wollman@khavrinen.lcs.mit.edu>, current@FreeBSD.org
Subject:   Re: fts_open() (was: Re: Patch to restore WARNS feature)
Message-ID:  <Pine.BSF.4.21.0106132318410.67996-100000@besplex.bde.org>
In-Reply-To: <20010613153416.B21292@sunbay.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 13 Jun 2001, Ruslan Ermilov wrote:

> Should I commit the attached patch then?

I don't like changing the documented interface of fts_open() but all the
alternatives that I can think of aren't appealing:
1. Provide a glue function that converts what qsort expects to the
   documented interface.  This seems to require saving sp->fts_compare
   in a global variable so that it can be accessed in the glue function.
2. Provide an alternative to qsort() that takes an fts-compatible
   comparison function.
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)).

Bruce


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0106132318410.67996-100000>