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

Issue 14649009: Android: Provide futimes() implementation using utimensat() (Closed)

Created:
7 years, 7 months ago by nilesh
Modified:
7 years, 6 months ago
Reviewers:
Mark Mentovai, digit, digit1
CC:
chromium-reviews, erikwright+watch_chromium.org
Visibility:
Public.

Description

Android: Provide futimes() implementation using utimensat() The earlier implementation using /proc/self/fd/<num> failed when called from a non-main thread in production builds of Chrome and Android. Depends on NDK r8e: https://codereview.chromium.org/14860010/ BUG=236403 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=204633

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : Rebase #

Patch Set 5 : Removed __NR_utimensat definition. To be provided by NDK #

Patch Set 6 : Rebase after roll #

Total comments: 2

Patch Set 7 : convert timeval to timespec #

Total comments: 6

Patch Set 8 : validate timeval input #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -4 lines) Patch
M base/os_compat_android.cc View 1 2 3 4 5 6 7 1 chunk +19 lines, -4 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
nilesh
7 years, 7 months ago (2013-04-30 18:49:41 UTC) #1
nilesh
7 years, 7 months ago (2013-05-01 17:16:02 UTC) #2
nilesh
jar/digit: Please take a look.
7 years, 6 months ago (2013-06-04 23:13:09 UTC) #3
digit
Excellent, lgtm :-)
7 years, 6 months ago (2013-06-05 08:00:38 UTC) #4
nilesh
Adding Mark for base/OWNERS approval.
7 years, 6 months ago (2013-06-05 22:36:51 UTC) #5
Mark Mentovai
https://codereview.chromium.org/14649009/diff/18001/base/os_compat_android.cc File base/os_compat_android.cc (right): https://codereview.chromium.org/14649009/diff/18001/base/os_compat_android.cc#newcode22 base/os_compat_android.cc:22: return syscall(__NR_utimensat, fd, NULL, tv, 0); utimensat can be ...
7 years, 6 months ago (2013-06-06 00:50:59 UTC) #6
nilesh
https://codereview.chromium.org/14649009/diff/18001/base/os_compat_android.cc File base/os_compat_android.cc (right): https://codereview.chromium.org/14649009/diff/18001/base/os_compat_android.cc#newcode22 base/os_compat_android.cc:22: return syscall(__NR_utimensat, fd, NULL, tv, 0); On 2013/06/06 00:50:59, ...
7 years, 6 months ago (2013-06-06 01:57:35 UTC) #7
Mark Mentovai
https://codereview.chromium.org/14649009/diff/29001/base/os_compat_android.cc File base/os_compat_android.cc (right): https://codereview.chromium.org/14649009/diff/29001/base/os_compat_android.cc#newcode23 base/os_compat_android.cc:23: // timeval.usec is guaranteed to be less than one ...
7 years, 6 months ago (2013-06-06 13:37:44 UTC) #8
Mark Mentovai
nilesh wrote: > I tried adding a test for this, but looks like the fractional ...
7 years, 6 months ago (2013-06-06 13:41:05 UTC) #9
nilesh
https://codereview.chromium.org/14649009/diff/29001/base/os_compat_android.cc File base/os_compat_android.cc (right): https://codereview.chromium.org/14649009/diff/29001/base/os_compat_android.cc#newcode23 base/os_compat_android.cc:23: // timeval.usec is guaranteed to be less than one ...
7 years, 6 months ago (2013-06-06 19:03:08 UTC) #10
Mark Mentovai
Excellent. LGTM.
7 years, 6 months ago (2013-06-06 19:14:19 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nileshagrawal@chromium.org/14649009/34001
7 years, 6 months ago (2013-06-06 19:49:56 UTC) #12
commit-bot: I haz the power
7 years, 6 months ago (2013-06-06 22:42:48 UTC) #13
Message was sent while issue was closed.
Change committed as 204633

Powered by Google App Engine
This is Rietveld 408576698