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

Issue 269593011: [NaCl SDK] Modifying size_t and int to off_t. (Closed)

Created:
6 years, 7 months ago by Matthew Turk
Modified:
6 years, 7 months ago
Reviewers:
binji, Sam Clegg
CC:
chromium-reviews, binji+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

[NaCl SDK] Modifying size_t and int to off_t. This modifies a few locations that utilize size_t and int to track the number of bytes to instead use off_t. BUG=369279 R=binji@chromium.org, sbc@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=268022

Patch Set 1 #

Total comments: 6

Patch Set 2 : Update format and expand off_t usage #

Total comments: 6

Patch Set 3 : Fixing format strings for signs and osinttypes.h. #

Total comments: 2

Patch Set 4 : Remove iostream #

Patch Set 5 : Updating tests for off_t instead of size_t in GetSize #

Patch Set 6 : Place __STDC_FORMAT_MACROS inside conditional block #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -47 lines) Patch
M native_client_sdk/src/libraries/nacl_io/fusefs/fuse_fs.h View 1 chunk +1 line, -1 line 0 comments Download
M native_client_sdk/src/libraries/nacl_io/fusefs/fuse_fs.cc View 1 chunk +1 line, -1 line 0 comments Download
M native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs_node.h View 1 chunk +1 line, -1 line 0 comments Download
M native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs_node.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/httpfs/http_fs.cc View 1 chunk +1 line, -1 line 0 comments Download
M native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.h View 1 2 chunks +5 lines, -4 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc View 1 2 3 13 chunks +23 lines, -23 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/kernel_handle.h View 1 chunk +1 line, -1 line 0 comments Download
M native_client_sdk/src/libraries/nacl_io/kernel_handle.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/node.h View 1 chunk +1 line, -1 line 0 comments Download
M native_client_sdk/src/libraries/nacl_io/node.cc View 1 chunk +1 line, -1 line 0 comments Download
M native_client_sdk/src/libraries/nacl_io/osinttypes.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/filesystem_test.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/html5_fs_test.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/http_fs_test.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/mem_fs_node_test.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/mock_node.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 26 (0 generated)
Matthew Turk
I've tested this patch locally in pepper_canary as of this morning, but I can't get ...
6 years, 7 months ago (2014-05-02 17:28:32 UTC) #1
Sam Clegg
On 2014/05/02 17:28:32, Matthew Turk wrote: > I've tested this patch locally in pepper_canary as ...
6 years, 7 months ago (2014-05-02 17:33:23 UTC) #2
Sam Clegg
lgtm with nits. https://codereview.chromium.org/269593011/diff/1/native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs_node.cc File native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs_node.cc (right): https://codereview.chromium.org/269593011/diff/1/native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs_node.cc#newcode246 native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs_node.cc:246: *out_size = static_cast<off_t>(info.size); Is this cast ...
6 years, 7 months ago (2014-05-02 17:36:06 UTC) #3
binji
https://codereview.chromium.org/269593011/diff/1/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc File native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc (right): https://codereview.chromium.org/269593011/diff/1/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc#newcode86 native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc:86: bool ParseContentLength(const StringMap_t& headers, size_t* content_length) { s/size_t/off_t/
6 years, 7 months ago (2014-05-02 17:44:15 UTC) #4
Matthew Turk
This responds to the comments -- thanks for the pointer on runhooks, Sam. I'm in ...
6 years, 7 months ago (2014-05-02 18:47:43 UTC) #5
binji
https://codereview.chromium.org/269593011/diff/20001/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc File native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc (right): https://codereview.chromium.org/269593011/diff/20001/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc#newcode11 native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc:11: #include <iostream> Can you add this to osinttypes.h instead? ...
6 years, 7 months ago (2014-05-02 19:02:35 UTC) #6
Matthew Turk
https://codereview.chromium.org/269593011/diff/20001/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc File native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc (right): https://codereview.chromium.org/269593011/diff/20001/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc#newcode11 native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc:11: #include <iostream> On 2014/05/02 19:02:35, binji wrote: > Can ...
6 years, 7 months ago (2014-05-02 19:13:30 UTC) #7
Sam Clegg
https://codereview.chromium.org/269593011/diff/40001/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc File native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc (right): https://codereview.chromium.org/269593011/diff/40001/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc#newcode11 native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc:11: #include <iostream> Why is this needed? Doesn't osinttypes.h suffice?
6 years, 7 months ago (2014-05-02 19:32:49 UTC) #8
Matthew Turk
https://codereview.chromium.org/269593011/diff/40001/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc File native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc (right): https://codereview.chromium.org/269593011/diff/40001/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc#newcode11 native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc:11: #include <iostream> On 2014/05/02 19:32:49, Sam Clegg wrote: > ...
6 years, 7 months ago (2014-05-02 19:34:54 UTC) #9
binji
awesome, lgtm. Please wait for the SDK trybots before using the CQ.
6 years, 7 months ago (2014-05-02 19:44:18 UTC) #10
Matthew Turk
I've updated the tests to match the new GetSize definition. Could you bump the trybots?
6 years, 7 months ago (2014-05-02 20:30:03 UTC) #11
Matthew Turk
The CQ bit was checked by matthewturk@gmail.com
6 years, 7 months ago (2014-05-02 23:02:07 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/matthewturk@gmail.com/269593011/80001
6 years, 7 months ago (2014-05-02 23:02:28 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-02 23:29:39 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_clang_dbg on tryserver.chromium linux_chromium_chromeos_rel on tryserver.chromium
6 years, 7 months ago (2014-05-02 23:29:39 UTC) #15
Matthew Turk
This should fix the trybots on ChromeOS that the CQ failed on.
6 years, 7 months ago (2014-05-02 23:41:58 UTC) #16
binji
The CQ bit was checked by binji@chromium.org
6 years, 7 months ago (2014-05-03 00:00:41 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/matthewturk@gmail.com/269593011/90001
6 years, 7 months ago (2014-05-03 00:01:15 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-03 00:49:10 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium
6 years, 7 months ago (2014-05-03 00:49:10 UTC) #20
Matthew Turk
On 2014/05/03 00:49:10, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 7 months ago (2014-05-03 01:11:49 UTC) #21
Sam Clegg
On 2014/05/03 01:11:49, Matthew Turk wrote: > On 2014/05/03 00:49:10, I haz the power (commit-bot) ...
6 years, 7 months ago (2014-05-03 01:26:55 UTC) #22
Sam Clegg
On 2014/05/03 01:11:49, Matthew Turk wrote: > On 2014/05/03 00:49:10, I haz the power (commit-bot) ...
6 years, 7 months ago (2014-05-03 01:26:55 UTC) #23
Sam Clegg
The CQ bit was checked by sbc@chromium.org
6 years, 7 months ago (2014-05-03 01:27:06 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/matthewturk@gmail.com/269593011/90001
6 years, 7 months ago (2014-05-03 01:30:48 UTC) #25
commit-bot: I haz the power
6 years, 7 months ago (2014-05-03 02:58:25 UTC) #26
Message was sent while issue was closed.
Change committed as 268022

Powered by Google App Engine
This is Rietveld 408576698