[CRIU] [crtools-bot] syscall: add set_tid_address
Cyrill Gorcunov
gorcunov at openvz.org
Fri Feb 3 08:27:31 EST 2012
The commit is pushed to "master" and will appear on git://github.com/cyrillos/crtools.git
--------------->
commit e8c6c877ed4ece1d20828ee67f657a08dd445296
Author: Andrey Vagin <avagin at openvz.org>
Date: Thu Feb 2 13:14:59 2012 +0300
syscall: add set_tid_address
Signed-off-by: Andrey Vagin <avagin at openvz.org>
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
include/syscall-codes.h | 1 +
include/syscall.h | 4 ++++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/include/syscall-codes.h b/include/syscall-codes.h
index 55bec35..23ac949 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 4ef2ea1..faf79de 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
More information about the CRIU
mailing list