projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix race yaffs_flush_inodes against iput
[yaffs2.git]
/
direct
/
yportenv.h
diff --git
a/direct/yportenv.h
b/direct/yportenv.h
index 8a5cb4e8edefad764e9705fc145fef610e745ebc..d931f8127525bfe96c2b98a105ccc752fd9b462e 100644
(file)
--- a/
direct/yportenv.h
+++ b/
direct/yportenv.h
@@
-1,8
+1,7
@@
/*
* YAFFS: Yet another Flash File System . A NAND-flash specific file system.
*
/*
* 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>
*
*
* Created by Charles Manning <charles@aleph1.co.uk>
*
@@
-23,6
+22,7
@@
typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned int u32;
typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned int u32;
+typedef unsigned long long u64;
typedef signed int s32;
#endif
typedef signed int s32;
#endif
@@
-272,7
+272,6
@@
struct iattr {
#endif
#endif
-
#ifndef S_IRUSR
#define S_IRUSR 0000400
#endif
#ifndef S_IRUSR
#define S_IRUSR 0000400
#endif
@@
-281,10
+280,23
@@
struct iattr {
#define S_IWUSR 0000200
#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
#ifndef S_IEXEC
#define S_IEXEC 0000100
#endif
+
#else
#include <errno.h>
#include <sys/stat.h>
#else
#include <errno.h>
#include <sys/stat.h>