4 ms·
Isn't that only specified (for the same filesystem, as mentioned) for Linux? As far as I can tell the only thing POSIX specifies came from ISO C: https://pubs.
by mook 4y ago
Isn't that only specified (for the same filesystem, as mentioned) for Linux? As far as I can tell the only thing POSIX specifies came from ISO C:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/rename.html https://pubs.opengroup.org/onlinepubs/9699919799/functions/r...
ISO C 9899:2018 (actually the 2017 draft) says in 7.21.4.2.3 that on a failure return the file is available by its original name, but that's a much weaker guarantee as that doesn't say anything about failing to return (e.g. hard system crash)…