diff options
author | libuv upstream <libuv@googlegroups.com> | 2019-01-15 15:42:13 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-01-16 19:48:27 (GMT) |
commit | 4fcb0d0213112bb2fdb04bb27e82543b93cfe41d (patch) | |
tree | 746a72d3795b562075d66fab8947dfd7527b6044 /src/win/handle.c | |
parent | c8b67ea119c4000018238f6c3201a1364356d93a (diff) | |
download | CMake-4fcb0d0213112bb2fdb04bb27e82543b93cfe41d.zip CMake-4fcb0d0213112bb2fdb04bb27e82543b93cfe41d.tar.gz CMake-4fcb0d0213112bb2fdb04bb27e82543b93cfe41d.tar.bz2 |
libuv 2019-01-15 (f84c5e69)
Code extracted from:
https://github.com/libuv/libuv.git
at commit f84c5e693b80cb0c62bcefba147e7a66e2b839c9 (v1.x).
Diffstat (limited to 'src/win/handle.c')
-rw-r--r-- | src/win/handle.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/win/handle.c b/src/win/handle.c index 3915070..9d76c3f 100644 --- a/src/win/handle.c +++ b/src/win/handle.c @@ -59,15 +59,15 @@ uv_handle_type uv_guess_handle(uv_file file) { int uv_is_active(const uv_handle_t* handle) { - return (handle->flags & UV__HANDLE_ACTIVE) && - !(handle->flags & UV__HANDLE_CLOSING); + return (handle->flags & UV_HANDLE_ACTIVE) && + !(handle->flags & UV_HANDLE_CLOSING); } void uv_close(uv_handle_t* handle, uv_close_cb cb) { uv_loop_t* loop = handle->loop; - if (handle->flags & UV__HANDLE_CLOSING) { + if (handle->flags & UV_HANDLE_CLOSING) { assert(0); return; } @@ -150,10 +150,14 @@ void uv_close(uv_handle_t* handle, uv_close_cb cb) { int uv_is_closing(const uv_handle_t* handle) { - return !!(handle->flags & (UV__HANDLE_CLOSING | UV_HANDLE_CLOSED)); + return !!(handle->flags & (UV_HANDLE_CLOSING | UV_HANDLE_CLOSED)); } uv_os_fd_t uv_get_osfhandle(int fd) { return uv__get_osfhandle(fd); } + +int uv_open_osfhandle(uv_os_fd_t os_fd) { + return _open_osfhandle((intptr_t) os_fd, 0); +} |