stat: new module, for mingw bug
authorEric Blake <ebb9@byu.net>
Tue, 15 Sep 2009 13:11:40 +0000 (07:11 -0600)
committerEric Blake <ebb9@byu.net>
Sat, 19 Sep 2009 19:15:51 +0000 (13:15 -0600)
commit5794d89bd24981d2974f1504a04bf09b7efaf251
tree8c3ae40fcca6f8ac9ddd256d744f3fb69f4ac52f
parent27fc6b8b3c176038ff7216a6af6dfba82de17537
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 <ebb9@byu.net>
13 files changed:
ChangeLog
MODULES.html.sh
doc/posix-functions/stat.texi
lib/openat.c
lib/stat.c [new file with mode: 0644]
lib/sys_stat.in.h
m4/stat.m4 [new file with mode: 0644]
m4/sys_stat_h.m4
modules/openat
modules/stat [new file with mode: 0644]
modules/stat-tests [new file with mode: 0644]
modules/sys_stat
tests/test-stat.c [new file with mode: 0644]