if returning errno value directly from a syscall, we need to negate it.
[musl] / src / thread / sem_post.c
2011-03-04 Rich Felkerimplement POSIX semaphores