Jim Meyering <[EMAIL PROTECTED]> writes: > If anyone else has access to a Solaris 10 system (x86 or otherwise), > with Sun C, would you please try the latest snapshot?
I can't reproduce the problem now, so I'm not sure what went wrong. Sorry. Well, at any rate the patch has been reverted. >> On Solaris 10, getcwd is a system call, and I suspect it's much better >> in common practice to try the syscall than to jump immediately to our >> own code, even if getcwd (NULL, 0) does not work as it does with >> glibc. > > I ran a couple quick tests, and they suggest that there's nothing > special about Solaris 10's getcwd implementation (i.e., it's not > like the linux/glibc one). Among other things I was hoping that, since it's a system call, it's atomic and it's faster. I don't have time to test this right now, though, alas.