diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-04 10:48:30 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-04 10:48:30 +0000 |
commit | ce7c1c05779575ecd031a4852baeb232eba4eb4d (patch) | |
tree | 24fbad17be46a98b8cc9bf99fb2f38d333adae0e /file.c | |
parent | b91d5b7958d752f3509ade4bfeaec4700e48c993 (diff) | |
download | bundler-ce7c1c05779575ecd031a4852baeb232eba4eb4d.tar.gz |
support nanosec file timestamp on newer Windows
Support nanosec file timestamp on Windows 8 or later.
Original patches are written by kubo (Kubo Takehiro).
Windows 7 and earlier also supports nanosec file timestamp, but it's too
accurate than system time. so, this feature is disabled on such versions.
[Feature #13726]
this change also includes [Misc #13702]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -91,9 +91,9 @@ int flock(int, int); /* define system APIs */ #ifdef _WIN32 #include "win32/file.h" -#define STAT(p, s) rb_w32_ustati64((p), (s)) +#define STAT(p, s) rb_w32_ustati64ns((p), (s)) #undef lstat -#define lstat(p, s) rb_w32_ulstati64((p), (s)) +#define lstat(p, s) rb_w32_ulstati64ns((p), (s)) #undef access #define access(p, m) rb_w32_uaccess((p), (m)) #undef truncate @@ -104,8 +104,8 @@ int flock(int, int); #define chown(p, o, g) rb_w32_uchown((p), (o), (g)) #undef lchown #define lchown(p, o, g) rb_w32_ulchown((p), (o), (g)) -#undef utime -#define utime(p, t) rb_w32_uutime((p), (t)) +#undef utimensat +#define utimensat(s, p, t, f) rb_w32_uutimensat((s), (p), (t), (f)) #undef link #define link(f, t) rb_w32_ulink((f), (t)) #undef unlink |