From 902c9fac194d06aec5fd5307a6712c39a6da18a7 Mon Sep 17 00:00:00 2001 From: João Reis Date: Thu, 22 Aug 2019 00:40:47 +0100 Subject: 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 Reviewed-By: Ron Korving Reviewed-By: James M Snell --- doc/api/fs.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc/api/fs.md') 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()`. O_NONBLOCK Flag indicating to open the file in nonblocking mode when possible. + + UV_FS_O_FILEMAP + 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. + ### File Type Constants -- cgit v1.2.3