in reply to Unix rename behaviour

The original contents. The original file is held open, nameless, and does not disappear until closed by the last process which held it open. That's why race conditions on file writing are so critical to avoid. A process has no way to know when thay occur without some form of file locking.

Once a process has an open file descriptor, it no longer cares about the name on disk.

After Compline,
Zaxo