Sign in
android
/
platform
/
external
/
strace
/
f174ca62c552149d51472717a480e2a571885b9a
/
.
/
linux
/
hppa
/
get_error.c
blob: 8b23f3056c97854db4643a48a347c45c85ca4abb [
file
] [
log
] [
blame
]
#include
"negated_errno.h"
static
void
get_error
(
struct
tcb
*
tcp
,
const
bool
check_errno
)
{
if
(
check_errno
&&
is_negated_errno
(
hppa_r28
))
{
tcp
->
u_rval
=
-
1
;
tcp
->
u_error
=
-
hppa_r28
;
}
else
{
tcp
->
u_rval
=
hppa_r28
;
}
}