]>
git.proxmox.com Git - mirror_lxcfs.git/blob - bindings.h
1 /* directory under which we mount the controllers - /run/lxcfs/controllers */
2 #define BASEDIR RUNTIME_PATH "/lxcfs/controllers"
3 #define ROOTDIR RUNTIME_PATH "/lxcfs/root"
5 #define lxcfs_debug_stream(stream, format, ...) \
7 fprintf(stderr, "%s: %d: %s: " format, __FILE__, __LINE__, \
8 __func__, __VA_ARGS__); \
11 #define lxcfs_error(format, ...) lxcfs_debug_stream(stderr, format, __VA_ARGS__)
14 #define lxcfs_debug(format, ...) lxcfs_error(format, __VA_ARGS__)
16 #define lxcfs_debug(format, ...)
19 extern int cg_write(const char *path
, const char *buf
, size_t size
, off_t offset
,
20 struct fuse_file_info
*fi
);
21 extern int cg_mkdir(const char *path
, mode_t mode
);
22 extern int cg_chown(const char *path
, uid_t uid
, gid_t gid
);
23 extern int cg_rmdir(const char *path
);
24 extern int cg_chmod(const char *path
, mode_t mode
);
25 extern int cg_readdir(const char *path
, void *buf
, fuse_fill_dir_t filler
, off_t offset
,
26 struct fuse_file_info
*fi
);
27 extern int cg_releasedir(const char *path
, struct fuse_file_info
*fi
);
28 extern int cg_release(const char *path
, struct fuse_file_info
*fi
);
29 extern int cg_read(const char *path
, char *buf
, size_t size
, off_t offset
,
30 struct fuse_file_info
*fi
);
31 extern int cg_opendir(const char *path
, struct fuse_file_info
*fi
);
32 extern int cg_getattr(const char *path
, struct stat
*sb
);
33 extern int cg_open(const char *path
, struct fuse_file_info
*fi
);
34 extern int cg_access(const char *path
, int mode
);
36 extern int proc_getattr(const char *path
, struct stat
*sb
);
37 extern int proc_readdir(const char *path
, void *buf
, fuse_fill_dir_t filler
, off_t offset
,
38 struct fuse_file_info
*fi
);
39 extern int proc_release(const char *path
, struct fuse_file_info
*fi
);
40 extern int proc_open(const char *path
, struct fuse_file_info
*fi
);
41 extern int proc_read(const char *path
, char *buf
, size_t size
, off_t offset
,
42 struct fuse_file_info
*fi
);
43 extern int proc_access(const char *path
, int mask
);