X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=direct%2Fyaffsfs.h;h=c5e817bc6e2c0136309cb07922a9d6518ab030be;hb=9da8de1ba0cd0748246a9d5e471e2db1636c04a5;hp=b670f11690282531e9c213566707342576ffe345;hpb=2cc385c407103563e3074d3664d5cad56812ace6;p=yaffs2.git diff --git a/direct/yaffsfs.h b/direct/yaffsfs.h index b670f11..c5e817b 100644 --- a/direct/yaffsfs.h +++ b/direct/yaffsfs.h @@ -147,6 +147,7 @@ struct yaffs_dirent{ off_t d_off; /* offset to this dirent */ unsigned short d_reclen; /* length of this d_name */ char d_name [NAME_MAX+1]; /* file name (null-terminated) */ + unsigned d_dont_use; /* debug pointer, not for public consumption */ }; typedef struct yaffs_dirent yaffs_dirent; @@ -177,7 +178,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) ; @@ -206,7 +207,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);