summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-11-19 19:08:02 +0100
committerBruno Haible <bruno@clisp.org>2011-11-19 19:08:02 +0100
commit53ca4e0976b67c1da2605a9b7cb75998f8ab0176 (patch)
tree9003201512e04f226bf7e928b2697af08ee97669
parentbe965b089750bb29da57ec89330ad58354fed4f1 (diff)
downloadgnulib-53ca4e0976b67c1da2605a9b7cb75998f8ab0176.tar.gz
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>.
-rw-r--r--ChangeLog7
-rw-r--r--lib/fstatat.c6
2 files changed, 8 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 47d2068744..0360859a04 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
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.
* modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
* modules/futimens-tests (configure.ac): Likewise.
diff --git a/lib/fstatat.c b/lib/fstatat.c
index b53a83d430..e59be91d01 100644
--- a/lib/fstatat.c
+++ b/lib/fstatat.c
@@ -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