diff options
author | João Reis <reis@janeasystems.com> | 2019-08-22 02:40:47 +0300 |
---|---|---|
committer | João Reis <reis@janeasystems.com> | 2019-09-12 01:38:21 +0300 |
commit | 902c9fac194d06aec5fd5307a6712c39a6da18a7 (patch) | |
tree | f448455ad79eab4a8b57c8c7e8dcbafc30288707 /src/node_constants.cc | |
parent | 9a436d19f3cd541f92e3c1c26a0ec020a10960fa (diff) |
src,lib: expose memory file mapping flag
Support for UV_FS_O_FILEMAP was added in libuv in version 1.31.0.
This exposes the flag in fs.constants.
Refs: https://github.com/libuv/libuv/pull/2295
PR-URL: https://github.com/nodejs/node/pull/29260
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Ron Korving <ron@ronkorving.nl>
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 7c9e4ce2761..68af221b60a 100644 --- a/src/node_constants.cc +++ b/src/node_constants.cc @@ -1127,6 +1127,8 @@ void DefineSystemConstants(Local<Object> target) { NODE_DEFINE_CONSTANT(target, O_EXCL); #endif +NODE_DEFINE_CONSTANT(target, UV_FS_O_FILEMAP); + #ifdef O_NOCTTY NODE_DEFINE_CONSTANT(target, O_NOCTTY); #endif |