if returning errno value directly from a syscall, we need to negate it.
[musl] / src / unistd / lchown.c
1 #include <unistd.h>
2 #include "syscall.h"
3
4 int lchown(const char *path, uid_t uid, gid_t gid)
5 {
6         return syscall3(__NR_lchown, (long)path, uid, gid);
7 }