summaryrefslogtreecommitdiff
path: root/lib/stat.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-06-19 12:25:04 +0000
committerJim Meyering <jim@meyering.net>2004-06-19 12:25:04 +0000
commit0056eb663eeb70e78a93367d1bb3235936e31969 (patch)
tree414eb92ea13e4790a1c60e6dd1082740a525728f /lib/stat.c
parentbb988c4d3c4781a89cfd01297cbee280f59429eb (diff)
downloadcoreutils-0056eb663eeb70e78a93367d1bb3235936e31969.tar.xz
Remove all S_IS* and S_IF* definitions.
Instead, just include "stat-macros.h".
Diffstat (limited to 'lib/stat.c')
-rw-r--r--lib/stat.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/lib/stat.c b/lib/stat.c
index f8fc82ebc..2088db391 100644
--- a/lib/stat.c
+++ b/lib/stat.c
@@ -3,7 +3,7 @@
has this bug. Also work around a deficiency in Solaris systems (up to at
least Solaris 9) regarding the semantics of `lstat ("symlink/", sbuf).'
- Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free
+ Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free
Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
@@ -34,18 +34,7 @@ extern int errno;
# include <stdlib.h>
# include <string.h>
-# ifdef STAT_MACROS_BROKEN
-# undef S_ISLNK
-# endif
-
-# ifndef S_ISLNK
-# ifdef S_IFLNK
-# define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
-# else
-# define S_ISLNK(m) 0
-# endif
-# endif
-
+# include "stat-macros.h"
# include "xalloc.h"
/* lstat works differently on Linux and Solaris systems. POSIX (see