X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=direct%2Fyportenv.h;h=526b38df41b2c1dde3629b4b09eb9f6ff2a26f8d;hb=050b9d1f47ace8f1f5862d4187ef15e247cc9270;hp=b47a4d601e9317311be91729a64efe8986d0f134;hpb=83d99930038ef56463b6551aff5aa4d8348ce240;p=yaffs2.git diff --git a/direct/yportenv.h b/direct/yportenv.h index b47a4d6..526b38d 100644 --- a/direct/yportenv.h +++ b/direct/yportenv.h @@ -22,7 +22,8 @@ #ifdef CONFIG_YAFFS_DEFINES_TYPES typedef unsigned char u8; typedef unsigned short u16; -typedef unsigned u32; +typedef unsigned int u32; +typedef signed int s32; #endif @@ -248,13 +249,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