C++程序  |  9行  |  124 B

long
getrval2(struct tcb *tcp)
{
	unsigned long val;
	if (upeek(tcp, 4*(REG_REG0+1), &val) < 0)
		return -1;
	return val;
}