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

Issue 99933002: [NaCl SDK] nacl_io: implement getaddrinfo() (Closed)

Created:
7 years ago by Sam Clegg
Modified:
6 years, 10 months ago
CC:
chromium-reviews, binji
Visibility:
Public.

Description

[NaCl SDK] nacl_io: implement getaddrinfo() Change gethostbyname such that is implemented in terms of getaddrinfo(). Change lookups such that purely numeric lookups don't rely on the PPAPI interface at all. Add lock to gethostbyname() so that it at least won't crash when run from multiple threads. I'm sure there are still edge cases where this version of getaddrinfo does the wrong thing, but I've tried to cover all simple uses with unittests. BUG=315197 R=binji@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=249510

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 57

Patch Set 5 : #

Total comments: 1

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+962 lines, -172 lines) Patch
M native_client_sdk/src/examples/demo/nacl_io/example.js View 1 2 3 4 5 1 chunk +18 lines, -0 lines 0 comments Download
M native_client_sdk/src/examples/demo/nacl_io/handlers.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M native_client_sdk/src/examples/demo/nacl_io/handlers.c View 1 2 3 4 5 6 1 chunk +78 lines, -0 lines 0 comments Download
M native_client_sdk/src/examples/demo/nacl_io/index.html View 1 2 3 4 5 2 chunks +13 lines, -0 lines 0 comments Download
M native_client_sdk/src/examples/demo/nacl_io/nacl_io_demo.c View 1 2 3 4 5 1 chunk +21 lines, -20 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/host_resolver.h View 1 2 3 2 chunks +6 lines, -1 line 0 comments Download
M native_client_sdk/src/libraries/nacl_io/host_resolver.cc View 1 2 3 4 5 4 chunks +335 lines, -99 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/kernel_intercept.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc View 1 2 3 2 chunks +12 lines, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/kernel_proxy.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/library.dsc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
A + native_client_sdk/src/libraries/nacl_io/syscalls/freeaddrinfo.c View 1 2 3 4 1 chunk +3 lines, -4 lines 0 comments Download
A native_client_sdk/src/libraries/nacl_io/syscalls/gai_strerror.c View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A native_client_sdk/src/libraries/nacl_io/syscalls/getaddrinfo.c View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/syscalls/hstrerror.c View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_host_resolver_interface.h View 1 2 3 2 chunks +8 lines, -6 lines 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_host_resolver_interface.cc View 1 2 3 4 6 chunks +53 lines, -15 lines 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_net_address_interface.cc View 1 2 3 4 chunks +35 lines, -9 lines 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/host_resolver_test.cc View 1 2 3 4 5 3 chunks +310 lines, -2 lines 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/socket_test.cc View 1 2 2 chunks +0 lines, -12 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Sam Clegg
6 years, 10 months ago (2014-01-29 17:26:07 UTC) #1
Sam Clegg
If you like I could split the updated fakes into their own CL, but it ...
6 years, 10 months ago (2014-01-29 17:30:26 UTC) #2
binji
https://codereview.chromium.org/99933002/diff/120001/native_client_sdk/src/libraries/nacl_io/host_resolver.cc File native_client_sdk/src/libraries/nacl_io/host_resolver.cc (right): https://codereview.chromium.org/99933002/diff/120001/native_client_sdk/src/libraries/nacl_io/host_resolver.cc#newcode25 native_client_sdk/src/libraries/nacl_io/host_resolver.cc:25: pp_hints->family = PP_NETADDRESS_FAMILY_IPV6; default value for else? https://codereview.chromium.org/99933002/diff/120001/native_client_sdk/src/libraries/nacl_io/host_resolver.cc#newcode37 native_client_sdk/src/libraries/nacl_io/host_resolver.cc:37: ...
6 years, 10 months ago (2014-01-29 19:18:52 UTC) #3
Sam Clegg
https://codereview.chromium.org/99933002/diff/120001/native_client_sdk/src/libraries/nacl_io/host_resolver.cc File native_client_sdk/src/libraries/nacl_io/host_resolver.cc (right): https://codereview.chromium.org/99933002/diff/120001/native_client_sdk/src/libraries/nacl_io/host_resolver.cc#newcode25 native_client_sdk/src/libraries/nacl_io/host_resolver.cc:25: pp_hints->family = PP_NETADDRESS_FAMILY_IPV6; On 2014/01/29 19:18:52, binji wrote: > ...
6 years, 10 months ago (2014-01-29 22:06:12 UTC) #4
binji
lgtm https://codereview.chromium.org/99933002/diff/140001/native_client_sdk/src/libraries/nacl_io/host_resolver.cc File native_client_sdk/src/libraries/nacl_io/host_resolver.cc (right): https://codereview.chromium.org/99933002/diff/140001/native_client_sdk/src/libraries/nacl_io/host_resolver.cc#newcode36 native_client_sdk/src/libraries/nacl_io/host_resolver.cc:36: addrinfo* ai = reinterpret_cast<addrinfo*>(malloc(sizeof(addrinfo))); this can just be ...
6 years, 10 months ago (2014-01-30 00:36:52 UTC) #5
Sam Clegg
The CQ bit was checked by sbc@chromium.org
6 years, 10 months ago (2014-02-04 22:33:19 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sbc@chromium.org/99933002/270001
6 years, 10 months ago (2014-02-04 23:01:03 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sbc@chromium.org/99933002/270001
6 years, 10 months ago (2014-02-05 01:24:08 UTC) #8
Paweł Hajdan Jr.
The CQ bit was unchecked by phajdan.jr@chromium.org
6 years, 10 months ago (2014-02-05 19:50:34 UTC) #9
Paweł Hajdan Jr.
The CQ bit was checked by phajdan.jr@chromium.org
6 years, 10 months ago (2014-02-05 19:53:40 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-06 04:18:58 UTC) #11
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) app_list_unittests, ash_unittests, aura_unittests, base_unittests, browser_tests, cacheinvalidation_unittests, ...
6 years, 10 months ago (2014-02-06 04:18:59 UTC) #12
Sam Clegg
The CQ bit was checked by sbc@chromium.org
6 years, 10 months ago (2014-02-06 16:54:30 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sbc@chromium.org/99933002/270001
6 years, 10 months ago (2014-02-06 16:55:09 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-06 16:55:22 UTC) #15
commit-bot: I haz the power
Failed to apply patch for native_client_sdk/src/libraries/nacl_io/syscalls/ioctl.c: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 10 months ago (2014-02-06 16:55:23 UTC) #16
Sam Clegg
The CQ bit was checked by sbc@chromium.org
6 years, 10 months ago (2014-02-06 20:10:47 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sbc@chromium.org/99933002/1050001
6 years, 10 months ago (2014-02-06 20:12:25 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-06 21:32:47 UTC) #19
commit-bot: I haz the power
Retried try job too often on android_aosp for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_aosp&number=45961
6 years, 10 months ago (2014-02-06 21:32:48 UTC) #20
Sam Clegg
6 years, 10 months ago (2014-02-06 21:55:47 UTC) #21
Message was sent while issue was closed.
Committed patchset #8 manually as r249510 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698