]> granicus.if.org Git - strace/blob - linux/powerpc/get_error.c
strace.spec.in: compress changelog files
[strace] / linux / powerpc / get_error.c
1 static void
2 get_error(struct tcb *tcp, const bool check_errno)
3 {
4         if (ppc_regs.ccr & 0x10000000) {
5                 tcp->u_rval = -1;
6                 tcp->u_error = ppc_regs.gpr[3];
7         } else {
8                 tcp->u_rval = ppc_regs.gpr[3];
9         }
10 }