timothy-tests: Fix paths for wrongly failing tests
[yaffs2.git] / direct / yportenv.h
index 526b38df41b2c1dde3629b4b09eb9f6ff2a26f8d..81da08e5c33ba592760cfe5a79b88662ecd06bbe 100644 (file)
@@ -23,6 +23,7 @@
 typedef unsigned char u8;
 typedef unsigned short u16;
 typedef unsigned int u32;
+typedef unsigned long long u64;
 typedef signed int s32;
 #endif
 
@@ -272,6 +273,17 @@ struct iattr {
 #endif
 
 
+#ifndef S_IRUSR
+#define S_IRUSR                0000400
+#endif
+
+#ifndef S_IWUSR
+#define        S_IWUSR         0000200
+#endif
+
+#ifndef S_IXUSR
+#define        S_IXUSR         0000100
+#endif
 
 #ifndef S_IREAD
 #define S_IREAD                0000400
@@ -285,6 +297,16 @@ struct iattr {
 #define        S_IEXEC 0000100
 #endif
 
+
+#else
+#include <errno.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#endif
+
+#endif
+
+/* Create some less common define values if they don't exist */
 #ifndef XATTR_CREATE
 #define XATTR_CREATE 1
 #endif
@@ -300,12 +322,8 @@ struct iattr {
 #define F_OK   0
 #endif
 
-#else
-#include <errno.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#endif
-
+#ifndef S_ISSOCK
+#define S_ISSOCK(m)    (((m) & S_IFMT) == S_IFSOCK)
 #endif
 
 #ifndef Y_DUMP_STACK