Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Mar 2003 21:22:06 +0600
From:      Max Khon <fjoe@iclub.nsu.ru>
To:        arch@freebsd.org
Subject:   [fjoe@iclub.nsu.ru: Re: thread-safe realpath]
Message-ID:  <20030324212205.A94544@iclub.nsu.ru>

next in thread | raw e-mail | index | archive | help
hi, there!

I am forwarding this e-mail to arch@ because standards@ has been
silent on this.

----- Forwarded message from Max Khon <fjoe@iclub.nsu.ru> -----

Date: Fri, 21 Mar 2003 04:32:23 +0600
From: Max Khon <fjoe@iclub.nsu.ru>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030324212205.A94544>