From owner-freebsd-arch Mon Mar 24 7:22:32 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 4BFD637B401 for ; Mon, 24 Mar 2003 07:22:27 -0800 (PST) Received: from mail.nsu.ru (mx.nsu.ru [193.124.215.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6AA343F3F for ; Mon, 24 Mar 2003 07:22:25 -0800 (PST) (envelope-from fjoe@iclub.nsu.ru) Received: from drweb by mail.nsu.ru with drweb-scanned (Exim 3.20 #1) id 18xTmH-0006BX-00 for arch@freebsd.org; Mon, 24 Mar 2003 21:22:21 +0600 Received: from iclub.nsu.ru ([193.124.215.97] ident=root) by mail.nsu.ru with esmtp (Exim 3.20 #1) id 18xTmG-0006BH-00 for arch@freebsd.org; Mon, 24 Mar 2003 21:22:20 +0600 Received: from iclub.nsu.ru (fjoe@localhost [127.0.0.1]) by iclub.nsu.ru (8.12.8/8.12.8) with ESMTP id h2OFM8j1094599 for ; Mon, 24 Mar 2003 21:22:08 +0600 (NS) (envelope-from fjoe@iclub.nsu.ru) Received: (from fjoe@localhost) by iclub.nsu.ru (8.12.8/8.12.8/Submit) id h2OFM7MZ094596 for arch@freebsd.org; Mon, 24 Mar 2003 21:22:07 +0600 (NS) Date: Mon, 24 Mar 2003 21:22:06 +0600 From: Max Khon To: arch@freebsd.org Subject: [fjoe@iclub.nsu.ru: Re: thread-safe realpath] Message-ID: <20030324212205.A94544@iclub.nsu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Envelope-To: arch@freebsd.org X-Spam-Status: No, hits=-16.1 required=5.0 tests=EMAIL_ATTRIBUTION,QUOTED_EMAIL_TEXT,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 hi, there! I am forwarding this e-mail to arch@ because standards@ has been silent on this. ----- Forwarded message from Max Khon ----- Date: Fri, 21 Mar 2003 04:32:23 +0600 From: Max Khon To: standards@freebsd.org Subject: Re: thread-safe realpath hi, there! 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. > 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