]> git.proxmox.com Git - mirror_lxcfs.git/blob - src/sysfs_fuse.h
Merge pull request #501 from phanhuy1502/detect-disable-cfs-quota
[mirror_lxcfs.git] / src / sysfs_fuse.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2
3 #ifndef __LXCFS_SYSFS_FUSE_H
4 #define __LXCFS_SYSFS_FUSE_H
5
6 #include "config.h"
7
8 #include <stdio.h>
9 #include <stdlib.h>
10 #include <sys/stat.h>
11 #include <sys/types.h>
12 #include <unistd.h>
13
14 #include "lxcfs_fuse.h"
15
16 #include "macro.h"
17
18 __visible extern int sys_getattr(const char *path, struct stat *sb);
19 __visible extern int sys_readdir(const char *path, void *buf, fuse_fill_dir_t filler, off_t offset, struct fuse_file_info *fi);
20 __visible extern int sys_readlink(const char *path, char *buf, size_t size);
21 __visible extern int sys_release(const char *path, struct fuse_file_info *fi);
22 __visible extern int sys_releasedir(const char *path, struct fuse_file_info *fi);
23 __visible extern int sys_open(const char *path, struct fuse_file_info *fi);
24 __visible extern int sys_opendir(const char *path, struct fuse_file_info *fi);
25 __visible extern int sys_read(const char *path, char *buf, size_t size, off_t offset, struct fuse_file_info *fi);
26 __visible extern int sys_write(const char *path, const char *buf, size_t size, off_t offset, struct fuse_file_info *fi);
27 __visible extern int sys_access(const char *path, int mask);
28
29 #endif /* __LXCFS_SYSFS_FUSE_H */