Lines Matching refs:ret
47 int ret, exit_code = -1;
73 ret = sys_ptrace(PTRACE_PEEKSIGINFO, child, &arg, addr_rw);
74 if (ret != -1 || errno != EINVAL) {
77 ret, errno, EINVAL);
83 ret = sys_ptrace(PTRACE_PEEKSIGINFO, child, &arg,
85 if (ret != 2) {
86 err("sys_ptrace() returns %d (expected 2): %m\n", ret);
91 ret = sys_ptrace(PTRACE_PEEKSIGINFO, child, &arg, addr_ro);
92 if (ret != -1 && errno != EFAULT) {
95 ret, errno, EFAULT);
108 int i, j, ret, exit_code = -1;
122 ret = sys_ptrace(PTRACE_PEEKSIGINFO, child, &arg, siginfo);
123 if (ret == -1) {
128 if (ret == 0)
131 for (j = 0; j < ret; j++, i++) {