]>
git.proxmox.com Git - mirror_lxcfs.git/blob - utils.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
3 #ifndef __LXCFS_UTILS_H
4 #define __LXCFS_UTILS_H
6 #define FUSE_USE_VERSION 26
10 /* Reserve buffer size to account for file size changes. */
11 #define BUF_RESERVE_SIZE 512
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
);
18 #endif /* __LXCFS_UTILS_H */