diff options
author | Brad King <brad.king@kitware.com> | 2019-06-18 11:45:53 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-06-18 11:45:53 (GMT) |
commit | 69b139cfca6c5eef64558070f533b6c898f410e0 (patch) | |
tree | 12d281e91cc1f71c56e2e1372589085df4df8265 /Utilities/cmlibuv/src/unix/internal.h | |
parent | ab63072381171e9c5a7164536f0912b8b3a4a313 (diff) | |
parent | b4069b04ff63b327ff4881282200c3c73fded34d (diff) | |
download | CMake-69b139cfca6c5eef64558070f533b6c898f410e0.zip CMake-69b139cfca6c5eef64558070f533b6c898f410e0.tar.gz CMake-69b139cfca6c5eef64558070f533b6c898f410e0.tar.bz2 |
Merge branch 'upstream-libuv' into update-libuv
* upstream-libuv:
libuv 2019-06-10 (ee24ce90)
Diffstat (limited to 'Utilities/cmlibuv/src/unix/internal.h')
-rw-r--r-- | Utilities/cmlibuv/src/unix/internal.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Utilities/cmlibuv/src/unix/internal.h b/Utilities/cmlibuv/src/unix/internal.h index 48fe6e8..b43c0b1 100644 --- a/Utilities/cmlibuv/src/unix/internal.h +++ b/Utilities/cmlibuv/src/unix/internal.h @@ -105,8 +105,7 @@ int uv__pthread_sigmask(int how, const sigset_t* set, sigset_t* oset); */ #if defined(__clang__) || \ defined(__GNUC__) || \ - defined(__INTEL_COMPILER) || \ - defined(__SUNPRO_C) + defined(__INTEL_COMPILER) # define UV_DESTRUCTOR(declaration) __attribute__((destructor)) declaration # define UV_UNUSED(declaration) __attribute__((unused)) declaration #else @@ -194,6 +193,7 @@ int uv__nonblock_ioctl(int fd, int set); int uv__nonblock_fcntl(int fd, int set); int uv__close(int fd); /* preserves errno */ int uv__close_nocheckstdio(int fd); +int uv__close_nocancel(int fd); int uv__socket(int domain, int type, int protocol); ssize_t uv__recvmsg(int fd, struct msghdr *msg, int flags); void uv__make_close_pending(uv_handle_t* handle); @@ -316,4 +316,11 @@ UV_UNUSED(static char* uv__basename_r(const char* path)) { int uv__inotify_fork(uv_loop_t* loop, void* old_watchers); #endif +typedef int (*uv__peersockfunc)(int, struct sockaddr*, socklen_t*); + +int uv__getsockpeername(const uv_handle_t* handle, + uv__peersockfunc func, + struct sockaddr* name, + int* namelen); + #endif /* UV_UNIX_INTERNAL_H_ */ |