From owner-freebsd-current Wed Jun 13 9:31:23 2001 Delivered-To: freebsd-current@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id 1798537B408 for ; Wed, 13 Jun 2001 09:31:17 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.3/8.9.3) id MAA02852; Wed, 13 Jun 2001 12:31:13 -0400 (EDT) (envelope-from wollman) Date: Wed, 13 Jun 2001 12:31:13 -0400 (EDT) From: Garrett Wollman Message-Id: <200106131631.MAA02852@khavrinen.lcs.mit.edu> To: Alfred Perlstein Cc: current@FreeBSD.ORG Subject: Re: fts_open() (was: Re: Patch to restore WARNS feature) In-Reply-To: <20010613115530.Y1832@superconductor.rush.net> References: <20010613153416.B21292@sunbay.com> <200106131516.LAA02178@khavrinen.lcs.mit.edu> <20010613182157.A12432@sunbay.com> <200106131551.LAA02550@khavrinen.lcs.mit.edu> <20010613115530.Y1832@superconductor.rush.net> 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 < said: > Why not do something like the rpc code does? Check if threaded, if > so cons up a thread specific key otherwise use a global. The Standard does not appear to say whether qsort() is reentrant, but I believe that it ought to be. fts() was clearly intended to be reentrant. (I don't know what good it would do, but let's not make things worse than they already are, hey?) -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message