Lines 35-56
Link Here
|
35 |
# define CLONE_NEWTIME 0x00000080 |
35 |
# define CLONE_NEWTIME 0x00000080 |
36 |
# endif |
36 |
# endif |
37 |
|
37 |
|
38 |
# if !defined(HAVE_UNSHARE) || !defined(HAVE_SETNS) |
|
|
39 |
# include <sys/syscall.h> |
40 |
# endif |
41 |
|
42 |
# if !defined(HAVE_UNSHARE) && defined(SYS_unshare) |
43 |
static inline int unshare(int flags) |
44 |
{ |
45 |
return syscall(SYS_unshare, flags); |
46 |
} |
47 |
# endif |
48 |
|
49 |
# if !defined(HAVE_SETNS) && defined(SYS_setns) |
50 |
static inline int setns(int fd, int nstype) |
51 |
{ |
52 |
return syscall(SYS_setns, fd, nstype); |
53 |
} |
54 |
# endif |
55 |
|
56 |
#endif /* UTIL_LINUX_NAMESPACE_H */ |
38 |
#endif /* UTIL_LINUX_NAMESPACE_H */ |