msync is a cancel-point so it must have a __libc_* alias
#include "syscalls.h" syscall_weak(msync,msync,__libc_msync)