File: sysfs_fuse.h

package info (click to toggle)
lxcfs 4.0.7-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,284 kB
  • sloc: ansic: 9,684; sh: 4,739; makefile: 194
file content (34 lines) | stat: -rw-r--r-- 1,047 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* SPDX-License-Identifier: LGPL-2.1+ */

#ifndef __LXCFS_SYSFS_FUSE_H
#define __LXCFS_SYSFS_FUSE_H

#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif

#ifndef FUSE_USE_VERSION
#define FUSE_USE_VERSION 26
#endif

#define _FILE_OFFSET_BITS 64

#include <fuse.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>

#include "config.h"
#include "macro.h"

__visible extern int sys_getattr(const char *path, struct stat *sb);
__visible extern int sys_readdir(const char *path, void *buf, fuse_fill_dir_t filler, off_t offset, struct fuse_file_info *fi);
__visible extern int sys_release(const char *path, struct fuse_file_info *fi);
__visible extern int sys_releasedir(const char *path, struct fuse_file_info *fi);
__visible extern int sys_open(const char *path, struct fuse_file_info *fi);
__visible extern int sys_read(const char *path, char *buf, size_t size, off_t offset, struct fuse_file_info *fi);
__visible extern int sys_access(const char *path, int mask);

#endif /* __LXCFS_SYSFS_FUSE_H */