Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
return (pid_t)syscall(SYS_getpid);
}
+static inline pid_t lxc_raw_gettid(void)
+{
+#ifdef __NR_gettid
+ return syscall(__NR_gettid);
+#else
+ return lxc_raw_getpid();
+#endif
+}
+
#endif /* __LXC_RAW_SYSCALL_H */
*/
extern uint64_t lxc_find_next_power2(uint64_t n);
-static inline pid_t lxc_raw_gettid(void)
-{
-#ifdef SYS_gettid
- return syscall(SYS_gettid);
-#else
- return lxc_raw_getpid();
-#endif
-}
-
/* Set a signal the child process will receive after the parent has died. */
extern int lxc_set_death_signal(int signal, pid_t parent);
extern int fd_cloexec(int fd, bool cloexec);