]> Savannah Git Hosting - gnulib.git/commit
stat: Fix time_t values and other problems on native Windows platforms.
authorBruno Haible <bruno@clisp.org>
Sat, 29 Apr 2017 13:05:15 +0000 (15:05 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 29 Apr 2017 20:52:04 +0000 (22:52 +0200)
commitbd48174329ce207aaf37d37c91b68b215216ab2e
tree979ab3d9a4dd9e7ab47aa5701b81a348e5e06a20
parentfcb99f403746ba7f21b0180a149992b14d6c81bd
stat: Fix time_t values and other problems on native Windows platforms.

* doc/posix-functions/stat.texi: Mention the problem with the Microsoft
implementations of stat().
* lib/stat.c: Include filename.h instead of dosname.h. Include
malloca.h, stat-w32.h.
(is_unc_root): New function.
(rpl_stat): New implementation for native Windows. Remove
REPLACE_FUNC_STAT_DIR code.
* m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
Don't define REPLACE_FUNC_STAT_DIR.
(gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
* modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
(Depends-on): Remove dosname. Add filename, malloca.
(configure.ac): Also compile lib/stat-w32.c.
ChangeLog
doc/posix-functions/stat.texi
lib/stat.c
m4/stat.m4
modules/stat