if returning errno value directly from a syscall, we need to negate it.
[musl] / src / process / execve.c
1 #include <unistd.h>
2 #include "syscall.h"
3
4 int execve(const char *path, char *const argv[], char *const envp[])
5 {
6         /* do we need to use environ if envp is null? */
7         return syscall3(__NR_execve, (long)path, (long)argv, (long)envp);
8 }