X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=direct%2Fyportenv.h;h=2cc6540ac7fb1f6294dfa527aff3d11b6643db6b;hb=8151c9a6c035743c7d12229eaab73e6f5adb9c39;hp=abc761b6e8c508be860e535730db8c6b10a1535d;hpb=8c97c553cb1f3adbb0b7d5393b32885fae2eb90d;p=yaffs2.git diff --git a/direct/yportenv.h b/direct/yportenv.h index abc761b..2cc6540 100644 --- a/direct/yportenv.h +++ b/direct/yportenv.h @@ -23,9 +23,12 @@ typedef unsigned char u8; typedef unsigned short u16; typedef unsigned int u32; +typedef signed int s32; #endif +#define YAFFS_UNUSED(x) (void)(x) + #ifdef CONFIG_YAFFS_PROVIDE_DEFS /* File types */ @@ -248,13 +251,28 @@ struct iattr { #define S_IFREG 0100000 #endif +#ifndef S_ISSOCK #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK) +#endif +#ifndef S_ISLNK #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) +#endif +#ifndef S_ISDIR #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) +#endif +#ifndef S_ISREG #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) +#endif +#ifndef S_ISBLK #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) +#endif +#ifndef S_ISCHR #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) +#endif +#ifndef S_ISFIFO #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) +#endif + #ifndef S_IREAD