diff options
author | cjihrig <cjihrig@gmail.com> | 2018-04-02 22:12:57 +0300 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2018-04-06 06:11:20 +0300 |
commit | a16d88d9e9a6581e463082549823189aba25ca76 (patch) | |
tree | 6cc8d07304c9b1148f7e3dcf74e5dbb7b029d6b3 /src/node_constants.cc | |
parent | 617946779c677e0669395cac8fbc2c0dace9da43 (diff) |
fs: expose copy-on-write flags for fs.copyFile()
This commit exposes the UV_FS_COPYFILE_FICLONE and
UV_FS_COPYFILE_FICLONE_FORCE flags added in libuv 1.20.0.
Fixes: https://github.com/nodejs/node/issues/19152
PR-URL: https://github.com/nodejs/node/pull/19759
Fixes: https://github.com/nodejs/node/issues/19152
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_constants.cc')
-rw-r--r-- | src/node_constants.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/node_constants.cc b/src/node_constants.cc index 2eaf622da7d..8f119a27ba8 100644 --- a/src/node_constants.cc +++ b/src/node_constants.cc @@ -1314,6 +1314,8 @@ void DefineConstants(v8::Isolate* isolate, Local<Object> target) { // Define libuv constants. NODE_DEFINE_CONSTANT(os_constants, UV_UDP_REUSEADDR); NODE_DEFINE_CONSTANT(fs_constants, UV_FS_COPYFILE_EXCL); + NODE_DEFINE_CONSTANT(fs_constants, UV_FS_COPYFILE_FICLONE); + NODE_DEFINE_CONSTANT(fs_constants, UV_FS_COPYFILE_FICLONE_FORCE); os_constants->Set(OneByteString(isolate, "dlopen"), dlopen_constants); os_constants->Set(OneByteString(isolate, "errno"), err_constants); |