Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
29c417df
Unverified
Commit
29c417df
authored
Oct 03, 2018
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
raw_syscalls: move lxc_raw_gettid()
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
dbe40686
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
raw_syscalls.h
src/lxc/raw_syscalls.h
+9
-0
utils.h
src/lxc/utils.h
+0
-9
No files found.
src/lxc/raw_syscalls.h
View file @
29c417df
...
@@ -83,4 +83,13 @@ static inline pid_t lxc_raw_getpid(void)
...
@@ -83,4 +83,13 @@ static inline pid_t lxc_raw_getpid(void)
return
(
pid_t
)
syscall
(
SYS_getpid
);
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 */
#endif
/* __LXC_RAW_SYSCALL_H */
src/lxc/utils.h
View file @
29c417df
...
@@ -236,15 +236,6 @@ static inline uint64_t lxc_getpagesize(void)
...
@@ -236,15 +236,6 @@ static inline uint64_t lxc_getpagesize(void)
*/
*/
extern
uint64_t
lxc_find_next_power2
(
uint64_t
n
);
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. */
/* 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
lxc_set_death_signal
(
int
signal
,
pid_t
parent
);
extern
int
fd_cloexec
(
int
fd
,
bool
cloexec
);
extern
int
fd_cloexec
(
int
fd
,
bool
cloexec
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment