]> git.proxmox.com Git - mirror_lxcfs.git/blob - utils.h
bindings: split cgroup part of lxcfs into separate files
[mirror_lxcfs.git] / utils.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2
3 #ifndef __LXCFS_UTILS_H
4 #define __LXCFS_UTILS_H
5
6 #define FUSE_USE_VERSION 26
7
8 #include <fuse.h>
9
10 /* Reserve buffer size to account for file size changes. */
11 #define BUF_RESERVE_SIZE 512
12
13 extern void must_strcat(char **src, size_t *sz, size_t *asz, const char *format, ...);
14 extern bool is_shared_pidns(pid_t pid);
15 extern int preserve_ns(const int pid, const char *ns);
16 extern void do_release_file_info(struct fuse_file_info *fi);
17
18 #endif /* __LXCFS_UTILS_H */