Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(392)

Issue 13818027: posix: replace nonstandard futimes call with futimens (Closed)

Created:
7 years, 8 months ago by Mostyn Bramley-Moore
Modified:
7 years, 8 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org, sail+watch_chromium.org, robertn, dumi
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

posix: replace nonstandard futimes call with futimens Replace a futimes call with futimens which is specified in POSIX.1-2008. R=brettw@chromium.org,darin@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=194862

Patch Set 1 #

Total comments: 2

Patch Set 2 : change Time::ToTimeVal to Time::ToTimeSpec #

Total comments: 1

Patch Set 3 : use __USE_XOPEN2K8 ifdef to pick futimens rather than futimes #

Patch Set 4 : undo stray changes to time_unittest.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -0 lines) Patch
M base/platform_file_posix.cc View 1 2 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
Mostyn Bramley-Moore
7 years, 8 months ago (2013-04-09 20:43:29 UTC) #1
darin (slow to review)
https://codereview.chromium.org/13818027/diff/1/base/platform_file_posix.cc File base/platform_file_posix.cc (right): https://codereview.chromium.org/13818027/diff/1/base/platform_file_posix.cc#newcode302 base/platform_file_posix.cc:302: tv[0] = last_access_time.ToTimeVal(); nit: The code might be more ...
7 years, 8 months ago (2013-04-10 17:51:05 UTC) #2
darin (slow to review)
See usage here: https://code.google.com/p/chromium/codesearch#search/&q=ToTimeVal&sq=package:chromium&type=cs
7 years, 8 months ago (2013-04-10 17:52:26 UTC) #3
Mostyn Bramley-Moore
https://codereview.chromium.org/13818027/diff/1/base/platform_file_posix.cc File base/platform_file_posix.cc (right): https://codereview.chromium.org/13818027/diff/1/base/platform_file_posix.cc#newcode302 base/platform_file_posix.cc:302: tv[0] = last_access_time.ToTimeVal(); On 2013/04/10 17:51:05, darin wrote: > ...
7 years, 8 months ago (2013-04-10 20:59:07 UTC) #4
darin (slow to review)
This looks mostly OK to me. I guess the asymmetry between ToTimeSpec and FromTimeVal is ...
7 years, 8 months ago (2013-04-10 23:32:47 UTC) #5
Mostyn Bramley-Moore
On 2013/04/10 23:32:47, darin wrote: > This looks mostly OK to me. I guess the ...
7 years, 8 months ago (2013-04-11 07:40:18 UTC) #6
brettw
https://codereview.chromium.org/13818027/diff/6001/base/time.h File base/time.h (right): https://codereview.chromium.org/13818027/diff/6001/base/time.h#newcode297 base/time.h:297: struct timespec ToTimeSpec() const; It seems weird to me ...
7 years, 8 months ago (2013-04-11 18:11:53 UTC) #7
darin (slow to review)
I guided him here because I noted that ToTimeVal wasn't needed anymore. However, FromTimeVal is ...
7 years, 8 months ago (2013-04-11 18:34:03 UTC) #8
Mostyn Bramley-Moore
On 2013/04/11 18:34:03, darin wrote: > I guided him here because I noted that ToTimeVal ...
7 years, 8 months ago (2013-04-11 19:45:01 UTC) #9
darin (slow to review)
Yeah, I'm not a fan of dead-code. This change looks good to me, but again ...
7 years, 8 months ago (2013-04-11 20:29:01 UTC) #10
brettw
I guess we can always add the "other" versions if we need them. LGTM
7 years, 8 months ago (2013-04-11 22:32:37 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mostynb@opera.com/13818027/6001
7 years, 8 months ago (2013-04-11 22:34:10 UTC) #12
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-11 22:40:40 UTC) #13
Mostyn Bramley-Moore
D'oh, looks like OSX and android don't have futimens (even though it's more "standard" than ...
7 years, 8 months ago (2013-04-11 22:51:20 UTC) #14
brettw
I'm OK with an ifdef.
7 years, 8 months ago (2013-04-11 22:53:34 UTC) #15
darin (slow to review)
Yeah, this suggests that you might want to backtrack to the first version of your ...
7 years, 8 months ago (2013-04-11 22:53:51 UTC) #16
Mostyn Bramley-Moore
On 2013/04/11 22:53:51, darin wrote: > Yeah, this suggests that you might want to backtrack ...
7 years, 8 months ago (2013-04-13 13:24:19 UTC) #17
darin (slow to review)
I'm running try jobs before committing.
7 years, 8 months ago (2013-04-17 22:45:39 UTC) #18
Mostyn Bramley-Moore
On 2013/04/17 22:45:39, darin wrote: > I'm running try jobs before committing. The two failures ...
7 years, 8 months ago (2013-04-18 07:06:07 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mostynb@opera.com/13818027/28002
7 years, 8 months ago (2013-04-18 07:13:27 UTC) #20
darin (slow to review)
On 2013/04/18 07:06:07, Mostyn Bramley-Moore wrote: > On 2013/04/17 22:45:39, darin wrote: > > I'm ...
7 years, 8 months ago (2013-04-18 07:19:41 UTC) #21
commit-bot: I haz the power
7 years, 8 months ago (2013-04-18 09:21:48 UTC) #22
Message was sent while issue was closed.
Change committed as 194862

Powered by Google App Engine
This is Rietveld 408576698