roken/rename.c is for platforms where the native rename() implementation does not replace the target if it already exists. This implementation isn't atomic, but should be close enough for most purposes. For correct behavior, rk_rename() should be used instead of rename(). rk_rename() is #defined to be rename() on platforms where this fix is not necessary.
24 KiB
24 KiB