Files
musl/src/internal/syscall_ret.c

11 lines
121 B
C
Raw Normal View History

#include <errno.h>
long __syscall_ret(unsigned long r)
{
if (r > -4096UL) {
errno = -r;
return -1;
}
return r;
}