FYI,
In C, the msync syscall definition is:
int msync (void *, size_t, int);
http://git.musl-libc.org/cgit/musl/tree/include/sys/mman.h
The source code for that function can be found in:
http://git.musl-libc.org/cgit/musl/tree/src/mman/msync.c
... which contains this code:
#include <sys/mman.h>
#include "syscall.h"
int msync(void *start, size_t len, int flags)
{
return syscall_cp(SYS_msync, start, len, flags);
}
.. so I need to use:
func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno)
2nd question
The return value
err syscall.Errno