提交 3d80ce6c 编写于 作者: W wjj 提交者: wjj

feat: 支持接口killpg和waitid

删除porting下的冗余文件

Change-Id: Ib9541b3f34c6b8020727829e16578c283aea8bc3
Signed-off-by: Nwjj <502004968@qq.com>
上级 42b36311
#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.
先完成此消息的编辑!
想要评论请 注册