From 5794d89bd24981d2974f1504a04bf09b7efaf251 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Tue, 15 Sep 2009 07:11:40 -0600 Subject: stat: new module, for mingw bug Depending on the current directory, either stat(".",buf) or stat("./",buf) would fail on mingw. * modules/stat: New file. * lib/stat.c: Likewise. * m4/stat.m4 (gl_FUNC_STAT): Likewise. * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses. * modules/sys_stat (Makefile.am): Use them. * lib/sys_stat.in.h (stat): Declare replacement. * lib/openat.c (fstatat): Deal with lstat and stat being function macros. * modules/openat (Depends-on): Add inline. * MODULES.html.sh (systems lacking POSIX:2008): Mention module. * doc/posix-functions/stat.texi (stat): Likewise. * modules/stat-tests: New test. * tests/test-stat.c: Likewise. Signed-off-by: Eric Blake --- modules/stat-tests | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 modules/stat-tests (limited to 'modules/stat-tests') diff --git a/modules/stat-tests b/modules/stat-tests new file mode 100644 index 0000000000..3d31b5262a --- /dev/null +++ b/modules/stat-tests @@ -0,0 +1,12 @@ +Files: +tests/test-stat.c + +Depends-on: +pathmax +same-inode + +configure.ac: + +Makefile.am: +TESTS += test-stat +check_PROGRAMS += test-stat -- cgit v1.2.1