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
a819b385
Unverified
Commit
a819b385
authored
Aug 19, 2018
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: move declarations to macro.h
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
e18ab019
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
10 deletions
+11
-10
Makefile.am
src/lxc/Makefile.am
+1
-0
lxc_usernsexec.c
src/lxc/cmd/lxc_usernsexec.c
+1
-10
macro.h
src/lxc/macro.h
+9
-0
No files found.
src/lxc/Makefile.am
View file @
a819b385
...
@@ -329,6 +329,7 @@ lxc_usernsexec_SOURCES = cmd/lxc_usernsexec.c \
...
@@ -329,6 +329,7 @@ lxc_usernsexec_SOURCES = cmd/lxc_usernsexec.c \
conf.c conf.h
\
conf.c conf.h
\
list.h
\
list.h
\
log.c log.h
\
log.c log.h
\
macro.h
\
namespace.c namespace.h
\
namespace.c namespace.h
\
utils.c utils.h
utils.c utils.h
endif
endif
...
...
src/lxc/cmd/lxc_usernsexec.c
View file @
a819b385
...
@@ -44,21 +44,12 @@
...
@@ -44,21 +44,12 @@
#include "conf.h"
#include "conf.h"
#include "list.h"
#include "list.h"
#include "log.h"
#include "log.h"
#include "macro.h"
#include "namespace.h"
#include "namespace.h"
#include "utils.h"
#include "utils.h"
#ifndef MS_REC
#define MS_REC 16384
#endif
#ifndef MS_SLAVE
#define MS_SLAVE (1 << 19)
#endif
extern
int
lxc_log_fd
;
extern
int
lxc_log_fd
;
int
unshare
(
int
flags
);
static
void
usage
(
const
char
*
name
)
static
void
usage
(
const
char
*
name
)
{
{
printf
(
"usage: %s [-h] [-m <uid-maps>] -- [command [arg ..]]
\n
"
,
name
);
printf
(
"usage: %s [-h] [-m <uid-maps>] -- [command [arg ..]]
\n
"
,
name
);
...
...
src/lxc/macro.h
View file @
a819b385
...
@@ -187,4 +187,13 @@ extern int __build_bug_on_failed;
...
@@ -187,4 +187,13 @@ extern int __build_bug_on_failed;
#define NLMSG_ERROR 0x2
#define NLMSG_ERROR 0x2
#endif
#endif
/* mount */
#ifndef MS_REC
#define MS_REC 16384
#endif
#ifndef MS_SLAVE
#define MS_SLAVE (1 << 19)
#endif
#endif
/* __LXC_MACRO_H */
#endif
/* __LXC_MACRO_H */
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