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