Sign in
android
/
platform
/
external
/
strace
/
refs/tags/android-cts-9.0_r3
/
.
/
linux
/
avr32
/
get_error.c
blob: b53c8f6c61962f682b2b97eb1a10d1c552439138 [
file
] [
log
] [
blame
]
#include
"negated_errno.h"
static
void
get_error
(
struct
tcb
*
tcp
,
const
bool
check_errno
)
{
if
(
check_errno
&&
is_negated_errno
(
avr32_regs
.
r12
))
{
tcp
->
u_rval
=
-
1
;
tcp
->
u_error
=
-
avr32_regs
.
r12
;
}
else
{
tcp
->
u_rval
=
avr32_regs
.
r12
;
}
}