summaryrefslogtreecommitdiff
path: root/doc/api/fs.md
diff options
context:
space:
mode:
authorJoão Reis <reis@janeasystems.com>2019-08-22 00:40:47 +0100
committerJoão Reis <reis@janeasystems.com>2019-09-11 23:38:21 +0100
commit902c9fac194d06aec5fd5307a6712c39a6da18a7 (patch)
treef448455ad79eab4a8b57c8c7e8dcbafc30288707 /doc/api/fs.md
parent9a436d19f3cd541f92e3c1c26a0ec020a10960fa (diff)
downloadandroid-node-v8-902c9fac194d06aec5fd5307a6712c39a6da18a7.tar.gz
android-node-v8-902c9fac194d06aec5fd5307a6712c39a6da18a7.tar.bz2
android-node-v8-902c9fac194d06aec5fd5307a6712c39a6da18a7.zip
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/fs.md')
-rw-r--r--doc/api/fs.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/api/fs.md b/doc/api/fs.md
index 8077c533f8..2f1ce3f487 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