mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-15 01:54:18 +00:00
raw_syscalls: move lxc_raw_gettid()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
303037d2f6
commit
07a50156ed
@ -83,4 +83,13 @@ static inline pid_t lxc_raw_getpid(void)
|
||||
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 */
|
||||
|
@ -237,15 +237,6 @@ static inline uint64_t lxc_getpagesize(void)
|
||||
*/
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user