X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=direct%2Fyaffsfs.h;h=71ccc7be4c2a2ce3f4160b05d3eddce0368c3772;hb=HEAD;hp=9a1e41ca165d87b2c32775622c5ae6586e91b5a6;hpb=c668bb26fb948b3dba6a6000ac2334d833e67a80;p=yaffs%2F.git diff --git a/direct/yaffsfs.h b/direct/yaffsfs.h index 9a1e41c..71ccc7b 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 @@ -156,19 +156,19 @@ typedef struct __opaque yaffs_DIR; struct yaffs_stat{ - int st_dev; /* device */ - int st_ino; /* inode */ - mode_t st_mode; /* protection */ - int st_nlink; /* number of hard links */ - int st_uid; /* user ID of owner */ - int st_gid; /* group ID of owner */ - unsigned st_rdev; /* device type (if inode device) */ - 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 */ + int yst_dev; /* device */ + int yst_ino; /* inode */ + mode_t yst_mode; /* protection */ + int yst_nlink; /* number of hard links */ + int yst_uid; /* user ID of owner */ + int yst_gid; /* group ID of owner */ + unsigned yst_rdev; /* device type (if inode device) */ + off_t yst_size; /* total size, in bytes */ + unsigned long yst_blksize; /* blocksize for filesystem I/O */ + unsigned long yst_blocks; /* number of blocks allocated */ + 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) ;