|
[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
Total comments: 57
Total comments: 1
|
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
|
Total messages: 21 (0 generated)
|