diff options
author | libuv upstream <libuv@googlegroups.com> | 2019-06-10 13:17:21 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-06-18 11:45:34 (GMT) |
commit | b4069b04ff63b327ff4881282200c3c73fded34d (patch) | |
tree | f1c97b98e2253ec8e4a9b75ee2f8f99426e9b2f6 /src/unix/internal.h | |
parent | 4fcb0d0213112bb2fdb04bb27e82543b93cfe41d (diff) | |
download | CMake-b4069b04ff63b327ff4881282200c3c73fded34d.zip CMake-b4069b04ff63b327ff4881282200c3c73fded34d.tar.gz CMake-b4069b04ff63b327ff4881282200c3c73fded34d.tar.bz2 |
libuv 2019-06-10 (ee24ce90)
Code extracted from:
https://github.com/libuv/libuv.git
at commit ee24ce900e5714c950b248da2bdd311b01c983be (v1.x).
Diffstat (limited to 'src/unix/internal.h')
-rw-r--r-- | src/unix/internal.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/unix/internal.h b/src/unix/internal.h index c059893..8c8ddc8 100644 --- a/src/unix/internal.h +++ b/src/unix/internal.h @@ -95,8 +95,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 @@ -184,6 +183,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); @@ -306,4 +306,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_ */ |