Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorEarnie Boyd <earnie@users.sf.net>2005-01-13 15:40:37 +0300
committerEarnie Boyd <earnie@users.sf.net>2005-01-13 15:40:37 +0300
commit29de2b193827d19fa753c1c73b2aae304c8f992e (patch)
tree1dc5dd580d269462f209abe80bd4acdd89f72676 /winsup
parent6c033225669c238e03038d6c8e5c3cc3ea5789ad (diff)
* include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
lstat): Remove. * include/errno.h (ELOOP): Ditto.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/mingw/ChangeLog6
-rw-r--r--winsup/mingw/include/errno.h2
-rw-r--r--winsup/mingw/include/sys/stat.h22
3 files changed, 6 insertions, 24 deletions
diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog
index b91753867..ce32bdd8b 100644
--- a/winsup/mingw/ChangeLog
+++ b/winsup/mingw/ChangeLog
@@ -1,3 +1,9 @@
+2005-01-13 Earnie Boyd <earnie@users.sf.net>
+
+ * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
+ lstat): Remove.
+ * include/errno.h (ELOOP): Ditto.
+
2005-01-11 Danny Smith <dannysmith@users.sourceforge.net>
* include/tchar.h (_tfreopen): Add UNICODE mappings.
diff --git a/winsup/mingw/include/errno.h b/winsup/mingw/include/errno.h
index 6d03d7cc7..f9f709c65 100644
--- a/winsup/mingw/include/errno.h
+++ b/winsup/mingw/include/errno.h
@@ -67,8 +67,6 @@
#define ENOTEMPTY 41 /* Directory not empty (90 in Cyg?) */
#define EILSEQ 42 /* Illegal byte sequence */
-#define ELOOP 90 /* Pretend: Too many symlinks */
-
/*
* NOTE: ENAMETOOLONG and ENOTEMPTY conflict with definitions in the
* sockets.h header provided with windows32api-0.1.2.
diff --git a/winsup/mingw/include/sys/stat.h b/winsup/mingw/include/sys/stat.h
index 8220e8047..9814e3d24 100644
--- a/winsup/mingw/include/sys/stat.h
+++ b/winsup/mingw/include/sys/stat.h
@@ -27,7 +27,6 @@
* Constants for the stat st_mode member.
*/
#ifndef __STRICT_ANSI__
-#define _S_IFLNK 0xF000 /* Pretend */
#endif
#define _S_IFIFO 0x1000 /* FIFO */
#define _S_IFCHR 0x2000 /* Character */
@@ -51,15 +50,9 @@
#define _S_ISCHR(m) (((m) & _S_IFMT) == _S_IFCHR)
#define _S_ISBLK(m) (((m) & _S_IFMT) == _S_IFBLK)
#define _S_ISREG(m) (((m) & _S_IFMT) == _S_IFREG)
-#ifndef __STRICT_ANSI__
-# define _S_ISLNK(m) (((m) & _S_IFMT) == _S_IFLNK) /* Should always be zero.*/
-#endif
#ifndef _NO_OLDNAMES
-#ifndef __STRICT_ANSI__
-#define S_IFLNK _S_IFLNK
-#endif
#define S_IFIFO _S_IFIFO
#define S_IFCHR _S_IFCHR
#define S_IFBLK _S_IFBLK
@@ -79,9 +72,6 @@
#define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
#define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
-#ifndef __STRICT_ANSI__
-#define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) /* Should always be zero.*/
-#endif
#endif /* Not _NO_OLDNAMES */
@@ -167,15 +157,6 @@ extern "C" {
_CRTIMP int __cdecl _fstat (int, struct _stat*);
_CRTIMP int __cdecl _chmod (const char*, int);
_CRTIMP int __cdecl _stat (const char*, struct _stat*);
-/*
- * FIXME: Should we use something MinGW specific such as __NO_POSIX_EMULATION__
- * instead of __STRICT_ANSI__? I.E.: Do other things break because of -ansi
- * being specified to the compiler? Of particular interest is the ACE/TAO
- * project which the lstat define broke the build of.
- */
-#ifndef __STRICT_ANSI__
-#define _lstat _stat
-#endif
#ifndef _NO_OLDNAMES
@@ -183,9 +164,6 @@ _CRTIMP int __cdecl _stat (const char*, struct _stat*);
_CRTIMP int __cdecl fstat (int, struct stat*);
_CRTIMP int __cdecl chmod (const char*, int);
_CRTIMP int __cdecl stat (const char*, struct stat*);
-#ifndef __STRICT_ANSI__
-#define lstat stat
-#endif
#endif /* Not _NO_OLDNAMES */