now working with libuv v1.20.0

This commit is contained in:
Michele Caini 2018-04-03 13:35:58 +02:00
parent 55db2ba084
commit f6de644eea
3 changed files with 13 additions and 4 deletions

View File

@ -16,7 +16,7 @@ endif()
# Project configuration
#
project(uvw VERSION 1.7.0)
project(uvw VERSION 1.8.0)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug)

View File

@ -7,7 +7,7 @@ if(WIN32)
ExternalProject_Add(
libuv
GIT_REPOSITORY https://github.com/libuv/libuv.git
GIT_TAG v1.19.0
GIT_TAG v1.20.0
DOWNLOAD_DIR ${LIBUV_DEPS_DIR}
TMP_DIR ${LIBUV_DEPS_DIR}/tmp
STAMP_DIR ${LIBUV_DEPS_DIR}/stamp
@ -22,7 +22,7 @@ else()
ExternalProject_Add(
libuv
GIT_REPOSITORY https://github.com/libuv/libuv.git
GIT_TAG v1.19.0
GIT_TAG v1.20.0
DOWNLOAD_DIR ${LIBUV_DEPS_DIR}
TMP_DIR ${LIBUV_DEPS_DIR}/tmp
STAMP_DIR ${LIBUV_DEPS_DIR}/stamp

View File

@ -90,7 +90,9 @@ enum class UVFileOpenFlags: int {
enum class UVCopyFileFlags: int {
EXCL = UV_FS_COPYFILE_EXCL
EXCL = UV_FS_COPYFILE_EXCL,
FICLONE = UV_FS_COPYFILE_FICLONE,
FICLONE_FORCE = UV_FS_COPYFILE_FICLONE_FORCE
};
@ -1115,7 +1117,14 @@ public:
* * `FsReq::CopyFile::EXCL`: it fails if the destination path
* already exists (the default behavior is to overwrite the destination if
* it exists).
* * `FsReq::CopyFile::FICLONE`: If present, it will attempt to create a
* copy-on-write reflink. If the underlying platform does not support
* copy-on-write, then a fallback copy mechanism is used.
* * `FsReq::CopyFile::FICLONE_FORCE`: If present, it will attempt to create
* a copy-on-write reflink. If the underlying platform does not support
* copy-on-write, then an error is returned.
*
* @warning
* If the destination path is created, but an error occurs while copying the
* data, then the destination path is removed. There is a brief window of
* time between closing and removing the file where another process could