Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
strace
/
b0c51131a38355dfaaed5b13b887f333cb20dfa7
/
.
/
linux
/
sh64
/
get_error.c
blob: 7858df7c2697fd197d1ed741509c22908cb8737b [
file
] [
log
] [
blame
]
static
void
get_error
(
struct
tcb
*
tcp
,
const
bool
check_errno
)
{
if
(
check_errno
&&
is_negated_errno
(
sh64_r9
))
{
tcp
->
u_rval
=
-
1
;
tcp
->
u_error
=
-
sh64_r9
;
}
else
{
tcp
->
u_rval
=
sh64_r9
;
}
}