projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs: More clean up.
[yaffs2.git]
/
yportenv_multi.h
diff --git
a/yportenv.h
b/yportenv_multi.h
similarity index 96%
rename from
yportenv.h
rename to
yportenv_multi.h
index ebb4f92041dd1e582f89e1e96b8eadf7e40e677b..3295ca0aeebc13e118001cdebe94ef38eec835a0 100644
(file)
--- a/
yportenv.h
+++ b/
yportenv_multi.h
@@
-41,7
+41,7
@@
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19))
#include <linux/config.h>
#endif
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19))
#include <linux/config.h>
#endif
-
+#include <linux/version.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/sched.h>
@@
-50,6
+50,10
@@
#include <linux/vmalloc.h>
#include <linux/xattr.h>
#include <linux/list.h>
#include <linux/vmalloc.h>
#include <linux/xattr.h>
#include <linux/list.h>
+#include <linux/types.h>
+#include <linux/fs.h>
+#include <linux/stat.h>
+#include <linux/sort.h>
#define YCHAR char
#define YUCHAR unsigned char
#define YCHAR char
#define YUCHAR unsigned char
@@
-61,6
+65,8
@@
#define yaffs_strnlen(s,m) strnlen(s,m)
#define yaffs_sprintf sprintf
#define yaffs_toupper(a) toupper(a)
#define yaffs_strnlen(s,m) strnlen(s,m)
#define yaffs_sprintf sprintf
#define yaffs_toupper(a) toupper(a)
+#define yaffs_sort(base, n, sz, cmp_fn) sort(base, n, sz, cmp_fn, NULL)
+
#define Y_INLINE __inline__
#define Y_INLINE __inline__