1 long getrval2(struct tcb * tcp)2 getrval2(struct tcb *tcp) 3 { 4 long r20; 5 if (upeek(tcp->pid, 20, &r20) < 0) 6 return -1; 7 return r20; 8 } 9