Re: *at syscalls for xattrs?

H. Peter Anvin
2007-07-16T20:44:19Z

Jeff Garzik wrote:
>>
>> Well, as Jeremy pointed out, in the absence of threads you can do the
>> same thing with fchdir(), however, that's much more of a hack.
>
> My posixutils project (coreutils replacement) used fchdir(2), but that
> still doesn't get you 100% race-free. It gets you close, yes.
>

I guess you're horked in the case where a single system call (e.g.
rename()) needs more than one pathname. Yet another reason why a single
cwd isn't enough.

-hpa