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

syscall: add waitpid()

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 99498681
......@@ -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
......
......@@ -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);
......
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