5 ms·
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 t
by mjw1007 9y ago
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 https://sourceware.org/ml/libc-alpha/2015-11/msg00459.html
- jwilk 9y agoFrom 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 http://man7.org/linux/man-pages/man2/renameat2.2.html