]> git.proxmox.com Git - mirror_lxcfs.git/blob - src/sysfs_fuse.h
c11d91a961f04ddc84fb6154b9cda120d2133417
[mirror_lxcfs.git] / src / sysfs_fuse.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2
3 #ifndef __LXCFS_SYSFS_FUSE_H
4 #define __LXCFS_SYSFS_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 __visible extern int sys_getattr(const char *path, struct stat *sb);
27 __visible extern int sys_readdir(const char *path, void *buf, fuse_fill_dir_t filler, off_t offset, struct fuse_file_info *fi);
28 __visible extern int sys_release(const char *path, struct fuse_file_info *fi);
29 __visible extern int sys_releasedir(const char *path, struct fuse_file_info *fi);
30 __visible extern int sys_open(const char *path, struct fuse_file_info *fi);
31 __visible extern int sys_read(const char *path, char *buf, size_t size, off_t offset, struct fuse_file_info *fi);
32 __visible extern int sys_access(const char *path, int mask);
33
34 #endif /* __LXCFS_SYSFS_FUSE_H */