]> git.proxmox.com Git - mirror_lxcfs.git/blob - cgroup_fuse.h
lxcfs: add --disable-cfs
[mirror_lxcfs.git] / cgroup_fuse.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2
3 #ifndef __LXCFS_CGROUP_FUSE_H
4 #define __LXCFS_CGROUP_FUSE_H
5
6 #ifndef _GNU_SOURCE
7 #define _GNU_SOURCE
8 #endif
9
10 #ifndef FUSE_USE_VERSION
11 #define FUSE_USE_VERSION 26
12 #endif
13
14 #define _FILE_OFFSET_BITS 64
15
16 #include <fuse.h>
17 #include <stdio.h>
18 #include <stdlib.h>
19 #include <sys/stat.h>
20 #include <sys/types.h>
21 #include <unistd.h>
22
23 #include "config.h"
24 #include "macro.h"
25
26 extern int cg_getattr(const char *path, struct stat *sb);
27 extern int cg_mkdir(const char *path, mode_t mode);
28 extern int cg_rmdir(const char *path);
29 extern int cg_chmod(const char *path, mode_t mode);
30 extern int cg_chown(const char *path, uid_t uid, gid_t gid);
31 extern int cg_open(const char *path, struct fuse_file_info *fi);
32 extern int cg_read(const char *path, char *buf, size_t size, off_t offset,
33 struct fuse_file_info *fi);
34 extern int cg_opendir(const char *path, struct fuse_file_info *fi);
35 extern int cg_release(const char *path, struct fuse_file_info *fi);
36 extern int cg_releasedir(const char *path, struct fuse_file_info *fi);
37 extern int cg_write(const char *path, const char *buf, size_t size,
38 off_t offset, struct fuse_file_info *fi);
39 extern int cg_readdir(const char *path, void *buf, fuse_fill_dir_t filler,
40 off_t offset, struct fuse_file_info *fi);
41 extern int cg_access(const char *path, int mode);
42
43 #endif /* __LXCFS_CGROUP_FUSE_H */