Nick Burrett nick at
Fri Aug 13 01:43:43 PDT 2004

Stefan Bellon said:
> Hi!
> On RISC OS, rename(a, b) fails if b already exists. On GNU/Linux,
> rename(a, b) just overwrites b if it already exists.
> Is there any way to make rename() on RISC OS behave the same. And
> moreover, is it possible to make it an atomar operation, i.e. not just
> doing unlink(b); rename(a, b)?
> It's all about race conditions of concurrent processes.

Both of these are possible.  I would be interested to know how the SCL's
rename function performs here.  Does it fail or does it overwrite 'b' ?


More information about the gcc mailing list