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