14 lines
278 B
C++
14 lines
278 B
C++
|
#include <bits/errno-return.h>
|
||
|
#include <sys/syscall.h>
|
||
|
#include <sys/wait.h>
|
||
|
#include <unistd.h>
|
||
|
|
||
|
extern "C"
|
||
|
{
|
||
|
pid_t waitpid(pid_t pid, int* status, int options)
|
||
|
{
|
||
|
long rc = syscall(SYS_waitpid, pid, status, options);
|
||
|
__errno_return(rc, pid_t);
|
||
|
}
|
||
|
}
|