source:
asp3_tinet_ecnl_arm/trunk/musl-1.1.18/src/internal/syscall_ret.c@
352
Last change on this file since 352 was 352, checked in by , 6 years ago | |
---|---|
|
|
File size: 142 bytes |
Rev | Line | |
---|---|---|
[352] | 1 | #include <errno.h> |
2 | #include "syscall.h" | |
3 | ||
4 | long __syscall_ret(unsigned long r) | |
5 | { | |
6 | if (r > -4096UL) { | |
7 | errno = -r; | |
8 | return -1; | |
9 | } | |
10 | return r; | |
11 | } |
Note:
See TracBrowser
for help on using the repository browser.