projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs: Refactor bit counting code
[yaffs2.git]
/
yportenv_multi.h
diff --git
a/yportenv_multi.h
b/yportenv_multi.h
index 3295ca0aeebc13e118001cdebe94ef38eec835a0..4b058a7ff3f7b3fe4a262d4b4359ddeca1df5f12 100644
(file)
--- a/
yportenv_multi.h
+++ b/
yportenv_multi.h
@@
-13,7
+13,6
@@
* Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
*/
* Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
*/
-
#ifndef __YPORTENV_H__
#define __YPORTENV_H__
#ifndef __YPORTENV_H__
#define __YPORTENV_H__
@@
-54,6
+53,7
@@
#include <linux/fs.h>
#include <linux/stat.h>
#include <linux/sort.h>
#include <linux/fs.h>
#include <linux/stat.h>
#include <linux/sort.h>
+#include <linux/bitops.h>
#define YCHAR char
#define YUCHAR unsigned char
#define YCHAR char
#define YUCHAR unsigned char
@@
-67,7
+67,6
@@
#define yaffs_toupper(a) toupper(a)
#define yaffs_sort(base, n, sz, cmp_fn) sort(base, n, sz, cmp_fn, NULL)
#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 YAFFS_LOSTNFOUND_NAME "lost+found"
#define Y_INLINE __inline__
#define YAFFS_LOSTNFOUND_NAME "lost+found"
@@
-120,7
+119,6
@@
#include "stdio.h"
#include "string.h"
#include "stdio.h"
#include "string.h"
-
#define YMALLOC(x) malloc(x)
#define YFREE(x) free(x)
#define YMALLOC_ALT(x) malloc(x)
#define YMALLOC(x) malloc(x)
#define YFREE(x) free(x)
#define YMALLOC_ALT(x) malloc(x)
@@
-177,7
+175,7
@@
#define O_RDWR 02
#endif
#define O_RDWR 02
#endif
-#ifndef O_CREAT
+#ifndef O_CREAT
#define O_CREAT 0100
#endif
#define O_CREAT 0100
#endif
@@
-229,7
+227,7
@@
#define EACCES 13
#endif
#define EACCES 13
#endif
-#ifndef EXDEV
+#ifndef EXDEV
#define EXDEV 18
#endif
#define EXDEV 18
#endif
@@
-273,7
+271,6
@@
#define EISDIR 21
#endif
#define EISDIR 21
#endif
-
// Mode flags
#ifndef S_IFMT
// Mode flags
#ifndef S_IFMT
@@
-292,7
+289,7
@@
#define S_IFREG 0100000
#endif
#define S_IFREG 0100000
#endif
-#ifndef S_IREAD
+#ifndef S_IREAD
#define S_IREAD 0000400
#endif
#define S_IREAD 0000400
#endif
@@
-340,5
+337,4
@@
} while (0)
#endif
} while (0)
#endif
-
#endif
#endif