mirror of
https://github.com/lxc/lxcfs.git
synced 2026-02-05 09:46:18 +01:00
33 lines
1.3 KiB
C
33 lines
1.3 KiB
C
/* SPDX-License-Identifier: LGPL-2.1+ */
|
|
|
|
#ifndef __LXCFS_CGROUP_FUSE_H
|
|
#define __LXCFS_CGROUP_FUSE_H
|
|
|
|
#include "config.h"
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <sys/stat.h>
|
|
#include <sys/types.h>
|
|
#include <unistd.h>
|
|
|
|
#include "lxcfs_fuse.h"
|
|
|
|
#include "macro.h"
|
|
|
|
__visible extern int cg_getattr(const char *path, struct stat *sb);
|
|
__visible extern int cg_mkdir(const char *path, mode_t mode);
|
|
__visible extern int cg_rmdir(const char *path);
|
|
__visible extern int cg_chmod(const char *path, mode_t mode);
|
|
__visible extern int cg_chown(const char *path, uid_t uid, gid_t gid);
|
|
__visible extern int cg_open(const char *path, struct fuse_file_info *fi);
|
|
__visible extern int cg_read(const char *path, char *buf, size_t size, off_t offset, struct fuse_file_info *fi);
|
|
__visible extern int cg_opendir(const char *path, struct fuse_file_info *fi);
|
|
__visible extern int cg_release(const char *path, struct fuse_file_info *fi);
|
|
__visible extern int cg_releasedir(const char *path, struct fuse_file_info *fi);
|
|
__visible extern int cg_write(const char *path, const char *buf, size_t size, off_t offset, struct fuse_file_info *fi);
|
|
__visible extern int cg_readdir(const char *path, void *buf, fuse_fill_dir_t filler, off_t offset, struct fuse_file_info *fi);
|
|
__visible extern int cg_access(const char *path, int mode);
|
|
|
|
#endif /* __LXCFS_CGROUP_FUSE_H */
|