1 #include "negated_errno.h"
2 
3 static void
get_error(struct tcb * tcp,const bool check_errno)4 get_error(struct tcb *tcp, const bool check_errno)
5 {
6 	if (check_errno && is_negated_errno(microblaze_r3)) {
7 		tcp->u_rval = -1;
8 		tcp->u_error = -microblaze_r3;
9 	} else {
10 		tcp->u_rval = microblaze_r3;
11 	}
12 }
13