From owner-freebsd-arch Mon Mar 24 7:46:28 2003 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 89F4E37B401 for ; Mon, 24 Mar 2003 07:46:25 -0800 (PST) Received: from numeri.campus.luth.se (numeri.campus.luth.se [130.240.197.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7774F43F3F for ; Mon, 24 Mar 2003 07:46:24 -0800 (PST) (envelope-from k@numeri.campus.luth.se) Received: from numeri.campus.luth.se (localhost [127.0.0.1]) by numeri.campus.luth.se (8.12.8/8.12.7) with ESMTP id h2OFkMho052694; Mon, 24 Mar 2003 16:46:22 +0100 (CET) (envelope-from k@numeri.campus.luth.se) Received: (from k@localhost) by numeri.campus.luth.se (8.12.8/8.12.7/Submit) id h2OFkMkN052669; Mon, 24 Mar 2003 16:46:22 +0100 (CET) Date: Mon, 24 Mar 2003 16:46:21 +0100 From: Johan Karlsson To: Max Khon Cc: arch@freebsd.org, Sheldon Hearn Subject: Re: [fjoe@iclub.nsu.ru: Re: thread-safe realpath] Message-ID: <20030324154621.GA82437@numeri.campus.luth.se> References: <20030324212205.A94544@iclub.nsu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030324212205.A94544@iclub.nsu.ru> User-Agent: Mutt/1.4i X-Spam-Status: No, hits=-33.1 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, QUOTE_TWICE_1,REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_MUTT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Mar 24, 2003 at 21:22 (+0600) +0000, Max Khon wrote: > On Fri, Mar 21, 2003 at 03:38:21AM +0600, Max Khon wrote: > > > Constantin Svintsoff has submitted thread-safe realpath() implementation > > (implementation that does not use chdir(2)). > > The implementation is feature-compatible with FreeBSD implementation, i.e. > > if the last component of specified path can't be stat'ed and there is no > > trailing slash, realpath succeeds. > > > > I fixed a couple of bugs in it and would like to commit it to HEAD > > if there will be no objections. > > > > Test program is attached. The test simply creates two threads and calls > > realpath() in each. If the test is compiled with truepath() #if-0'ed > > one of the assertions fail after some time (you may need to increase > > number of iterations if you have very fast machine, mine is Athlon 850). > > > > Any comments are highly appreciated. How does this affect PR 12244? I've sent a patch to -audit for review a month ago and I'm about to commit that (just doing a final make universe). http://docs.freebsd.org/cgi/getmsg.cgi?fetch=0+0+archive/2003/freebsd-audit/20030209.freebsd-audit /Johan K > > Please reply directly (I am not subscribed). > > I have also included realpath test from glibc 2.2.2. > Tarball can be found here: > > http://people.freebsd.org/~fjoe/realpath.tar.gz > > /fjoe > > ----- End forwarded message ----- > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-arch" in the body of the message > -- Johan Karlsson mailto:k@numeri.campus.luth.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message