1 static int arch_set_error(struct tcb * tcp)2arch_set_error(struct tcb *tcp) 3 { 4 i386_regs.eax = -tcp->u_error; 5 #ifdef HAVE_GETREGS_OLD 6 return upoke(tcp, 4 * EAX, i386_regs.eax); 7 #else 8 return set_regs(tcp->pid); 9 #endif 10 } 11 12 static int arch_set_success(struct tcb * tcp)13arch_set_success(struct tcb *tcp) 14 { 15 i386_regs.eax = tcp->u_rval; 16 #ifdef HAVE_GETREGS_OLD 17 return upoke(tcp, 4 * EAX, i386_regs.eax); 18 #else 19 return set_regs(tcp->pid); 20 #endif 21 } 22