mirror of
https://github.com/fluencelabs/musl
synced 2025-06-30 07:02:41 +00:00
12 lines
171 B
C
12 lines
171 B
C
![]() |
#include <errno.h>
|
||
|
#include <unistd.h>
|
||
|
|
||
|
long __syscall_ret(unsigned long r)
|
||
|
{
|
||
|
if (r >= (unsigned long)-1 - 4096) {
|
||
|
errno = -(long)r;
|
||
|
return -1;
|
||
|
}
|
||
|
return (long)r;
|
||
|
}
|