macro.h \
file_utils.c file_utils.h \
string_utils.c string_utils.h \
+ syscall_wrappers.h \
utils.c utils.h
endif
#include "macro.h"
#include "file_utils.h"
#include "string_utils.h"
+#include "syscall_wrappers.h"
#include "utils.h"
extern int lxc_log_fd;
#include "lxclock.h"
#include "network.h"
#include "storage.h"
+#include "syscall_wrappers.h"
#include "utils.h"
#if IS_BIONIC
#include "storage/overlay.h"
#include "storage_utils.h"
#include "sync.h"
+#include "syscall_wrappers.h"
#include "terminal.h"
#include "utils.h"
#include "version.h"
#include "log.h"
#include "rsync.h"
#include "storage.h"
+#include "syscall_wrappers.h"
#include "utils.h"
lxc_log_define(rsync, lxc);
#include "parse.h"
#include "storage.h"
#include "storage_utils.h"
+#include "syscall_wrappers.h"
#include "utils.h"
#ifndef HAVE_STRLCPY
}
#endif
+/* Define unshare() if missing from the C library */
+#ifndef HAVE_UNSHARE
+static inline int unshare(int flags)
+{
+#ifdef __NR_unshare
+ return syscall(__NR_unshare, flags);
+#else
+ errno = ENOSYS;
+ return -1;
+#endif
+}
+#else
+extern int unshare(int);
+#endif
+
#endif /* __LXC_SYSCALL_WRAPPER_H */
#endif
#endif
-/* Define unshare() if missing from the C library */
-#ifndef HAVE_UNSHARE
-static inline int unshare(int flags)
-{
-#ifdef __NR_unshare
- return syscall(__NR_unshare, flags);
-#else
- errno = ENOSYS;
- return -1;
-#endif
-}
-#else
-extern int unshare(int);
-#endif
-
/* Define signalfd() if missing from the C library */
#ifdef HAVE_SYS_SIGNALFD_H
# include <sys/signalfd.h>