]>
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 /* Number of hierarchies mounted. */
8 /* Initialized via __constructor__ see bindings.c */
13 extern int cg_write(const char *path
, const char *buf
, size_t size
, off_t offset
,
14 struct fuse_file_info
*fi
);
15 extern int cg_mkdir(const char *path
, mode_t mode
);
16 extern int cg_chown(const char *path
, uid_t uid
, gid_t gid
);
17 extern int cg_rmdir(const char *path
);
18 extern int cg_chmod(const char *path
, mode_t mode
);
19 extern int cg_readdir(const char *path
, void *buf
, fuse_fill_dir_t filler
, off_t offset
,
20 struct fuse_file_info
*fi
);
21 extern int cg_releasedir(const char *path
, struct fuse_file_info
*fi
);
22 extern int cg_release(const char *path
, struct fuse_file_info
*fi
);
23 extern int cg_read(const char *path
, char *buf
, size_t size
, off_t offset
,
24 struct fuse_file_info
*fi
);
25 extern int cg_opendir(const char *path
, struct fuse_file_info
*fi
);
26 extern int cg_getattr(const char *path
, struct stat
*sb
);
27 extern int cg_open(const char *path
, struct fuse_file_info
*fi
);
28 extern int cg_access(const char *path
, int mode
);
30 extern int proc_getattr(const char *path
, struct stat
*sb
);
31 extern int proc_readdir(const char *path
, void *buf
, fuse_fill_dir_t filler
, off_t offset
,
32 struct fuse_file_info
*fi
);
33 extern int proc_release(const char *path
, struct fuse_file_info
*fi
);
34 extern int proc_open(const char *path
, struct fuse_file_info
*fi
);
35 extern int proc_read(const char *path
, char *buf
, size_t size
, off_t offset
,
36 struct fuse_file_info
*fi
);
37 extern int proc_access(const char *path
, int mask
);