projects
/
m6w6
/
ext-psi
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
flush
[m6w6/ext-psi]
/
psi.d
/
errno.psi
1
#include <errno.h>
2
3
#ifdef __GNUC__
4
# ifdef __linux__
5
function psi\errno() : int {
6
return __errno_location() as to_int(*__errno_location);
7
}
8
# endif /* linux */
9
# ifdef __FreeBSD__
10
function psi\errno() : int {
11
return __error() as to_int(*__error);
12
}
13
# endif /* __FreeBSD__ */
14
#endif /* __GNUC__ */