view doc/windows-stat-timespec.texi @ 40220:2796695e9216

get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings. * lib/get-rusage-as.c (get_rusage_as): When compiled by "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit. * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread before exiting.
author Bruno Haible <bruno@clisp.org>
date Sun, 10 Mar 2019 01:28:42 +0100
parents ce759095c7b0
children 5a52ef2d4772
line wrap: on
line source

@node Precise file timestamps on Windows
@section Precise file timestamps on Windows

The module @samp{windows-stat-timespec} ensures that,
on native Windows platforms, @code{struct stat} contains
@code{st_atim}, @code{st_mtim}, @code{st_ctim} fields of type
@code{struct timespec}, providing 100 ns resolution for the timestamps
of files.

Note: On some types of file systems, the timestamp resolution is limited
by the file system.  For example, on FAT file systems, @code{st_mtim}
only has a resolution of 2 seconds.  For more details, see
@url{https://msdn.microsoft.com/en-us/library/ms724290.aspx}.