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