tree-wide: fix includes to fix bionic builds

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2018-09-27 00:51:59 +02:00
parent a3aba11021
commit d38dd64a51
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D
108 changed files with 515 additions and 325 deletions

View File

@ -20,8 +20,10 @@
* License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "config.h"
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <stddef.h> #include <stddef.h>
@ -33,6 +35,7 @@
#include <sys/syscall.h> #include <sys/syscall.h>
#include <sys/un.h> #include <sys/un.h>
#include "config.h"
#include "log.h" #include "log.h"
#include "utils.h" #include "utils.h"

View File

@ -20,7 +20,6 @@
#ifndef __LXC_API_EXTENSIONS_H #ifndef __LXC_API_EXTENSIONS_H
#define __LXC_API_EXTENSIONS_H #define __LXC_API_EXTENSIONS_H
#include "config.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -21,7 +21,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <grp.h> #include <grp.h>

View File

@ -21,9 +21,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#include "config.h" #define _GNU_SOURCE 1
#endif
#include <errno.h> #include <errno.h>
#include <limits.h> #include <limits.h>
#include <fcntl.h> #include <fcntl.h>
@ -32,6 +32,7 @@
#include <sys/prctl.h> #include <sys/prctl.h>
#include "caps.h" #include "caps.h"
#include "config.h"
#include "log.h" #include "log.h"
#include "macro.h" #include "macro.h"

View File

@ -24,9 +24,10 @@
#ifndef __LXC_CAPS_H #ifndef __LXC_CAPS_H
#define __LXC_CAPS_H #define __LXC_CAPS_H
#include "config.h"
#include <stdbool.h> #include <stdbool.h>
#include "config.h"
#if HAVE_LIBCAP #if HAVE_LIBCAP
#include <linux/types.h> /* workaround for libcap < 2.17 bug */ #include <linux/types.h> /* workaround for libcap < 2.17 bug */
#include <sys/capability.h> #include <sys/capability.h>

View File

@ -34,26 +34,28 @@
* a comman-separated list of controllers. * a comman-separated list of controllers.
*/ */
#include "config.h" #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <ctype.h> #include <ctype.h>
#include <dirent.h> #include <dirent.h>
#include <errno.h> #include <errno.h>
#include <grp.h> #include <grp.h>
#include <linux/kdev_t.h>
#include <linux/types.h>
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#include <linux/kdev_t.h>
#include <linux/types.h>
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h>
#include "caps.h" #include "caps.h"
#include "cgroup.h" #include "cgroup.h"
#include "cgroup_utils.h" #include "cgroup_utils.h"
#include "commands.h" #include "commands.h"
#include "conf.h" #include "conf.h"
#include "config.h"
#include "log.h" #include "log.h"
#include "macro.h" #include "macro.h"
#include "storage/storage.h" #include "storage/storage.h"

View File

@ -21,13 +21,17 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h>
#include "cgroup.h" #include "cgroup.h"
#include "conf.h" #include "conf.h"
#include "config.h"
#include "initutils.h" #include "initutils.h"
#include "log.h" #include "log.h"
#include "start.h" #include "start.h"

View File

@ -22,14 +22,17 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "config.h" #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <stdbool.h> #include <stdbool.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include "cgroup_utils.h" #include "cgroup_utils.h"
#include "config.h"
#include "macro.h"
#include "utils.h" #include "utils.h"
int get_cgroup_version(char *line) int get_cgroup_version(char *line)

View File

@ -21,7 +21,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <ctype.h> #include <ctype.h>
#include <errno.h> #include <errno.h>
#include <getopt.h> #include <getopt.h>
@ -40,6 +42,7 @@
#include <lxc/version.h> #include <lxc/version.h>
#include "compiler.h" #include "compiler.h"
#include "config.h"
#include "error.h" #include "error.h"
#include "initutils.h" #include "initutils.h"
#include "log.h" #include "log.h"

View File

@ -21,7 +21,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <net/if.h> #include <net/if.h>
@ -43,6 +45,7 @@
#include <lxc/lxccontainer.h> #include <lxc/lxccontainer.h>
#include "af_unix.h" #include "af_unix.h"
#include "config.h"
#include "log.h" #include "log.h"
#include "mainloop.h" #include "mainloop.h"
#include "monitor.h" #include "monitor.h"

View File

@ -17,26 +17,27 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <alloca.h> #include <alloca.h>
#include <arpa/inet.h>
#include <ctype.h> #include <ctype.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <grp.h> #include <grp.h>
#include <pwd.h>
#include <sched.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <linux/netlink.h> #include <linux/netlink.h>
#include <linux/rtnetlink.h> #include <linux/rtnetlink.h>
#include <linux/sockios.h> #include <linux/sockios.h>
#include <net/if.h> #include <net/if.h>
#include <net/if_arp.h> #include <net/if_arp.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <pwd.h>
#include <sched.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/file.h> #include <sys/file.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/mman.h> #include <sys/mman.h>
@ -44,6 +45,7 @@
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h>
#include "config.h" #include "config.h"
#include "log.h" #include "log.h"

View File

@ -22,8 +22,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "config.h" #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <grp.h> #include <grp.h>
@ -42,6 +43,7 @@
#include <unistd.h> #include <unistd.h>
#include "conf.h" #include "conf.h"
#include "config.h"
#include "list.h" #include "list.h"
#include "log.h" #include "log.h"
#include "macro.h" #include "macro.h"

View File

@ -21,8 +21,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "config.h" #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <caps.h> #include <caps.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
@ -31,16 +32,17 @@
#include <signal.h> #include <signal.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h>
#include <sys/param.h> #include <sys/param.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/un.h> #include <sys/un.h>
#include <unistd.h>
#include "af_unix.h" #include "af_unix.h"
#include "cgroup.h" #include "cgroup.h"
#include "commands.h" #include "commands.h"
#include "commands_utils.h" #include "commands_utils.h"
#include "conf.h" #include "conf.h"
#include "config.h"
#include "confile.h" #include "confile.h"
#include "log.h" #include "log.h"
#include "lxc.h" #include "lxc.h"

View File

@ -17,22 +17,25 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#define __STDC_FORMAT_MACROS /* Required for PRIu64 to work. */ #define __STDC_FORMAT_MACROS /* Required for PRIu64 to work. */
#include <errno.h> #include <errno.h>
#include <inttypes.h> #include <inttypes.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/un.h> #include <sys/un.h>
#include <unistd.h>
#include "af_unix.h" #include "af_unix.h"
#include "commands.h" #include "commands.h"
#include "commands_utils.h" #include "commands_utils.h"
#include "initutils.h" #include "config.h"
#include "file_utils.h" #include "file_utils.h"
#include "initutils.h"
#include "log.h" #include "log.h"
#include "lxclock.h" #include "lxclock.h"
#include "monitor.h" #include "monitor.h"

View File

@ -20,6 +20,9 @@
#ifndef __LXC_COMPILER_H #ifndef __LXC_COMPILER_H
#define __LXC_COMPILER_H #define __LXC_COMPILER_H
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <sys/cdefs.h> #include <sys/cdefs.h>
#include "config.h" #include "config.h"

View File

@ -21,10 +21,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#include "config.h" #define _GNU_SOURCE 1
#include "confile.h" #endif
#include <arpa/inet.h> #include <arpa/inet.h>
#include <dirent.h> #include <dirent.h>
#include <errno.h> #include <errno.h>
@ -55,6 +54,29 @@
#include <time.h> #include <time.h>
#include <unistd.h> #include <unistd.h>
#include "af_unix.h"
#include "caps.h"
#include "cgroup.h"
#include "conf.h"
#include "config.h"
#include "confile.h"
#include "confile_utils.h"
#include "error.h"
#include "log.h"
#include "lsm/lsm.h"
#include "lxclock.h"
#include "lxcseccomp.h"
#include "macro.h"
#include "namespace.h"
#include "network.h"
#include "parse.h"
#include "ringbuf.h"
#include "start.h"
#include "storage.h"
#include "storage/overlay.h"
#include "terminal.h"
#include "utils.h"
#ifdef MAJOR_IN_MKDEV #ifdef MAJOR_IN_MKDEV
#include <sys/mkdev.h> #include <sys/mkdev.h>
#endif #endif
@ -91,27 +113,6 @@
#include <../include/prlimit.h> #include <../include/prlimit.h>
#endif #endif
#include "af_unix.h"
#include "caps.h"
#include "cgroup.h"
#include "conf.h"
#include "confile_utils.h"
#include "error.h"
#include "log.h"
#include "lsm/lsm.h"
#include "lxclock.h"
#include "lxcseccomp.h"
#include "macro.h"
#include "namespace.h"
#include "network.h"
#include "parse.h"
#include "ringbuf.h"
#include "start.h"
#include "storage.h"
#include "storage/overlay.h"
#include "terminal.h"
#include "utils.h"
lxc_log_define(conf, lxc); lxc_log_define(conf, lxc);
/* The lxc_conf of the container currently being worked on in an API call. /* The lxc_conf of the container currently being worked on in an API call.

View File

@ -23,27 +23,29 @@
#ifndef __LXC_CONF_H #ifndef __LXC_CONF_H
#define __LXC_CONF_H #define __LXC_CONF_H
#include "config.h" #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#include <stdio.h> #endif
#include <linux/magic.h> #include <linux/magic.h>
#include <net/if.h> #include <net/if.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <stdbool.h>
#include <stdio.h>
#include <sys/param.h> #include <sys/param.h>
#include <sys/types.h> #include <sys/types.h>
#include <stdbool.h>
#include <sys/vfs.h> #include <sys/vfs.h>
#include "compiler.h"
#include "config.h"
#include "list.h"
#include "ringbuf.h"
#include "start.h"
#include "terminal.h"
#if HAVE_SYS_RESOURCE_H #if HAVE_SYS_RESOURCE_H
#include <sys/resource.h> #include <sys/resource.h>
#endif #endif
#include "compiler.h"
#include "list.h"
#include "ringbuf.h"
#include "start.h" /* for lxc_handler */
#include "terminal.h"
#if HAVE_SCMP_FILTER_CTX #if HAVE_SCMP_FILTER_CTX
typedef void * scmp_filter_ctx; typedef void * scmp_filter_ctx;
#endif #endif

View File

@ -22,33 +22,35 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#define __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS
#include <arpa/inet.h>
#include <ctype.h> #include <ctype.h>
#include <dirent.h> #include <dirent.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <inttypes.h> #include <inttypes.h>
#include <net/if.h>
#include <netinet/in.h>
#include <signal.h> #include <signal.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <syslog.h>
#include <time.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <net/if.h>
#include <netinet/in.h>
#include <sys/param.h> #include <sys/param.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/utsname.h> #include <sys/utsname.h>
#include <syslog.h>
#include <time.h>
#include <unistd.h>
#include "conf.h" #include "conf.h"
#include "config.h" #include "config.h"
#include "confile.h" #include "confile.h"
#include "confile_utils.h" #include "confile_utils.h"
#include <../include/netns_ifaddrs.h> #include "../include/netns_ifaddrs.h"
#include "log.h" #include "log.h"
#include "lxcseccomp.h" #include "lxcseccomp.h"
#include "network.h" #include "network.h"

View File

@ -17,15 +17,17 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
#include "config.h" #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <arpa/inet.h>
#include <ctype.h> #include <ctype.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <arpa/inet.h>
#include "conf.h" #include "conf.h"
#include "config.h"
#include "confile.h" #include "confile.h"
#include "confile_utils.h" #include "confile_utils.h"
#include "error.h" #include "error.h"

View File

@ -20,8 +20,6 @@
#ifndef __LXC_CONFILE_UTILS_H #ifndef __LXC_CONFILE_UTILS_H
#define __LXC_CONFILE_UTILS_H #define __LXC_CONFILE_UTILS_H
#include "config.h"
#include <stdbool.h> #include <stdbool.h>
#include "conf.h" #include "conf.h"

View File

@ -20,7 +20,10 @@
* License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <inttypes.h> #include <inttypes.h>
#include <linux/limits.h> #include <linux/limits.h>
#include <sched.h> #include <sched.h>
@ -32,11 +35,10 @@
#include <sys/wait.h> #include <sys/wait.h>
#include <unistd.h> #include <unistd.h>
#include "config.h"
#include "cgroup.h" #include "cgroup.h"
#include "conf.h"
#include "commands.h" #include "commands.h"
#include "conf.h"
#include "config.h"
#include "criu.h" #include "criu.h"
#include "log.h" #include "log.h"
#include "lxc.h" #include "lxc.h"

View File

@ -27,9 +27,9 @@
#include <lxc/lxccontainer.h> #include <lxc/lxccontainer.h>
bool __criu_pre_dump(struct lxc_container *c, struct migrate_opts *opts); extern bool __criu_pre_dump(struct lxc_container *c, struct migrate_opts *opts);
bool __criu_dump(struct lxc_container *c, struct migrate_opts *opts); extern bool __criu_dump(struct lxc_container *c, struct migrate_opts *opts);
bool __criu_restore(struct lxc_container *c, struct migrate_opts *opts); extern bool __criu_restore(struct lxc_container *c, struct migrate_opts *opts);
bool __criu_check_feature(uint64_t *features_to_check); extern bool __criu_check_feature(uint64_t *features_to_check);
#endif #endif

View File

@ -21,15 +21,18 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#include <sys/types.h> #define _GNU_SOURCE 1
#include <sys/stat.h> #endif
#include <errno.h> #include <errno.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "conf.h" #include "conf.h"
#include "config.h"
#include "log.h" #include "log.h"
#include "start.h" #include "start.h"
#include "utils.h" #include "utils.h"

View File

@ -17,8 +17,9 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
#include "config.h" #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <linux/magic.h> #include <linux/magic.h>
@ -26,6 +27,7 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include "config.h"
#include "file_utils.h" #include "file_utils.h"
#include "log.h" #include "log.h"
#include "macro.h" #include "macro.h"

View File

@ -20,8 +20,6 @@
#ifndef __LXC_FILE_UTILS_H #ifndef __LXC_FILE_UTILS_H
#define __LXC_FILE_UTILS_H #define __LXC_FILE_UTILS_H
#include "config.h"
#include <fcntl.h> #include <fcntl.h>
#include <stdbool.h> #include <stdbool.h>
#include <stdio.h> #include <stdio.h>

View File

@ -20,19 +20,22 @@
* License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "config.h"
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <errno.h>
#include <fcntl.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <errno.h>
#include <unistd.h>
#include <string.h> #include <string.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/param.h> #include <sys/param.h>
#include <sys/types.h>
#include <unistd.h>
#include "cgroup.h" #include "cgroup.h"
#include "commands.h" #include "commands.h"
#include "config.h"
#include "error.h" #include "error.h"
#include "log.h" #include "log.h"
#include "lxc.h" #include "lxc.h"

View File

@ -21,14 +21,17 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <sys/prctl.h> #include <sys/prctl.h>
#include "compiler.h"
#include "config.h"
#include "file_utils.h" #include "file_utils.h"
#include "initutils.h" #include "initutils.h"
#include "log.h" #include "log.h"
#include "macro.h" #include "macro.h"
#include "compiler.h"
#ifndef HAVE_STRLCPY #ifndef HAVE_STRLCPY
#include "include/strlcpy.h" #include "include/strlcpy.h"

View File

@ -24,8 +24,6 @@
#ifndef __LXC_INITUTILS_H #ifndef __LXC_INITUTILS_H
#define __LXC_INITUTILS_H #define __LXC_INITUTILS_H
#include "config.h"
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <inttypes.h> #include <inttypes.h>

View File

@ -21,29 +21,29 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#define __STDC_FORMAT_MACROS /* Required for PRIu64 to work. */ #define __STDC_FORMAT_MACROS /* Required for PRIu64 to work. */
#include <stdint.h>
#include <stdio.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h>
#include <inttypes.h> #include <inttypes.h>
#include <limits.h> #include <limits.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include <pthread.h> #include <pthread.h>
#include <stdint.h>
#include <syslog.h>
#include <stdio.h> #include <stdio.h>
#include <fcntl.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <syslog.h>
#include <unistd.h>
#include "log.h"
#include "caps.h" #include "caps.h"
#include "utils.h" #include "config.h"
#include "log.h"
#include "lxccontainer.h" #include "lxccontainer.h"
#include "utils.h"
#ifndef HAVE_STRLCPY #ifndef HAVE_STRLCPY
#include "include/strlcpy.h" #include "include/strlcpy.h"

View File

@ -24,8 +24,6 @@
#ifndef __LXC_LOG_H #ifndef __LXC_LOG_H
#define __LXC_LOG_H #define __LXC_LOG_H
#include "config.h"
#include <errno.h> #include <errno.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>

View File

@ -18,23 +18,26 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <errno.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mount.h> #include <sys/mount.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/vfs.h> #include <sys/vfs.h>
#include <unistd.h>
#include "caps.h"
#include "conf.h"
#include "config.h"
#include "initutils.h"
#include "log.h" #include "log.h"
#include "lsm.h" #include "lsm.h"
#include "conf.h"
#include "utils.h"
#include "initutils.h"
#include "caps.h"
#include "parse.h" #include "parse.h"
#include "utils.h"
lxc_log_define(apparmor, lsm); lxc_log_define(apparmor, lsm);

View File

@ -21,14 +21,17 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <errno.h> #include <errno.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h>
#include <sys/mount.h> #include <sys/mount.h>
#include <sys/param.h> #include <sys/param.h>
#include <unistd.h>
#include "conf.h" #include "conf.h"
#include "config.h"
#include "log.h" #include "log.h"
#include "lsm.h" #include "lsm.h"

View File

@ -21,7 +21,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <stdlib.h> #include <stdlib.h>
#include "config.h"
#include "lsm/lsm.h" #include "lsm/lsm.h"
static char *nop_process_label_get(pid_t pid) static char *nop_process_label_get(pid_t pid)

View File

@ -21,16 +21,19 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <errno.h> #include <errno.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <unistd.h>
#include <selinux/selinux.h> #include <selinux/selinux.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h>
#include "conf.h" #include "conf.h"
#include "config.h"
#include "log.h" #include "log.h"
#include "lsm.h" #include "lsm.h"

View File

@ -31,6 +31,7 @@ extern "C" {
#include <stddef.h> #include <stddef.h>
#include <sys/select.h> #include <sys/select.h>
#include <sys/types.h> #include <sys/types.h>
#include "state.h" #include "state.h"
struct lxc_msg; struct lxc_msg;

View File

@ -18,7 +18,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <arpa/inet.h> #include <arpa/inet.h>
#include <dirent.h> #include <dirent.h>
#include <errno.h> #include <errno.h>
@ -41,6 +43,7 @@
#include <sys/wait.h> #include <sys/wait.h>
#include <unistd.h> #include <unistd.h>
#include "../include/netns_ifaddrs.h"
#include "af_unix.h" #include "af_unix.h"
#include "api_extensions.h" #include "api_extensions.h"
#include "attach.h" #include "attach.h"
@ -53,7 +56,6 @@
#include "confile_utils.h" #include "confile_utils.h"
#include "criu.h" #include "criu.h"
#include "error.h" #include "error.h"
#include <../include/netns_ifaddrs.h>
#include "initutils.h" #include "initutils.h"
#include "log.h" #include "log.h"
#include "lxc.h" #include "lxc.h"

View File

@ -22,11 +22,12 @@
#ifndef __LXC_CONTAINER_H #ifndef __LXC_CONTAINER_H
#define __LXC_CONTAINER_H #define __LXC_CONTAINER_H
#include <malloc.h> #include <malloc.h>
#include <semaphore.h> #include <semaphore.h>
#include <stdbool.h> #include <stdbool.h>
#include <stdlib.h>
#include <stdint.h> #include <stdint.h>
#include <stdlib.h>
#include <lxc/attach_options.h> #include <lxc/attach_options.h>

View File

@ -18,7 +18,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <malloc.h> #include <malloc.h>
@ -30,9 +32,10 @@
#include <lxc/lxccontainer.h> #include <lxc/lxccontainer.h>
#include "config.h"
#include "log.h"
#include "lxclock.h" #include "lxclock.h"
#include "utils.h" #include "utils.h"
#include "log.h"
#ifdef MUTEX_DEBUGGING #ifdef MUTEX_DEBUGGING
#include <execinfo.h> #include <execinfo.h>

View File

@ -26,8 +26,8 @@
#include <fcntl.h> #include <fcntl.h>
#include <semaphore.h> #include <semaphore.h>
#include <string.h> #include <string.h>
#include <sys/stat.h>
#include <sys/file.h> #include <sys/file.h>
#include <sys/stat.h>
#include <time.h> #include <time.h>
#include <unistd.h> #include <unistd.h>

View File

@ -20,8 +20,6 @@
#ifndef __LXC_MACRO_H #ifndef __LXC_MACRO_H
#define __LXC_MACRO_H #define __LXC_MACRO_H
#include "config.h"
#include <asm/types.h> #include <asm/types.h>
#include <linux/if_link.h> #include <linux/if_link.h>
#include <linux/loop.h> #include <linux/loop.h>

View File

@ -21,14 +21,18 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#include <sys/epoll.h> #include <sys/epoll.h>
#include <unistd.h>
#include "config.h"
#include "mainloop.h" #include "mainloop.h"
struct mainloop_handler { struct mainloop_handler {

View File

@ -25,6 +25,7 @@
#define __LXC_MAINLOOP_H #define __LXC_MAINLOOP_H
#include <stdint.h> #include <stdint.h>
#include "list.h" #include "list.h"
#define LXC_MAINLOOP_ERROR -1 #define LXC_MAINLOOP_ERROR -1

View File

@ -22,27 +22,29 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <inttypes.h> #include <inttypes.h>
#include <net/if.h>
#include <netinet/in.h>
#include <poll.h> #include <poll.h>
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#include <net/if.h>
#include <netinet/in.h>
#include <sys/param.h> #include <sys/param.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <unistd.h>
#include "config.h"
#include "af_unix.h" #include "af_unix.h"
#include "config.h"
#include "error.h" #include "error.h"
#include "log.h" #include "log.h"
#include "lxclock.h" #include "lxclock.h"

View File

@ -24,9 +24,9 @@
#define __LXC_MONITOR_H #define __LXC_MONITOR_H
#include <limits.h> #include <limits.h>
#include <poll.h>
#include <sys/param.h> #include <sys/param.h>
#include <sys/un.h> #include <sys/un.h>
#include <poll.h>
typedef enum { typedef enum {
lxc_msg_state, lxc_msg_state,

View File

@ -21,18 +21,21 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <alloca.h> #include <alloca.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <sched.h> #include <sched.h>
#include <signal.h> #include <signal.h>
#include <unistd.h>
#include <sys/param.h> #include <sys/param.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/syscall.h> #include <sys/syscall.h>
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h>
#include "config.h"
#include "log.h" #include "log.h"
#include "namespace.h" #include "namespace.h"
#include "utils.h" #include "utils.h"

View File

@ -27,8 +27,6 @@
#include <unistd.h> #include <unistd.h>
#include <sys/syscall.h> #include <sys/syscall.h>
#include "config.h"
#ifndef CLONE_PARENT_SETTID #ifndef CLONE_PARENT_SETTID
#define CLONE_PARENT_SETTID 0x00100000 #define CLONE_PARENT_SETTID 0x00100000
#endif #endif

View File

@ -21,16 +21,13 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <arpa/inet.h>
#include <ctype.h> #include <ctype.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <linux/netlink.h> #include <linux/netlink.h>
#include <linux/rtnetlink.h> #include <linux/rtnetlink.h>
#include <linux/sockios.h> #include <linux/sockios.h>
@ -38,17 +35,22 @@
#include <net/if.h> #include <net/if.h>
#include <net/if_arp.h> #include <net/if_arp.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/inotify.h> #include <sys/inotify.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/param.h> #include <sys/param.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <time.h>
#include <unistd.h>
#include "../include/netns_ifaddrs.h"
#include "af_unix.h" #include "af_unix.h"
#include "conf.h" #include "conf.h"
#include "config.h" #include "config.h"
#include <../include/netns_ifaddrs.h>
#include "file_utils.h" #include "file_utils.h"
#include "log.h" #include "log.h"
#include "macro.h" #include "macro.h"

View File

@ -23,12 +23,12 @@
#ifndef __LXC_NETWORK_H #ifndef __LXC_NETWORK_H
#define __LXC_NETWORK_H #define __LXC_NETWORK_H
#include <stdbool.h>
#include <stdio.h>
#include <unistd.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#include <linux/types.h> #include <linux/types.h>
#include <stdbool.h>
#include <stdio.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <unistd.h>
#include "list.h" #include "list.h"

View File

@ -21,18 +21,20 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "config.h" #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#include <sys/socket.h> #endif
#include <string.h>
#include <stdio.h>
#include <time.h>
#include <unistd.h>
#include <errno.h> #include <errno.h>
#include <stdlib.h>
#include <linux/netlink.h> #include <linux/netlink.h>
#include <linux/rtnetlink.h> #include <linux/rtnetlink.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <time.h>
#include <unistd.h>
#include "config.h"
#include "log.h" #include "log.h"
#include "nl.h" #include "nl.h"

View File

@ -33,10 +33,14 @@
* See COPYING file for details. * See COPYING file for details.
*/ */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <ctype.h> #include <ctype.h>
#include <dirent.h> #include <dirent.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <linux/unistd.h>
#include <pwd.h> #include <pwd.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdbool.h> #include <stdbool.h>
@ -44,22 +48,22 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <syslog.h>
#include <unistd.h>
#include <linux/unistd.h>
#include <sys/mount.h> #include <sys/mount.h>
#include <sys/param.h> #include <sys/param.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/vfs.h> #include <sys/vfs.h>
#include <syslog.h>
#include <unistd.h>
#include "config.h"
#include "macro.h"
#include "utils.h"
#define PAM_SM_SESSION #define PAM_SM_SESSION
#include <security/_pam_macros.h> #include <security/_pam_macros.h>
#include <security/pam_modules.h> #include <security/pam_modules.h>
#include "macro.h"
#include "utils.h"
#ifndef HAVE_STRLCPY #ifndef HAVE_STRLCPY
#include "include/strlcpy.h" #include "include/strlcpy.h"
#endif #endif

View File

@ -21,18 +21,20 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "config.h" #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#include <stdio.h> #endif
#include <dirent.h> #include <dirent.h>
#include <errno.h> #include <errno.h>
#include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <sys/mman.h> #include <sys/mman.h>
#include "config.h"
#include "log.h"
#include "parse.h" #include "parse.h"
#include "utils.h" #include "utils.h"
#include "log.h"
lxc_log_define(parse, lxc); lxc_log_define(parse, lxc);

View File

@ -17,7 +17,9 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#define __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS
#include <errno.h> #include <errno.h>
#include <inttypes.h> #include <inttypes.h>
@ -25,9 +27,10 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#include <sys/mman.h> #include <sys/mman.h>
#include <unistd.h>
#include "config.h"
#include "ringbuf.h" #include "ringbuf.h"
#include "utils.h" #include "utils.h"

View File

@ -20,15 +20,20 @@
* License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include <string.h>
#include <stdio.h> #ifndef _GNU_SOURCE
#include <sys/socket.h> #define _GNU_SOURCE 1
#include <stdlib.h> #endif
#include <errno.h> #include <errno.h>
#include <unistd.h>
#include <linux/netlink.h> #include <linux/netlink.h>
#include <linux/rtnetlink.h> #include <linux/rtnetlink.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <unistd.h>
#include "config.h"
#include "nl.h" #include "nl.h"
#include "rtnl.h" #include "rtnl.h"

View File

@ -21,7 +21,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <errno.h> #include <errno.h>
#include <seccomp.h> #include <seccomp.h>
#include <stdio.h> #include <stdio.h>

View File

@ -23,9 +23,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#include "config.h" #define _GNU_SOURCE 1
#endif
#include <alloca.h> #include <alloca.h>
#include <dirent.h> #include <dirent.h>
#include <errno.h> #include <errno.h>
@ -37,7 +37,6 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#include <sys/file.h> #include <sys/file.h>
#include <sys/mount.h> #include <sys/mount.h>
#include <sys/param.h> #include <sys/param.h>
@ -48,10 +47,7 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/un.h> #include <sys/un.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <unistd.h>
#if HAVE_LIBCAP
#include <sys/capability.h>
#endif
#include "af_unix.h" #include "af_unix.h"
#include "caps.h" #include "caps.h"
@ -59,12 +55,13 @@
#include "commands.h" #include "commands.h"
#include "commands_utils.h" #include "commands_utils.h"
#include "conf.h" #include "conf.h"
#include "config.h"
#include "confile_utils.h" #include "confile_utils.h"
#include "error.h" #include "error.h"
#include "file_utils.h" #include "file_utils.h"
#include "list.h" #include "list.h"
#include "lsm/lsm.h"
#include "log.h" #include "log.h"
#include "lsm/lsm.h"
#include "lxccontainer.h" #include "lxccontainer.h"
#include "lxclock.h" #include "lxclock.h"
#include "lxcseccomp.h" #include "lxcseccomp.h"
@ -80,6 +77,10 @@
#include "terminal.h" #include "terminal.h"
#include "utils.h" #include "utils.h"
#if HAVE_LIBCAP
#include <sys/capability.h>
#endif
#ifndef HAVE_STRLCPY #ifndef HAVE_STRLCPY
#include "include/strlcpy.h" #include "include/strlcpy.h"
#endif #endif

View File

@ -32,7 +32,6 @@
#include <sys/un.h> #include <sys/un.h>
#include "conf.h" #include "conf.h"
#include "config.h"
#include "namespace.h" #include "namespace.h"
#include "state.h" #include "state.h"

View File

@ -21,19 +21,21 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <time.h>
#include <unistd.h>
#include <sys/file.h> #include <sys/file.h>
#include <sys/param.h> #include <sys/param.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <time.h>
#include <unistd.h>
#include "cgroup.h" #include "cgroup.h"
#include "commands.h" #include "commands.h"

View File

@ -21,7 +21,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <grp.h> #include <grp.h>
@ -29,15 +31,16 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/wait.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/vfs.h> #include <sys/vfs.h>
#include <sys/wait.h>
#include <unistd.h>
#include "log.h"
#include "btrfs.h" #include "btrfs.h"
#include "config.h"
#include "log.h"
#include "rsync.h" #include "rsync.h"
#include "storage.h" #include "storage.h"
#include "utils.h" #include "utils.h"

View File

@ -24,11 +24,10 @@
#ifndef __LXC_BTRFS_H #ifndef __LXC_BTRFS_H
#define __LXC_BTRFS_H #define __LXC_BTRFS_H
#define _GNU_SOURCE #include <byteswap.h>
#include <linux/types.h> /* __le64, __l32 ... */ #include <linux/types.h> /* __le64, __l32 ... */
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>
#include <byteswap.h>
#ifndef BTRFS_SUPER_MAGIC #ifndef BTRFS_SUPER_MAGIC
# define BTRFS_SUPER_MAGIC 0x9123683E # define BTRFS_SUPER_MAGIC 0x9123683E

View File

@ -21,10 +21,13 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <stdint.h> #include <stdint.h>
#include <string.h> #include <string.h>
#include "config.h"
#include "log.h" #include "log.h"
#include "storage.h" #include "storage.h"
#include "utils.h" #include "utils.h"

View File

@ -24,7 +24,6 @@
#ifndef __LXC_DIR_H #ifndef __LXC_DIR_H
#define __LXC_DIR_H #define __LXC_DIR_H
#define _GNU_SOURCE
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>

View File

@ -21,7 +21,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#define __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS
#include <dirent.h> #include <dirent.h>
#include <errno.h> #include <errno.h>
@ -30,10 +32,11 @@
#include <stdint.h> #include <stdint.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h>
#include "config.h"
#include "log.h" #include "log.h"
#include "loop.h" #include "loop.h"
#include "storage.h" #include "storage.h"

View File

@ -24,7 +24,6 @@
#ifndef __LXC_LOOP_H #ifndef __LXC_LOOP_H
#define __LXC_LOOP_H #define __LXC_LOOP_H
#define _GNU_SOURCE
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>

View File

@ -21,16 +21,18 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#define __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS
#include <inttypes.h> #include <inttypes.h>
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#include <sys/sysmacros.h> #include <sys/sysmacros.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <unistd.h>
#include "config.h" #include "config.h"
#include "log.h" #include "log.h"

View File

@ -24,7 +24,6 @@
#ifndef __LXC_LVM_H #ifndef __LXC_LVM_H
#define __LXC_LVM_H #define __LXC_LVM_H
#define _GNU_SOURCE
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>

View File

@ -21,7 +21,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <errno.h> #include <errno.h>
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>
@ -31,6 +33,7 @@
#include <sys/prctl.h> #include <sys/prctl.h>
#include <sys/wait.h> #include <sys/wait.h>
#include "config.h"
#include "log.h" #include "log.h"
#include "nbd.h" #include "nbd.h"
#include "storage.h" #include "storage.h"

View File

@ -24,7 +24,6 @@
#ifndef __LXC_NBD_H #ifndef __LXC_NBD_H
#define __LXC_NBD_H #define __LXC_NBD_H
#define _GNU_SOURCE
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>

View File

@ -21,13 +21,16 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "conf.h" #include "conf.h"
#include "config.h"
#include "confile.h" #include "confile.h"
#include "log.h" #include "log.h"
#include "lxccontainer.h" #include "lxccontainer.h"

View File

@ -21,7 +21,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#define __STDC_FORMAT_MACROS /* Required for PRIu64 to work. */ #define __STDC_FORMAT_MACROS /* Required for PRIu64 to work. */
#include <inttypes.h> /* Required for PRIu64 to work. */ #include <inttypes.h> /* Required for PRIu64 to work. */
#include <stdint.h> #include <stdint.h>
@ -29,6 +31,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "config.h"
#include "log.h" #include "log.h"
#include "storage.h" #include "storage.h"
#include "storage_utils.h" #include "storage_utils.h"

View File

@ -24,7 +24,6 @@
#ifndef __LXC_RDB_H #ifndef __LXC_RDB_H
#define __LXC_RDB_H #define __LXC_RDB_H
#define _GNU_SOURCE
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>

View File

@ -21,17 +21,20 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <grp.h> #include <grp.h>
#include <sched.h> #include <sched.h>
#include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdint.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/mount.h> #include <sys/mount.h>
#include <sys/types.h>
#include <unistd.h>
#include "config.h"
#include "log.h" #include "log.h"
#include "rsync.h" #include "rsync.h"
#include "storage.h" #include "storage.h"

View File

@ -24,7 +24,6 @@
#ifndef __LXC_RSYNC_H #ifndef __LXC_RSYNC_H
#define __LXC_RSYNC_H #define __LXC_RSYNC_H
#define _GNU_SOURCE
#include <stdio.h> #include <stdio.h>
struct rsync_data { struct rsync_data {

View File

@ -21,7 +21,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <dirent.h> #include <dirent.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
@ -32,12 +34,12 @@
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#include <sys/mount.h> #include <sys/mount.h>
#include <sys/prctl.h> #include <sys/prctl.h>
#include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <unistd.h>
#include "btrfs.h" #include "btrfs.h"
#include "conf.h" #include "conf.h"
@ -49,8 +51,8 @@
#include "lvm.h" #include "lvm.h"
#include "lxc.h" #include "lxc.h"
#include "lxclock.h" #include "lxclock.h"
#include "nbd.h"
#include "namespace.h" #include "namespace.h"
#include "nbd.h"
#include "overlay.h" #include "overlay.h"
#include "parse.h" #include "parse.h"
#include "rbd.h" #include "rbd.h"

View File

@ -24,7 +24,6 @@
#ifndef __LXC_STORAGE_H #ifndef __LXC_STORAGE_H
#define __LXC_STORAGE_H #define __LXC_STORAGE_H
#include "config.h"
#include <stdint.h> #include <stdint.h>
#include <sys/mount.h> #include <sys/mount.h>

View File

@ -21,7 +21,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <ctype.h> #include <ctype.h>
#include <dirent.h> #include <dirent.h>
#include <errno.h> #include <errno.h>
@ -33,13 +35,14 @@
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#include <sys/mount.h> #include <sys/mount.h>
#include <sys/prctl.h> #include <sys/prctl.h>
#include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <unistd.h>
#include "config.h"
#include "log.h" #include "log.h"
#include "nbd.h" #include "nbd.h"
#include "parse.h" #include "parse.h"

View File

@ -24,10 +24,9 @@
#ifndef __LXC_STORAGE_UTILS_H #ifndef __LXC_STORAGE_UTILS_H
#define __LXC_STORAGE_UTILS_H #define __LXC_STORAGE_UTILS_H
#include "config.h"
#include <stdio.h>
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>
#include <stdio.h>
#include "conf.h" #include "conf.h"

View File

@ -21,7 +21,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <errno.h> #include <errno.h>
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>

View File

@ -24,7 +24,6 @@
#ifndef __LXC_ZFS_H #ifndef __LXC_ZFS_H
#define __LXC_ZFS_H #define __LXC_ZFS_H
#define _GNU_SOURCE
#include <stdbool.h> #include <stdbool.h>
#include <stdio.h> #include <stdio.h>
#include <stdint.h> #include <stdint.h>

View File

@ -17,8 +17,9 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
#include "config.h" #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#define __STDC_FORMAT_MACROS /* Required for PRIu64 to work. */ #define __STDC_FORMAT_MACROS /* Required for PRIu64 to work. */
#include <ctype.h> #include <ctype.h>
#include <dirent.h> #include <dirent.h>
@ -32,7 +33,6 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#include <sys/mman.h> #include <sys/mman.h>
#include <sys/mount.h> #include <sys/mount.h>
#include <sys/param.h> #include <sys/param.h>
@ -40,7 +40,9 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <unistd.h>
#include "config.h"
#include "log.h" #include "log.h"
#include "lxclock.h" #include "lxclock.h"
#include "macro.h" #include "macro.h"

View File

@ -21,16 +21,19 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#include <sys/types.h> #define _GNU_SOURCE 1
#include <sys/socket.h> #endif
#include <unistd.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
#include "sync.h" #include "config.h"
#include "log.h" #include "log.h"
#include "start.h" #include "start.h"
#include "sync.h"
#include "utils.h" #include "utils.h"
lxc_log_define(sync, lxc); lxc_log_define(sync, lxc);

View File

@ -21,7 +21,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <lxc/lxccontainer.h> #include <lxc/lxccontainer.h>

View File

@ -24,8 +24,6 @@
#ifndef __LXC_TERMINAL_H #ifndef __LXC_TERMINAL_H
#define __LXC_TERMINAL_H #define __LXC_TERMINAL_H
#include "config.h"
#include <signal.h> #include <signal.h>
#include <stdio.h> #include <stdio.h>

View File

@ -22,24 +22,27 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <ctype.h> #include <ctype.h>
#include <errno.h> #include <errno.h>
#include <limits.h> #include <limits.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h>
#include <lxc/lxccontainer.h> #include <lxc/lxccontainer.h>
#include <lxc/version.h> #include <lxc/version.h>
#include "arguments.h" #include "arguments.h"
#include "compiler.h" #include "compiler.h"
#include "namespace.h" #include "config.h"
#include "initutils.h" #include "initutils.h"
#include "namespace.h"
static int build_shortopts(const struct option *a_options, char *a_shortopts, static int build_shortopts(const struct option *a_options, char *a_shortopts,
size_t a_size) size_t a_size)

View File

@ -28,8 +28,9 @@
#include <getopt.h> #include <getopt.h>
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>
#include <sys/types.h>
#include <sys/param.h> #include <sys/param.h>
#include <sys/types.h>
#include <lxc/lxccontainer.h> #include <lxc/lxccontainer.h>
struct lxc_arguments; struct lxc_arguments;

View File

@ -21,24 +21,27 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <termios.h>
#include <unistd.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <termios.h>
#include <unistd.h>
#include <lxc/lxccontainer.h> #include <lxc/lxccontainer.h>
#include "arguments.h" #include "arguments.h"
#include "attach.h" #include "attach.h"
#include "caps.h" #include "caps.h"
#include "config.h"
#include "confile.h" #include "confile.h"
#include "log.h" #include "log.h"
#include "utils.h" #include "utils.h"

View File

@ -18,7 +18,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
@ -27,6 +29,7 @@
#include <lxc/lxccontainer.h> #include <lxc/lxccontainer.h>
#include "arguments.h" #include "arguments.h"
#include "config.h"
#include "list.h" #include "list.h"
#include "log.h" #include "log.h"
#include "utils.h" #include "utils.h"

View File

@ -21,17 +21,20 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <libgen.h> #include <libgen.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h>
#include <lxc/lxccontainer.h> #include <lxc/lxccontainer.h>
#include "arguments.h" #include "arguments.h"
#include "config.h"
#include "log.h" #include "log.h"
lxc_log_define(lxc_cgroup, lxc); lxc_log_define(lxc_cgroup, lxc);

View File

@ -16,17 +16,20 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <unistd.h>
#include <lxc/lxccontainer.h> #include <lxc/lxccontainer.h>
#include "arguments.h" #include "arguments.h"
#include "config.h"
#include "log.h" #include "log.h"
#include "utils.h" #include "utils.h"

View File

@ -18,11 +18,16 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <lxc/lxccontainer.h> #include <lxc/lxccontainer.h>
#include "config.h"
struct lxc_config_items { struct lxc_config_items {
char *name; char *name;
}; };

View File

@ -21,24 +21,27 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <libgen.h> #include <libgen.h>
#include <poll.h> #include <poll.h>
#include <signal.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <signal.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/param.h> #include <sys/param.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h>
#include <lxc/lxccontainer.h> #include <lxc/lxccontainer.h>
#include "arguments.h" #include "arguments.h"
#include "config.h"
#include "log.h" #include "log.h"
#include "utils.h" #include "utils.h"

View File

@ -16,7 +16,9 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <getopt.h> #include <getopt.h>
@ -26,15 +28,16 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <time.h>
#include <unistd.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <time.h>
#include <unistd.h>
#include <lxc/lxccontainer.h> #include <lxc/lxccontainer.h>
#include "arguments.h" #include "arguments.h"
#include "config.h"
#include "log.h" #include "log.h"
#include "storage_utils.h" #include "storage_utils.h"
#include "utils.h" #include "utils.h"

View File

@ -17,18 +17,21 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <fcntl.h> #include <fcntl.h>
#include <libgen.h> #include <libgen.h>
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h>
#include <lxc/lxccontainer.h> #include <lxc/lxccontainer.h>
#include "arguments.h" #include "arguments.h"
#include "config.h"
#include "log.h" #include "log.h"
#include "storage_utils.h" #include "storage_utils.h"
#include "utils.h" #include "utils.h"

View File

@ -17,18 +17,21 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <fcntl.h> #include <fcntl.h>
#include <libgen.h> #include <libgen.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h>
#include <lxc/lxccontainer.h> #include <lxc/lxccontainer.h>
#include "arguments.h" #include "arguments.h"
#include "config.h"
#include "log.h" #include "log.h"
#include "utils.h" #include "utils.h"

View File

@ -19,18 +19,21 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <libgen.h> #include <libgen.h>
#include <limits.h> #include <limits.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h>
#include <lxc/lxccontainer.h> #include <lxc/lxccontainer.h>
#include "arguments.h"
#include "../../include/netns_ifaddrs.h" #include "../../include/netns_ifaddrs.h"
#include "arguments.h"
#include "config.h"
#include "log.h" #include "log.h"
#include "utils.h" #include "utils.h"

View File

@ -21,22 +21,25 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <errno.h> #include <errno.h>
#include <libgen.h> #include <libgen.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#include <sys/param.h> #include <sys/param.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <unistd.h>
#include <lxc/lxccontainer.h> #include <lxc/lxccontainer.h>
#include "arguments.h" #include "arguments.h"
#include "caps.h" #include "caps.h"
#include "config.h"
#include "confile.h" #include "confile.h"
#include "log.h" #include "log.h"
#include "utils.h" #include "utils.h"

View File

@ -21,17 +21,19 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <libgen.h> #include <libgen.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#include <unistd.h>
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h>
#include <lxc/lxccontainer.h> #include <lxc/lxccontainer.h>
#include "arguments.h" #include "arguments.h"
#include "config.h"
#include "log.h" #include "log.h"
lxc_log_define(lxc_freeze, lxc); lxc_log_define(lxc_freeze, lxc);

View File

@ -21,19 +21,22 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <libgen.h> #include <libgen.h>
#include <limits.h> #include <limits.h>
#include <stdbool.h> #include <stdbool.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h>
#include <lxc/lxccontainer.h> #include <lxc/lxccontainer.h>
#include "arguments.h" #include "arguments.h"
#include "config.h"
#include "log.h" #include "log.h"
#include "utils.h" #include "utils.h"

View File

@ -16,7 +16,9 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <dirent.h> #include <dirent.h>
#include <getopt.h> #include <getopt.h>
#include <limits.h> #include <limits.h>
@ -26,16 +28,17 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <strings.h> #include <strings.h>
#include <termios.h>
#include <unistd.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <termios.h>
#include <unistd.h>
#include <lxc/lxccontainer.h> #include <lxc/lxccontainer.h>
#include "arguments.h" #include "arguments.h"
#include "config.h"
#include "log.h" #include "log.h"
#include "utils.h" #include "utils.h"

View File

@ -21,7 +21,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#define __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS
#include <dirent.h> #include <dirent.h>
#include <errno.h> #include <errno.h>
@ -34,18 +36,19 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#include <sys/param.h> #include <sys/param.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/un.h> #include <sys/un.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <unistd.h>
#include <lxc/lxccontainer.h> #include <lxc/lxccontainer.h>
#include "af_unix.h" #include "af_unix.h"
#include "arguments.h" #include "arguments.h"
#include "config.h"
#include "log.h" #include "log.h"
#include "macro.h" #include "macro.h"
#include "monitor.h" #include "monitor.h"

View File

@ -17,19 +17,22 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <ctype.h> #include <ctype.h>
#include <fcntl.h> #include <fcntl.h>
#include <libgen.h> #include <libgen.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h>
#include <lxc/lxccontainer.h> #include <lxc/lxccontainer.h>
#include "arguments.h" #include "arguments.h"
#include "config.h"
#include "log.h" #include "log.h"
lxc_log_define(lxc_snapshot, lxc); lxc_log_define(lxc_snapshot, lxc);

Some files were not shown because too many files have changed in this diff Show More