2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +00:00

syscall: Add sys_gettid helper

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
Cyrill Gorcunov
2011-12-02 00:52:02 +04:00
parent b9febd52bc
commit 20b0e29698
2 changed files with 6 additions and 0 deletions

View File

@@ -27,6 +27,7 @@
#define __NR__sysctl 156
#define __NR_prctl 157
#define __NR_arch_prctl 158
#define __NR_gettid 186
#define __NR_futex 202
#define __NR_set_thread_area 205
#define __NR_get_thread_area 211

View File

@@ -208,6 +208,11 @@ static always_inline unsigned long sys_getpid(void)
return syscall0(__NR_getpid);
}
static always_inline unsigned long sys_gettid(void)
{
return syscall0(__NR_gettid);
}
static always_inline long sys_unlink(char *pathname)
{
return syscall1(__NR_unlink, (unsigned long)pathname);