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