]> git.proxmox.com Git - mirror_lxc.git/blame - src/lxc/initutils.h
start: check event loop type before closing fd
[mirror_lxc.git] / src / lxc / initutils.h
CommitLineData
cc73685d 1/* SPDX-License-Identifier: LGPL-2.1+ */
4295c5de
SH
2
3#ifndef __LXC_INITUTILS_H
4#define __LXC_INITUTILS_H
5
443dd10a
CB
6#include "config.h"
7
4295c5de 8#include <errno.h>
a6f151a7
CB
9#include <fcntl.h>
10#include <inttypes.h>
4295c5de 11#include <stdbool.h>
a6f151a7
CB
12#include <stdio.h>
13#include <stdlib.h>
14#include <string.h>
a6f151a7 15#include <sys/mount.h>
b371ad51 16#include <sys/prctl.h>
4295c5de
SH
17#include <sys/stat.h>
18#include <sys/types.h>
dca12ddf 19#include <unistd.h>
4295c5de 20
f575e7ef 21#include "compiler.h"
dca12ddf 22#include "string_utils.h"
4295c5de
SH
23
24#define DEFAULT_VG "lxc"
25#define DEFAULT_THIN_POOL "lxc"
26#define DEFAULT_ZFSROOT "lxc"
7da812df 27#define DEFAULT_RBDPOOL "lxc"
4295c5de 28
a6f151a7
CB
29#ifndef PR_SET_MM
30#define PR_SET_MM 35
31#endif
32
33#ifndef PR_SET_MM_MAP
34#define PR_SET_MM_MAP 14
35
36struct prctl_mm_map {
37 uint64_t start_code;
38 uint64_t end_code;
39 uint64_t start_data;
40 uint64_t end_data;
41 uint64_t start_brk;
42 uint64_t brk;
43 uint64_t start_stack;
44 uint64_t arg_start;
45 uint64_t arg_end;
46 uint64_t env_start;
47 uint64_t env_end;
48 uint64_t *auxv;
49 uint32_t auxv_size;
50 uint32_t exe_fd;
51};
52#endif
53
f575e7ef 54__hidden extern const char *lxc_global_config_value(const char *option_name);
4295c5de 55
f575e7ef 56__hidden extern int setproctitle(char *title);
4295c5de 57
96294efb
TA
58__hidden __noreturn int lxc_container_init(int argc, char *const *argv, bool quiet);
59
4295c5de 60#endif /* __LXC_INITUTILS_H */