From e8c6c877ed4ece1d20828ee67f657a08dd445296 Mon Sep 17 00:00:00 2001 From: Andrey Vagin Date: Thu, 2 Feb 2012 13:14:59 +0300 Subject: [PATCH] syscall: add set_tid_address Signed-off-by: Andrey Vagin Signed-off-by: Cyrill Gorcunov --- include/syscall-codes.h | 1 + include/syscall.h | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/include/syscall-codes.h b/include/syscall-codes.h index 55bec35ce..23ac9495f 100644 --- a/include/syscall-codes.h +++ b/include/syscall-codes.h @@ -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 diff --git a/include/syscall.h b/include/syscall.h index 4ef2ea18b..faf79de6a 100644 --- a/include/syscall.h +++ b/include/syscall.h @@ -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