https://codemia.io/knowledge-hub/path/compare-and-swap_over_posix-compliant_filesystem_objects
Compare-and-Swap over POSIX-compliant filesystem objects | Codemia
There is no standard POSIX system call that gives you a true memory-style compare-and-swap operation over arbitrary filesystem objects. What POSIX does give...
compare and swapposixcompliantfilesystemobjects