X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Fyaffsfs.h;h=36b7e5a8555596dab811cbec1722d7ca672b592e;hp=7c36dabdd7a7cf5a2bc0b89dc0781ca721fa3b74;hb=93ea07d9b83e324f12b0e7c1a16a8cef34a29802;hpb=9b9fd2ac90990fed4990feec36ab1ec55fc78926;ds=sidebyside diff --git a/direct/yaffsfs.h b/direct/yaffsfs.h index 7c36dab..36b7e5a 100644 --- a/direct/yaffsfs.h +++ b/direct/yaffsfs.h @@ -76,6 +76,7 @@ struct yaffs_stat{ }; int yaffs_open(const YCHAR *path, int oflag, int mode) ; + int yaffs_close(int fd) ; int yaffs_fsync(int fd) ; int yaffs_fdatasync(int fd) ; @@ -158,6 +159,12 @@ loff_t yaffs_totalspace(const YCHAR *path); int yaffs_inodecount(const YCHAR *path); +int yaffs_n_handles(const YCHAR *path); + +#define YAFFS_SHARE_READ 1 +#define YAFFS_SHARE_WRITE 2 +int yaffs_open_sharing(const YCHAR *path, int oflag, int mode, int shareMode) ; + struct yaffs_DeviceStruct; void yaffs_AddDevice(struct yaffs_DeviceStruct *dev);