Commit 20b0e296 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

syscall: Add sys_gettid helper

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent b9febd52
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#define __NR__sysctl 156 #define __NR__sysctl 156
#define __NR_prctl 157 #define __NR_prctl 157
#define __NR_arch_prctl 158 #define __NR_arch_prctl 158
#define __NR_gettid 186
#define __NR_futex 202 #define __NR_futex 202
#define __NR_set_thread_area 205 #define __NR_set_thread_area 205
#define __NR_get_thread_area 211 #define __NR_get_thread_area 211
......
...@@ -208,6 +208,11 @@ static always_inline unsigned long sys_getpid(void) ...@@ -208,6 +208,11 @@ static always_inline unsigned long sys_getpid(void)
return syscall0(__NR_getpid); return syscall0(__NR_getpid);
} }
static always_inline unsigned long sys_gettid(void)
{
return syscall0(__NR_gettid);
}
static always_inline long sys_unlink(char *pathname) static always_inline long sys_unlink(char *pathname)
{ {
return syscall1(__NR_unlink, (unsigned long)pathname); return syscall1(__NR_unlink, (unsigned long)pathname);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment