mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-15 02:19:39 +00:00
cmd: move declarations to macro.h
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
72a506941f
commit
c881c8101b
@ -330,6 +330,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
|
||||||
|
@ -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);
|
||||||
|
@ -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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user