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 Message-ID: <20030321043223.A7940@iclub.nsu.ru> In-Reply-To: <20030321033821.A91713@iclub.nsu.ru>; from fjoe@iclub.nsu.ru on Fri, Mar 21, 2003 at 03:38:21AM %2B0600 References: <20030321033821.A91713@iclub.nsu.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030321043223.A7940>