ClickHouse/base/glibc-compatibility/musl/syscall_ret.c
2020-02-14 17:48:30 +03:00

12 lines
142 B
C

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