From owner-freebsd-standards Thu Mar 20 14:32:55 2003 Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BEA8737B404 for ; Thu, 20 Mar 2003 14:32:53 -0800 (PST) Received: from mail.nsu.ru (mx.nsu.ru [193.124.215.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6586543FA3 for ; Thu, 20 Mar 2003 14:32:51 -0800 (PST) (envelope-from fjoe@iclub.nsu.ru) Received: from drweb by mail.nsu.ru with drweb-scanned (Exim 3.20 #1) id 18w8ab-0006lW-00 for standards@freebsd.org; Fri, 21 Mar 2003 04:32:45 +0600 Received: from iclub.nsu.ru ([193.124.215.97] ident=root) by mail.nsu.ru with esmtp (Exim 3.20 #1) id 18w8aX-0006jS-00 for standards@freebsd.org; Fri, 21 Mar 2003 04:32:41 +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 h2KMWPJW008402 for ; Fri, 21 Mar 2003 04:32:25 +0600 (NS) (envelope-from fjoe@iclub.nsu.ru) Received: (from fjoe@localhost) by iclub.nsu.ru (8.12.8/8.12.8/Submit) id h2KMWOgM008399 for standards@freebsd.org; Fri, 21 Mar 2003 04:32:24 +0600 (NS) (envelope-from fjoe) Date: Fri, 21 Mar 2003 04:32:23 +0600 From: Max Khon To: standards@freebsd.org Subject: Re: thread-safe realpath Message-ID: <20030321043223.A7940@iclub.nsu.ru> References: <20030321033821.A91713@iclub.nsu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20030321033821.A91713@iclub.nsu.ru>; from fjoe@iclub.nsu.ru on Fri, Mar 21, 2003 at 03:38:21AM +0600 X-Spam-Status: No, hits=-3.0 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01, USER_AGENT,USER_AGENT_MUTT version=2.43 X-Envelope-To: standards@freebsd.org Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message