summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2023-06-19 13:01:22 +0200
committerGitHub <noreply@github.com>2023-06-19 13:01:22 +0200
commitee81c27ccc0b81a0f6521508f96eb54a7f971799 (patch)
tree20760ffdacb8d38579e48cbf56a07e8ca0595b5c
parent33368d536084a4141e91badbf455a80ce9f858b6 (diff)
parent1add138ff014d161550f216b4c4831f702f489a7 (diff)
Merge pull request #5 from wasix-org/add_inet_ntoa_function
Added inet_ntoa function
-rw-r--r--Makefile1
-rw-r--r--expected/wasm32-wasi/defined-symbols.txt1
-rw-r--r--expected/wasm64-wasi/defined-symbols.txt1
-rw-r--r--libc-top-half/musl/include/arpa/inet.h2
4 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 01d0b32..be0ede9 100644
--- a/Makefile
+++ b/Makefile
@@ -127,6 +127,7 @@ LIBC_TOP_HALF_MUSL_SOURCES = \
network/ntohl.c \
network/ntohs.c \
network/inet_ntop.c \
+ network/inet_ntoa.c \
network/inet_pton.c \
network/inet_aton.c \
network/in6addr_any.c \
diff --git a/expected/wasm32-wasi/defined-symbols.txt b/expected/wasm32-wasi/defined-symbols.txt
index c16161c..81a96df 100644
--- a/expected/wasm32-wasi/defined-symbols.txt
+++ b/expected/wasm32-wasi/defined-symbols.txt
@@ -1032,6 +1032,7 @@ in6addr_any
in6addr_loopback
index
inet_aton
+inet_ntoa
inet_ntop
inet_pton
init_services
diff --git a/expected/wasm64-wasi/defined-symbols.txt b/expected/wasm64-wasi/defined-symbols.txt
index c16161c..81a96df 100644
--- a/expected/wasm64-wasi/defined-symbols.txt
+++ b/expected/wasm64-wasi/defined-symbols.txt
@@ -1032,6 +1032,7 @@ in6addr_any
in6addr_loopback
index
inet_aton
+inet_ntoa
inet_ntop
inet_pton
init_services
diff --git a/libc-top-half/musl/include/arpa/inet.h b/libc-top-half/musl/include/arpa/inet.h
index f657c30..88a38d0 100644
--- a/libc-top-half/musl/include/arpa/inet.h
+++ b/libc-top-half/musl/include/arpa/inet.h
@@ -16,8 +16,8 @@ uint16_t ntohs(uint16_t);
#ifdef __wasilibc_unmodified_upstream /* WASI has no inet_addr */
in_addr_t inet_addr (const char *);
in_addr_t inet_network (const char *);
-char *inet_ntoa (struct in_addr);
#endif
+char *inet_ntoa (struct in_addr);
int inet_pton (int, const char *__restrict, void *__restrict);
const char *inet_ntop (int, const void *__restrict, char *__restrict, socklen_t);