News for hackers. Stuff that matters.
Re:File consistency (2015) by mjw1007 on Friday March 30, 2018 @04:17AM (#16714578)
In linux, renameat2() with RENAME_EXCHANGE on directories ought to be a very helpful primitive.

Does anyone know what the state of glibc support is? The last thing I saw was this thread: https://sourceware.org/ml/libc-alpha/2015-11/msg00459.html

Re:File consistency (2015) by jwilk on Friday March 30, 2018 @06:12AM (#16714971)
From renameat2 manpage:

    Glibc does not provide a wrapper for the renameat2() system call; call it using syscall(2).
http://man7.org/linux/man-pages/man2/renameat2.2.html