The renameat2() syscall (basically renameat() plus a flags argument) wasn't supported. I'm going to attach a patch that fixes this if I can figure out how to do that in this bugtracker - it doesn't seem to be possible on the initial page for filing bugs? Reproducible: Always
Created attachment 99255 [details] adds renameat2 support Ah, I can attach stuff after submitting the bug. Attached my patch.
Looks correct. It can probably also be added to the other coregrind/m_syswrap/syswrap-*-linux.c wrappers. Do you happen to have an example program that uses renameat2?
No, I don't have an example program - I'm just using it in a private project.
I see glibc also doesn't expose it yet. But the code looks fine. Committed as valgrind svn r15889. Thanks