/*
* YAFFS: Yet another Flash File System . A NAND-flash specific file system.
*
- * Copyright (C) 2002-2011 Aleph One Ltd.
- * for Toby Churchill Ltd and Brightstar Engineering
+ * Copyright (C) 2002-2018 Aleph One Ltd.
*
* Created by Charles Manning <charles@aleph1.co.uk>
*
typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned int u32;
+typedef unsigned long long u64;
typedef signed int s32;
#endif
#endif
-
#ifndef S_IRUSR
#define S_IRUSR 0000400
#endif
#define S_IWUSR 0000200
#endif
+#ifndef S_IXUSR
+#define S_IXUSR 0000100
+#endif
+
+#ifndef S_IREAD
+#define S_IREAD 0000400
+#endif
+
+#ifndef S_IWRITE
+#define S_IWRITE 0000200
+#endif
+
#ifndef S_IEXEC
#define S_IEXEC 0000100
#endif
+
#else
#include <errno.h>
#include <sys/stat.h>