summaryrefslogtreecommitdiffstats
path: root/Utilities/cmlibuv/src/win/handle.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-01-21 12:54:36 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-01-21 12:54:45 (GMT)
commit55a2dc3055e8c5f2189c763eb3fd4c9c754d1c05 (patch)
tree9b7c691309d0a0eb52acbd32d5357e038552376c /Utilities/cmlibuv/src/win/handle.c
parenteadaf0c8c3b4112d38a19b20a9d303e83640373d (diff)
parent5b3af28e4532eadf92dee229870cadc94be9c635 (diff)
downloadCMake-55a2dc3055e8c5f2189c763eb3fd4c9c754d1c05.zip
CMake-55a2dc3055e8c5f2189c763eb3fd4c9c754d1c05.tar.gz
CMake-55a2dc3055e8c5f2189c763eb3fd4c9c754d1c05.tar.bz2
Merge topic 'update-libuv'
5b3af28e45 libuv: Update CMake-internal buildsystem 1136275ae1 libuv: Include uv/ headers from each other without any path 1e1209729b Merge branch 'upstream-libuv' into update-libuv 4fcb0d0213 libuv 2019-01-15 (f84c5e69) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2822
Diffstat (limited to 'Utilities/cmlibuv/src/win/handle.c')
-rw-r--r--Utilities/cmlibuv/src/win/handle.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/Utilities/cmlibuv/src/win/handle.c b/Utilities/cmlibuv/src/win/handle.c
index 3915070..9d76c3f 100644
--- a/Utilities/cmlibuv/src/win/handle.c
+++ b/Utilities/cmlibuv/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);
+}