MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / sys_wait4

Function sys_wait4

components/lwp/lwp_syscall.c:8004–8007  ·  view source on GitHub ↗

* @brief Waits for a process to change state. * * This function suspends the execution of the calling process until one of its child processes terminates * or a specified process (identified by `pid`) changes its state. The function returns the process ID of the child * process that terminated, and provides information about its exit status and resource usage. * * @param[in] pid The pr

Source from the content-addressed store, hash-verified

8002 * @see sys_waitpid(), sys_fork(), sys_exit()
8003 */
8004sysret_t sys_wait4(pid_t pid, int *status, int options, struct rusage *ru)
8005{
8006 return lwp_waitpid(pid, status, options, ru);
8007}
8008
8009/**
8010 * @brief Sets the time of a specified clock.

Callers

nothing calls this directly

Calls 1

lwp_waitpidFunction · 0.85

Tested by

no test coverage detected