# HG changeset patch # User asl # Date 1056455190 0 # Node ID cd0eb188ea7d28d5d8f9ce503560ebadbd16b501 # Parent d5ff69833fad2ebd8ba1e9143d958e69e4835a67 * include/linux/stat.h: Removed #defines which has been added to the main eCos sys/stat.h. diff --git a/packages/compat/linux/current/ChangeLog b/packages/compat/linux/current/ChangeLog --- a/packages/compat/linux/current/ChangeLog +++ b/packages/compat/linux/current/ChangeLog @@ -1,3 +1,8 @@ +2003-06-10 Andrew Lunn + + * include/linux/stat.h: Removed #defines which has been added to + the main eCos sys/stat.h. + 2003-01-21 David Woodhouse * New package. diff --git a/packages/compat/linux/current/include/linux/stat.h b/packages/compat/linux/current/include/linux/stat.h --- a/packages/compat/linux/current/include/linux/stat.h +++ b/packages/compat/linux/current/include/linux/stat.h @@ -4,28 +4,6 @@ #include -/* FIXME: eCos doesn't define bits for symlinks or sockets. In fact, - since the inode types are mutually exclusive, it's a bit of a waste - of space to have separate bits for each type. */ -#ifndef __stat_mode_LNK -#define __stat_mode_LNK (1<<19) -#define S_ISLNK(__mode) ((__mode) & __stat_mode_LNK) -#endif -#ifndef __stat_mode_SOCK -#define __stat_mode_SOCK (1<<20) -#define S_ISSOCK(__mode) ((__mode) & __stat_mode_SOCK) -#endif - -#define S_IFMT 0x18001F - -#define S_IFDIR __stat_mode_DIR -#define S_IFREG __stat_mode_REG -#define S_IFBLK __stat_mode_BLK -#define S_IFCHR __stat_mode_CHR -#define S_IFLNK __stat_mode_LNK -#define S_IFSOCK __stat_mode_SOCK -#define S_IFIFO __stat_mode_FIFO - #define S_IRUGO (S_IRUSR|S_IRGRP|S_IROTH) #define S_IWUGO (S_IWUSR|S_IWGRP|S_IWOTH) #define S_IXUGO (S_IXUSR|S_IXGRP|S_IXOTH)