From: Bruno Haible Date: Sun, 23 Apr 2017 11:18:16 +0000 (+0200) Subject: stat-time: Update comments. X-Git-Tag: v1.0~6249 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=430c2ba5135a8185c372155618fbcfe21fbb7722;p=gnulib.git stat-time: Update comments. * lib/stat-time.h: Fix reference regarding st_ctime on Windows. * tests/test-utimens-common.h: Add reference regarding st_ctime on Windows. --- diff --git a/ChangeLog b/ChangeLog index 629d6ea293..67f5caf2e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2017-04-23 Bruno Haible + + stat-time: Update comments. + * lib/stat-time.h: Fix reference regarding st_ctime on Windows. + * tests/test-utimens-common.h: Add reference regarding st_ctime on + Windows. + 2017-04-01 Bruno Haible glob: Fix more memory leaks. diff --git a/lib/stat-time.h b/lib/stat-time.h index 47469892ee..154d62a01f 100644 --- a/lib/stat-time.h +++ b/lib/stat-time.h @@ -169,7 +169,7 @@ get_stat_birthtime (struct stat const *st) #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ /* Native Windows platforms (but not Cygwin) put the "file creation time" in st_ctime (!). See - . */ + . */ t.tv_sec = st->st_ctime; t.tv_nsec = 0; #else diff --git a/tests/test-utimens-common.h b/tests/test-utimens-common.h index 4aa6565f3a..701e06d98d 100644 --- a/tests/test-utimens-common.h +++ b/tests/test-utimens-common.h @@ -51,7 +51,8 @@ enum { # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ /* Skip ctime tests on native Windows, since it is either a copy of mtime or birth time (depending on the file system), rather than a - properly tracked change time. */ + properly tracked change time. See + . */ # define check_ctime 0 # else # define check_ctime 1