提交 e0f847e3 编写于 作者: O openharmony_ci 提交者: Gitee

!86 fix killpg and waitid

Merge pull request !86 from wangjianjun/waitid
#include <sys/wait.h>
#include <unsupported_api.h>
#include "syscall.h"
int waitid(idtype_t type, id_t id, siginfo_t *info, int options)
{
unsupported_api(__FUNCTION__);
return syscall_cp(SYS_waitid, type, id, info, options, 0);
}
#include <signal.h>
#include <errno.h>
#include <unsupported_api.h>
int killpg(pid_t pgid, int sig)
{
unsupported_api(__FUNCTION__);
if (pgid < 0) {
errno = EINVAL;
return -1;
}
return kill(-pgid, sig);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册