C++程序  |  22行  |  377 B

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
}