Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jun 2001 11:55:30 -0400
From:      Alfred Perlstein <bright@rush.net>
To:        Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
Cc:        Ruslan Ermilov <ru@FreeBSD.ORG>, current@FreeBSD.ORG
Subject:   Re: fts_open() (was: Re: Patch to restore WARNS feature)
Message-ID:  <20010613115530.Y1832@superconductor.rush.net>
In-Reply-To: <200106131551.LAA02550@khavrinen.lcs.mit.edu>; from wollman@khavrinen.lcs.mit.edu on Wed, Jun 13, 2001 at 11:51:07AM -0400
References:  <20010613153416.B21292@sunbay.com> <Pine.BSF.4.21.0106132318410.67996-100000@besplex.bde.org> <200106131516.LAA02178@khavrinen.lcs.mit.edu> <20010613182157.A12432@sunbay.com> <200106131551.LAA02550@khavrinen.lcs.mit.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
* Garrett Wollman <wollman@khavrinen.lcs.mit.edu> [010613 11:51] wrote:
> <<On Wed, 13 Jun 2001 18:21:57 +0300, Ruslan Ermilov <ru@FreeBSD.ORG> said:
> 
> > How should we call this function?
> > (I'll implement this tomorrow.)
> 
> I was would call it `qsort_with_arg' or something similar.  There is a
> namespace issue here; <stdlib.h> reserves very little namespace for
> the implementation, so anything we add will have to be hidden from
> strictly-compliant applications.  If we don't want to make it a public
> interface, __qsort would be best (and is probably the choice of least
> resistance).

Why not do something like the rpc code does?  Check if threaded, if
so cons up a thread specific key otherwise use a global.

-- 
-Alfred Perlstein [alfred@freebsd.org]
Instead of asking why a piece of software is using "1970s technology,"
start asking why software is ignoring 30 years of accumulated wisdom.

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?20010613115530.Y1832>