diff options
author | João Reis <reis@janeasystems.com> | 2019-08-22 02:40:47 +0300 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2019-09-25 19:20:50 +0300 |
commit | 78af92dda5820f724e9bc65be201b67898db928a (patch) | |
tree | 5b9c4324696d68d17f331359a3579b319247e5e6 /doc/api | |
parent | 97d8b33ffc3afaf2308410df7da275bf226c47b3 (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 'doc/api')
-rw-r--r-- | doc/api/fs.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/api/fs.md b/doc/api/fs.md index 8077c533f85..2f1ce3f4876 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -5031,6 +5031,12 @@ The following constants are meant for use with `fs.open()`. <td><code>O_NONBLOCK</code></td> <td>Flag indicating to open the file in nonblocking mode when possible.</td> </tr> + <tr> + <td><code>UV_FS_O_FILEMAP</code></td> + <td>When set, a memory file mapping is used to access the file. This flag + is available on Windows operating systems only. On other operating systems, + this flag is ignored.</td> + </tr> </table> ### File Type Constants |