• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 static void
get_error(struct tcb * tcp,const bool check_errno)2 get_error(struct tcb *tcp, const bool check_errno)
3 {
4 	if (check_errno && is_negated_errno(m68k_regs.d0)) {
5 		tcp->u_rval = -1;
6 		tcp->u_error = -m68k_regs.d0;
7 	} else {
8 		tcp->u_rval = m68k_regs.d0;
9 	}
10 }
11