2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-29 13:28:27 +00:00

syscall: add sys_kill

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Acked-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
Andrey Vagin 2012-01-19 01:33:18 +03:00 committed by Cyrill Gorcunov
parent e6968f4b08
commit c8edb0c7e6
2 changed files with 6 additions and 0 deletions

View File

@ -23,6 +23,7 @@
#define __NR_clone 56 #define __NR_clone 56
#define __NR_exit 60 #define __NR_exit 60
#define __NR_wait4 61 #define __NR_wait4 61
#define __NR_kill 62
#define __NR_flock 73 #define __NR_flock 73
#define __NR_unlink 87 #define __NR_unlink 87
#define __NR_tgkill 131 #define __NR_tgkill 131

View File

@ -284,6 +284,11 @@ static void always_inline local_sleep(long seconds)
sys_nanosleep(&req, &rem); 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) static long always_inline sys_tgkill(long tgid, long pid, int sig)
{ {
return syscall3(__NR_tgkill, tgid, pid, (long)sig); return syscall3(__NR_tgkill, tgid, pid, (long)sig);