X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=direct%2Fyaffsfs.h;h=0444d8fcb1ee504cec2d79e4f4d05bee65da305f;hb=378bbdf4d64b8b26db55a495ab6ae520ff62e471;hp=2f99474aac262d6bc4772785a595a3e35c9930f5;hpb=2e51ed27a28a076ee9eb870ba8c0eb09b8114b01;p=yaffs2.git diff --git a/direct/yaffsfs.h b/direct/yaffsfs.h index 2f99474..0444d8f 100644 --- a/direct/yaffsfs.h +++ b/direct/yaffsfs.h @@ -132,7 +132,7 @@ #endif #ifndef S_IREAD -#define S_READ 0000400 +#define S_IREAD 0000400 #endif #ifndef S_IWRITE @@ -155,6 +155,7 @@ typedef struct yaffs_dirent yaffs_dirent; typedef struct __opaque yaffs_DIR; + struct yaffs_stat{ int st_dev; /* device */ int st_ino; /* inode */ @@ -166,9 +167,9 @@ struct yaffs_stat{ off_t st_size; /* total size, in bytes */ unsigned long st_blksize; /* blocksize for filesystem I/O */ unsigned long st_blocks; /* number of blocks allocated */ - unsigned long st_atime; /* time of last access */ - unsigned long st_mtime; /* time of last modification */ - unsigned long st_ctime; /* time of last change */ + unsigned long yst_atime; /* time of last access */ + unsigned long yst_mtime; /* time of last modification */ + unsigned long yst_ctime; /* time of last change */ }; int yaffs_open(const char *path, int oflag, int mode) ; @@ -176,7 +177,7 @@ int yaffs_read(int fd, void *buf, unsigned int nbyte) ; int yaffs_write(int fd, const void *buf, unsigned int nbyte) ; int yaffs_close(int fd) ; off_t yaffs_lseek(int fd, off_t offset, int whence) ; -int yaffs_truncate(int fd, unsigned int newSize); +int yaffs_truncate(int fd, off_t newSize); int yaffs_unlink(const char *path) ; int yaffs_rename(const char *oldPath, const char *newPath) ; @@ -205,7 +206,7 @@ int yaffs_readlink(const char *path, char *buf, int bufsiz); int yaffs_link(const char *oldpath, const char *newpath); int yaffs_mknod(const char *pathname, mode_t mode, dev_t dev); -off_t yaffs_freespace(const char *path); +loff_t yaffs_freespace(const char *path); void yaffs_initialise(yaffsfs_DeviceConfiguration *configList);