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
31db9984
Commit
31db9984
authored
Nov 25, 2016
by
Christian Brauner
Committed by
Stéphane Graber
Nov 30, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: check whether gettid() is declared
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
5b3214ca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
configure.ac
configure.ac
+1
-1
log.c
src/lxc/log.c
+14
-0
No files found.
configure.ac
View file @
31db9984
...
@@ -620,7 +620,7 @@ AC_CHECK_DECLS([PR_CAPBSET_DROP], [], [], [#include <sys/prctl.h>])
...
@@ -620,7 +620,7 @@ AC_CHECK_DECLS([PR_CAPBSET_DROP], [], [], [#include <sys/prctl.h>])
AC_CHECK_HEADERS([sys/signalfd.h pty.h ifaddrs.h sys/capability.h sys/personality.h utmpx.h sys/timerfd.h])
AC_CHECK_HEADERS([sys/signalfd.h pty.h ifaddrs.h sys/capability.h sys/personality.h utmpx.h sys/timerfd.h])
# Check for some syscalls functions
# Check for some syscalls functions
AC_CHECK_FUNCS([setns pivot_root sethostname unshare rand_r confstr faccessat])
AC_CHECK_FUNCS([setns pivot_root sethostname unshare rand_r confstr faccessat
gettid
])
# Check for some functions
# Check for some functions
AC_CHECK_LIB(pthread, main)
AC_CHECK_LIB(pthread, main)
...
...
src/lxc/log.c
View file @
31db9984
...
@@ -42,6 +42,20 @@
...
@@ -42,6 +42,20 @@
#define LXC_LOG_DATEFOMAT_SIZE 15
#define LXC_LOG_DATEFOMAT_SIZE 15
#ifndef HAVE_GETTID
static
inline
pid_t
gettid
(
void
)
{
#ifdef __NR_gettid
return
(
pid_t
)
syscall
(
SYS_gettid
);
#else
errno
=
ENOSYS
;
return
-
1
;
#endif
}
#else
extern
pid_t
gettid
(
void
);
#endif
int
lxc_log_fd
=
-
1
;
int
lxc_log_fd
=
-
1
;
int
lxc_quiet_specified
;
int
lxc_quiet_specified
;
int
lxc_log_use_global_fd
;
int
lxc_log_use_global_fd
;
...
...
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