Lines Matching refs:ret

66 	int ret;
68 ret = ptrace(PTRACE_ATTACH, child, NULL, NULL);
69 if (ret) {
73 ret = waitpid(child, NULL, 0);
74 if (ret != child) {
83 int ret;
85 ret = ptrace(PTRACE_DETACH, child, NULL, NULL);
86 if (ret) {
95 int ret;
97 ret = ptrace(PTRACE_CONT, child, NULL, NULL);
98 if (ret) {
109 long ret;
116 ret = ptrace(PTRACE_GETREGSET, child, type, &iov);
117 if (ret)
118 return ret;
129 long ret;
136 ret = ptrace(PTRACE_SETREGSET, child, type, &iov);
140 return ret;
148 int ret;
158 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TAR, &iov);
159 if (ret) {
166 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_PPR, &iov);
167 if (ret) {
174 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_DSCR, &iov);
175 if (ret) {
194 int ret;
206 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TAR, &iov);
207 if (ret) {
213 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_PPR, &iov);
214 if (ret) {
220 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_DSCR, &iov);
221 if (ret) {
237 int ret;
248 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CTAR, &iov);
249 if (ret) {
256 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CPPR, &iov);
257 if (ret) {
264 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CDSCR, &iov);
265 if (ret) {
285 int ret;
297 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TM_CTAR, &iov);
298 if (ret) {
304 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TM_CPPR, &iov);
305 if (ret) {
311 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TM_CDSCR, &iov);
312 if (ret) {
328 int ret, i;
331 ret = ptrace(PTRACE_GETFPREGS, child, NULL, regs);
332 if (ret) {
347 int ret, i;
350 ret = ptrace(PTRACE_GETFPREGS, child, NULL, regs);
351 if (ret) {
359 ret = ptrace(PTRACE_SETFPREGS, child, NULL, regs);
360 if (ret) {
371 int ret, i;
377 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CFPR, &iov);
378 if (ret) {
395 int ret, i;
401 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CFPR, &iov);
402 if (ret) {
410 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TM_CFPR, &iov);
411 if (ret) {
422 int ret, i;
430 ret = ptrace(PTRACE_GETREGS, child, NULL, regs);
431 if (ret) {
455 long ret;
466 ret = sys_ptrace(PTRACE_PEEKUSER, child, addr, (unsigned long)p);
467 if (ret) {
474 ret = sys_ptrace(PTRACE_PEEKUSER, child, addr, (unsigned long)&addr);
475 if (!ret) {
486 long ret;
491 ret = sys_ptrace(PTRACE_POKEUSER, child, addr, *p);
492 if (ret) {
499 ret = sys_ptrace(PTRACE_POKEUSER, child, addr, addr);
500 if (!ret) {
511 int i, ret;
519 ret = ptrace(PTRACE_GETREGS, child, NULL, regs);
520 if (ret) {
528 ret = ptrace(PTRACE_SETREGS, child, NULL, regs);
529 if (ret) {
540 int ret, i;
551 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CGPR, &iov);
552 if (ret) {
569 int ret, i;
579 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CGPR, &iov);
580 if (ret) {
588 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TM_CGPR, &iov);
589 if (ret) {
599 int ret;
601 ret = ptrace(PTRACE_GETVRREGS, child, 0, vmx);
602 if (ret) {
613 int ret;
617 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CVMX, &iov);
618 if (ret) {
629 int ret;
631 ret = ptrace(PTRACE_SETVRREGS, child, 0, vmx);
632 if (ret) {
643 int ret;
648 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TM_CVMX, &iov);
649 if (ret) {
659 int ret;
661 ret = ptrace(PTRACE_GETVSRREGS, child, 0, vsx);
662 if (ret) {
673 int ret;
677 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CVSX, &iov);
678 if (ret) {
688 int ret;
690 ret = ptrace(PTRACE_SETVSRREGS, child, 0, vsx);
691 if (ret) {
702 int ret;
707 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TM_CVSX, &iov);
708 if (ret) {
720 int ret;
731 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_SPR, &iov);
732 if (ret) {