changeset 1074:cd0eb188ea7d

* include/linux/stat.h: Removed #defines which has been added to the main eCos sys/stat.h.
author asl
date Tue, 24 Jun 2003 11:46:30 +0000
parents d5ff69833fad
children 4d2ad80d01ca
files packages/compat/linux/current/ChangeLog packages/compat/linux/current/include/linux/stat.h
diffstat 2 files changed, 5 insertions(+), 22 deletions(-) [+]
line wrap: on
line diff
--- a/packages/compat/linux/current/ChangeLog
+++ b/packages/compat/linux/current/ChangeLog
@@ -1,3 +1,8 @@
+2003-06-10  Andrew Lunn  <andrew.lunn@ascom.ch>
+
+	* include/linux/stat.h: Removed #defines which has been added to 
+	the main eCos sys/stat.h. 
+
 2003-01-21  David Woodhouse  <dwmw2@infradead.org>
 
 	* New package.
--- a/packages/compat/linux/current/include/linux/stat.h
+++ b/packages/compat/linux/current/include/linux/stat.h
@@ -4,28 +4,6 @@
 
 #include <sys/stat.h>
 
-/* 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)