|
Adds htonl, htons, ntohl, and ntohs to newlib
I've implemented the four functions for converting from host to network
byte order and vice-versa. This is necessary because newlib does not
provide them.
I've also added prototypes for these functions to netinet/in.h, and
deleted some macro definitions in arpa/inet.h that Sam pointed out
would cause subtle bugs if users tried to forward declare inet_ntoa()
and inet_ntop().
NOTRY=true
BUG=None
TEST=None
R=noelallen@chromium.org,bradnelson@google.com
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216706
Total comments: 21
Total comments: 4
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+150 lines, -25 lines) |
Patch |
 |
M |
native_client_sdk/src/build_tools/sdk_files.list
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
native_client_sdk/src/libraries/nacl_io/library.dsc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
A |
native_client_sdk/src/libraries/nacl_io/syscalls/htonl.c
|
View
|
1
2
3
|
1 chunk |
+23 lines, -0 lines |
0 comments
|
Download
|
 |
A |
native_client_sdk/src/libraries/nacl_io/syscalls/htons.c
|
View
|
1
2
3
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
 |
M |
native_client_sdk/src/libraries/nacl_io/syscalls/inet_ntoa.cc
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
native_client_sdk/src/libraries/nacl_io/syscalls/inet_ntop.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
A |
native_client_sdk/src/libraries/nacl_io/syscalls/ntohl.c
|
View
|
1
2
3
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
 |
A |
native_client_sdk/src/libraries/nacl_io/syscalls/ntohs.c
|
View
|
1
2
3
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
 |
M |
native_client_sdk/src/libraries/nacl_io_test/socket_test.cc
|
View
|
1
2
3
4
5
6
|
4 chunks |
+42 lines, -4 lines |
0 comments
|
Download
|
 |
M |
native_client_sdk/src/libraries/third_party/newlib-extras/README.chromium
|
View
|
1
2
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
native_client_sdk/src/libraries/third_party/newlib-extras/arpa/inet.h
|
View
|
1
2
3
|
1 chunk |
+0 lines, -15 lines |
0 comments
|
Download
|
 |
M |
native_client_sdk/src/libraries/third_party/newlib-extras/netinet/in.h
|
View
|
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
Total messages: 21 (0 generated)
|