Tizen_4.0 base
[platform/upstream/docker-engine.git] / vendor / github.com / opencontainers / runc / libcontainer / nsenter / namespace.h
1 #ifndef NSENTER_NAMESPACE_H
2 #define NSENTER_NAMESPACE_H
3
4 #ifndef _GNU_SOURCE
5 #       define _GNU_SOURCE
6 #endif
7 #include <sched.h>
8
9 /* All of these are taken from include/uapi/linux/sched.h */
10 #ifndef CLONE_NEWNS
11 #       define CLONE_NEWNS 0x00020000 /* New mount namespace group */
12 #endif
13 #ifndef CLONE_NEWCGROUP
14 #       define CLONE_NEWCGROUP 0x02000000 /* New cgroup namespace */
15 #endif
16 #ifndef CLONE_NEWUTS
17 #       define CLONE_NEWUTS 0x04000000 /* New utsname namespace */
18 #endif
19 #ifndef CLONE_NEWIPC
20 #       define CLONE_NEWIPC 0x08000000 /* New ipc namespace */
21 #endif
22 #ifndef CLONE_NEWUSER
23 #       define CLONE_NEWUSER 0x10000000 /* New user namespace */
24 #endif
25 #ifndef CLONE_NEWPID
26 #       define CLONE_NEWPID 0x20000000 /* New pid namespace */
27 #endif
28 #ifndef CLONE_NEWNET
29 #       define CLONE_NEWNET 0x40000000 /* New network namespace */
30 #endif
31
32 #endif /* NSENTER_NAMESPACE_H */