13 lines
229 B
C
13 lines
229 B
C
#include "negated_errno.h"
|
|
|
|
static void
|
|
get_error(struct tcb *tcp, const bool check_errno)
|
|
{
|
|
if (check_errno && is_negated_errno(sh64_r9)) {
|
|
tcp->u_rval = -1;
|
|
tcp->u_error = -sh64_r9;
|
|
} else {
|
|
tcp->u_rval = sh64_r9;
|
|
}
|
|
}
|