Commit c8edb0c7 authored by Andrey Vagin's avatar Andrey Vagin Committed by Cyrill Gorcunov

syscall: add sys_kill

Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Acked-by: 's avatarPavel Emelyanov <xemul@parallels.com>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent e6968f4b
......@@ -23,6 +23,7 @@
#define __NR_clone 56
#define __NR_exit 60
#define __NR_wait4 61
#define __NR_kill 62
#define __NR_flock 73
#define __NR_unlink 87
#define __NR_tgkill 131
......
......@@ -284,6 +284,11 @@ static void always_inline local_sleep(long seconds)
sys_nanosleep(&req, &rem);
}
static long always_inline sys_kill(long pid, int sig)
{
return syscall2(__NR_kill, pid, (long)sig);
}
static long always_inline sys_tgkill(long tgid, long pid, int sig)
{
return syscall3(__NR_tgkill, tgid, pid, (long)sig);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment