Sign in
android
/
platform
/
external
/
strace
/
refs/tags/android-7.1.0_r2
/
.
/
linux
/
crisv10
/
get_error.c
blob: b9da923f8b7a80dc4e605283db0486bc37b68edd [
file
] [
log
] [
blame
]
static
void
get_error
(
struct
tcb
*
tcp
,
const
bool
check_errno
)
{
if
(
check_errno
&&
is_negated_errno
(
cris_r10
))
{
tcp
->
u_rval
=
-
1
;
tcp
->
u_error
=
-
cris_r10
;
}
else
{
tcp
->
u_rval
=
cris_r10
;
}
}