]> Savannah Git Hosting - gnulib.git/commitdiff
fstatat: Simplify.
authorBruno Haible <bruno@clisp.org>
Sat, 19 Nov 2011 18:08:02 +0000 (19:08 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 19 Nov 2011 18:08:02 +0000 (19:08 +0100)
* lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
gnulib should define rpl_fstatat, there is a
"#define fstatat rpl_fstatat" in <sys/stat.h>.

ChangeLog
lib/fstatat.c

index 47d2068744a7755d6caaf04c53b46118cf419610..0360859a04698658fa7c9470b98b677c4740597b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-11-19  Bruno Haible  <bruno@clisp.org>
+
+       fstatat: Simplify.
+       * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
+       gnulib should define rpl_fstatat, there is a
+       "#define fstatat rpl_fstatat" in <sys/stat.h>.
+
 2011-11-19  Bruno Haible  <bruno@clisp.org>
 
        Ensure 'inline' can be used in tests/test-utimens-common.h.
index b53a83d43077eaabc4ef782443b87006506cb10f..e59be91d01d27e8db8a1cc79585203849632db79 100644 (file)
@@ -118,11 +118,7 @@ stat_func (char const *name, struct stat *st)
    then give a diagnostic and exit nonzero.
    Otherwise, this function works just like Solaris' fstatat.  */
 
-# if HAVE_FSTATAT
-#  define AT_FUNC_NAME rpl_fstatat
-# else
-#  define AT_FUNC_NAME fstatat
-# endif
+# define AT_FUNC_NAME fstatat
 # define AT_FUNC_F1 lstat
 # define AT_FUNC_F2 stat_func
 # define AT_FUNC_USE_F1_COND AT_SYMLINK_NOFOLLOW