diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2013-01-23 18:20:09 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2013-01-23 19:39:08 -0800 |
commit | 26b7d0370e2c6bbc07e86cda0848c341c7f64ec1 (patch) | |
tree | db61afe84974e8001c0bc2773506a52b218ff486 /modules/fstatat | |
parent | 2bf79a9ca704a4ae47059ee816e04fca1aeefeb3 (diff) | |
download | gnulib-26b7d0370e2c6bbc07e86cda0848c341c7f64ec1.tar.gz |
statat: new module, split out from fstatat
GNU Emacs needs the POSIX-specified fstatat, but not the
gnulib-specified statat and lstat. Split the latter two into a
new module 'statat'.
* lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
* lib/openat.h, lib/statat.c (STATAT_INLINE):
Rename from FSTATAT_INLINE. All uses changed.
* modules/fstatat (Files): Remove lib/statat.c.
(gl_MODULE_INDICATOR([fstatat])): Remove.
(lib_SOURCES): Remove.
(Maintainer): Add self.
* modules/statat, modules/statat-tests, tests/test-statat.c: New files.
* tests/test-fstatat.c (BASE): Don't define if already defined.
(do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
Diffstat (limited to 'modules/fstatat')
-rw-r--r-- | modules/fstatat | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/fstatat b/modules/fstatat index 7aa99b8f7b..3d25cc8ec4 100644 --- a/modules/fstatat +++ b/modules/fstatat @@ -3,7 +3,6 @@ fstatat() function: Return information about a file at a directory. Files: lib/fstatat.c -lib/statat.c lib/at-func.c m4/fstatat.m4 m4/lstat.m4 @@ -27,11 +26,9 @@ gl_FUNC_FSTATAT if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then AC_LIBOBJ([fstatat]) fi -gl_MODULE_INDICATOR([fstatat]) dnl for lib/openat.h gl_SYS_STAT_MODULE_INDICATOR([fstatat]) Makefile.am: -lib_SOURCES += statat.c Include: <sys/stat.h> @@ -40,4 +37,4 @@ License: GPL Maintainer: -Jim Meyering, Eric Blake +Jim Meyering, Eric Blake, Paul Eggert |