X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=direct%2Fyaffsfs.h;h=fc6152ceaf37e2c4751992720ff2a64c3a452868;hb=7b3c9931a89de673165a3a4238b064f6ad5f22b4;hp=c05e02a6c2cf6603a7902c6e0f0e81dcb4d308bb;hpb=92ee023b9d7144e178a050eff898aaae4415096b;p=yaffs2.git diff --git a/direct/yaffsfs.h b/direct/yaffsfs.h index c05e02a..fc6152c 100644 --- a/direct/yaffsfs.h +++ b/direct/yaffsfs.h @@ -1,7 +1,7 @@ /* * YAFFS: Yet another Flash File System . A NAND-flash specific file system. * - * Copyright (C) 2002-2007 Aleph One Ltd. + * Copyright (C) 2002-2010 Aleph One Ltd. * for Toby Churchill Ltd and Brightstar Engineering * * Created by Charles Manning @@ -114,6 +114,10 @@ #define ENOTEMPTY 39 #endif +#ifndef ENAMETOOLONG +#define ENAMETOOLONG 36 +#endif + #ifndef ENOMEM #define ENOMEM 12 #endif @@ -216,7 +220,9 @@ struct yaffs_stat{ int yaffs_open(const YCHAR *path, int oflag, int mode) ; int yaffs_close(int fd) ; -int yaffs_flush(int fd) ; +int yaffs_fsync(int fd) ; +int yaffs_fdatasync(int fd) ; +int yaffs_flush(int fd) ; /* same as yaffs_fsync() */ int yaffs_access(const YCHAR *path, int amode); @@ -259,7 +265,11 @@ void yaffs_rewinddir(yaffs_DIR *dirp) ; int yaffs_closedir(yaffs_DIR *dirp) ; int yaffs_mount(const YCHAR *path) ; +int yaffs_mount2(const YCHAR *path, int readOnly); int yaffs_unmount(const YCHAR *path) ; +int yaffs_unmount2(const YCHAR *path, int force); +int yaffs_remount(const YCHAR *path, int force, int readOnly); + int yaffs_sync(const YCHAR *path) ;