]> Savannah Git Hosting - gnulib.git/commit
fstat: Fix time_t values on native Windows platforms.
authorBruno Haible <bruno@clisp.org>
Sat, 29 Apr 2017 12:55:22 +0000 (14:55 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 29 Apr 2017 20:51:56 +0000 (22:51 +0200)
commitfcb99f403746ba7f21b0180a149992b14d6c81bd
treeb8e2b912e3d924c62ffb3a0aacf0dd29917591bf
parentf3f95f863f63eec80bfe4228719fb0afada5fa05
fstat: Fix time_t values on native Windows platforms.

* doc/posix-functions/fstat.texi: Mention the problem with st_*time.
* lib/stat-w32.h: New file.
* lib/stat-w32.c: New file.
* lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
stat-w32.h instead.
(fstat_nothrow): Remove function.
(rpl_fstat): Implement by means of _gl_fstat_by_handle.
* m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
always.
(gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
* modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
(Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
(configure.ac): Also compile lib/stat-w32.c.
ChangeLog
doc/posix-functions/fstat.texi
lib/fstat.c
lib/stat-w32.c [new file with mode: 0644]
lib/stat-w32.h [new file with mode: 0644]
m4/fstat.m4
modules/fstat