mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-22 17:49:13 +00:00
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:
parent
06cc19511a
commit
e8c6c877ed
2 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue