repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
netinet/if_ether.h: add ETH_P_DSA_8021Q from linux v5.2
[musl.git]
/
src
/
internal
/
syscall_ret.c
blob
a3f471368fc36ec6ebadbfe37f81ace83aaa4c7b
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
}