2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

syscall: add waitpid()

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:17 +03:00
committed by Cyrill Gorcunov
parent 99498681e6
commit e6968f4b08
2 changed files with 6 additions and 0 deletions

View File

@@ -22,6 +22,7 @@
#define __NR_getpid 39
#define __NR_clone 56
#define __NR_exit 60
#define __NR_wait4 61
#define __NR_flock 73
#define __NR_unlink 87
#define __NR_tgkill 131

View File

@@ -194,6 +194,11 @@ static always_inline long sys_read(unsigned long fd, void *buf, unsigned long co
return syscall3(__NR_read, fd, (unsigned long)buf, count);
}
static always_inline long sys_waitpid(int pid, int *status, int options)
{
return syscall4(__NR_wait4, pid, (unsigned long)status, options, 0);
}
static always_inline long sys_exit(unsigned long error_code)
{
return syscall1(__NR_exit, error_code);