#define ENOMEM 12
#endif
+#ifndef EEXIST
+#define EEXIST 17
+#endif
+
#ifndef ENOTDIR
#define ENOTDIR 20
#endif
#endif
#ifndef S_IREAD
-#define S_READ 0000400
+#define S_IREAD 0000400
#endif
#ifndef S_IWRITE
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) ;