move msghdr and cmsghdr out of bits/socket.h
[musl.git] / src / internal / syscall_ret.c
bloba3f471368fc36ec6ebadbfe37f81ace83aaa4c7b
1 #include <errno.h>
2 #include "syscall.h"
4 long __syscall_ret(unsigned long r)
6 if (r > -4096UL) {
7 errno = -r;
8 return -1;
10 return r;