Lines Matching refs:rc
98 LWP_DEF_RETURN_CODE(rc); in lwp_pid_lock_take()
100 rc = lwp_mutex_take_safe(&pid_mtx, RT_WAITING_FOREVER, 0); in lwp_pid_lock_take()
102 RT_ASSERT(rc == RT_EOK); in lwp_pid_lock_take()
103 RT_UNUSED(rc); in lwp_pid_lock_take()
884 sysret_t rc; in _query_event_from_lwp() local
889 rc = child->pid; in _query_event_from_lwp()
894 rc = child->pid; in _query_event_from_lwp()
898 rc = HAS_CHILD_BUT_NO_EVT; in _query_event_from_lwp()
902 …ld_pid=%d ('%s'), stopped=%d) => %d", __func__, child->pid, child->cmd, child->jobctl_stopped, rc); in _query_event_from_lwp()
903 return rc; in _query_event_from_lwp()
911 sysret_t rc; in _verify_child_and_reap() local
918 rc = -EINVAL; in _verify_child_and_reap()
920 rc = -ESRCH; in _verify_child_and_reap()
922 rc = wait_pid; in _verify_child_and_reap()
926 if (rc > 0) in _verify_child_and_reap()
928 rc = _query_event_from_lwp(child, cur_thr, self_lwp, options, ustatus); in _verify_child_and_reap()
929 if (rc > 0) in _verify_child_and_reap()
934 return rc; in _verify_child_and_reap()
941 sysret_t rc = -ECHILD; in _reap_any_child_pid() local
953 rc = _query_event_from_lwp(child, cur_thr, self_lwp, options, ustatus); in _reap_any_child_pid()
954 if (rc > 0) in _reap_any_child_pid()
961 if (rc > 0) in _reap_any_child_pid()
965 return rc; in _reap_any_child_pid()
1101 sysret_t rc; in _wait_and_reap() local
1108 rc = _wait_for_event(cur_thr, self_lwp, &handle, pid); in _wait_and_reap()
1113 rc = waker->pid; in _wait_and_reap()
1125 return rc; in _wait_and_reap()
1130 pid_t rc = -1; in lwp_waitpid() local
1139 rc = -EINVAL; in lwp_waitpid()
1147 rc = _verify_child_and_reap(cur_thr, self_lwp, pid, options, status, ru); in lwp_waitpid()
1152 rc = _reap_any_child_pid(cur_thr, self_lwp, 0, options, status, ru); in lwp_waitpid()
1170 rc = _reap_any_child_pid(cur_thr, self_lwp, pair_pgid, options, status, ru); in lwp_waitpid()
1173 if (rc == HAS_CHILD_BUT_NO_EVT) in lwp_waitpid()
1179 rc = _wait_and_reap(cur_thr, self_lwp, pid, options, status, ru); in lwp_waitpid()
1189 rc = 0; in lwp_waitpid()
1194 RT_ASSERT(rc != 0); in lwp_waitpid()
1198 LOG_D("waitpid() => %d, *status=0x%x", rc, status ? *status:0); in lwp_waitpid()
1199 return rc; in lwp_waitpid()