syscall: add set_tid_address

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
Andrey Vagin 2012-02-02 13:14:59 +03:00 committed by Cyrill Gorcunov
parent 06cc19511a
commit e8c6c877ed
2 changed files with 5 additions and 0 deletions

View file

@ -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

View file

@ -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