summaryrefslogtreecommitdiffstats
path: root/Utilities/cmlibuv/src/uv-common.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-01-13 20:46:20 (GMT)
committerBrad King <brad.king@kitware.com>2022-01-13 20:46:20 (GMT)
commitea70fb3905d98344daff63b2ed505ba294785326 (patch)
tree2a5d333d16650fc476963fa6bc4ff71944190742 /Utilities/cmlibuv/src/uv-common.c
parenta20d9e1463eaa8df1c11fcc244d324f2344e21f5 (diff)
parent09ec116d91c571dff0f108c23eabbcccdca767fa (diff)
downloadCMake-ea70fb3905d98344daff63b2ed505ba294785326.zip
CMake-ea70fb3905d98344daff63b2ed505ba294785326.tar.gz
CMake-ea70fb3905d98344daff63b2ed505ba294785326.tar.bz2
Merge branch 'upstream-libuv' into update-libuv
# By libuv upstream * upstream-libuv: libuv 2022-01-13 (2fbfa035)
Diffstat (limited to 'Utilities/cmlibuv/src/uv-common.c')
-rw-r--r--Utilities/cmlibuv/src/uv-common.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/Utilities/cmlibuv/src/uv-common.c b/Utilities/cmlibuv/src/uv-common.c
index 8bce62e..e88347a 100644
--- a/Utilities/cmlibuv/src/uv-common.c
+++ b/Utilities/cmlibuv/src/uv-common.c
@@ -275,6 +275,20 @@ int uv_ip6_name(const struct sockaddr_in6* src, char* dst, size_t size) {
}
+int uv_ip_name(const struct sockaddr *src, char *dst, size_t size) {
+ switch (src->sa_family) {
+ case AF_INET:
+ return uv_inet_ntop(AF_INET, &((struct sockaddr_in *)src)->sin_addr,
+ dst, size);
+ case AF_INET6:
+ return uv_inet_ntop(AF_INET6, &((struct sockaddr_in6 *)src)->sin6_addr,
+ dst, size);
+ default:
+ return UV_EAFNOSUPPORT;
+ }
+}
+
+
int uv_tcp_bind(uv_tcp_t* handle,
const struct sockaddr* addr,
unsigned int flags) {
@@ -889,7 +903,12 @@ void uv_library_shutdown(void) {
uv__process_title_cleanup();
uv__signal_cleanup();
+#ifdef __MVS__
+ /* TODO(itodorov) - zos: revisit when Woz compiler is available. */
+ uv__os390_cleanup();
+#else
uv__threadpool_cleanup();
+#endif
uv__store_relaxed(&was_shutdown, 1);
}