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

syscall: add set_tid_address

Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 06cc1951
......@@ -45,6 +45,7 @@
#define __NR_futex 202
#define __NR_set_thread_area 205
#define __NR_get_thread_area 211
#define __NR_set_tid_address 218
#define __NR_restart_syscall 219
#define __NR_msync 227
#define __NR_setns 308
......
......@@ -371,6 +371,10 @@ static long sys_recvmsg(int sockfd, struct msghdr *msg, int flags)
return syscall3(__NR_recvmsg, (long)sockfd, (long)msg, (long) flags);
}
static void sys_set_tid_address(int *tid_addr) {
syscall1(__NR_set_tid_address, (long) tid_addr);
}
#ifndef CLONE_NEWUTS
#define CLONE_NEWUTS 0x04000000
#endif
......
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