diff options
author | Rich Trott <rtrott@gmail.com> | 2016-05-01 00:13:00 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2016-05-04 20:18:25 +0300 |
commit | 52f85bebfc7fac8b9cf4a91662580c21bdbce491 (patch) | |
tree | 9a4895f66516b38dfddb52b3aeed322685d968eb /src/node_constants.cc | |
parent | b72d048a743dc7dbe8a1c6d9843d358cb55a1c46 (diff) |
src: add O_NOATIME constant
Add O_NOATIME flag on Linux for use with `fs.open()`.
PR-URL: https://github.com/nodejs/node/pull/6492
Fixes: https://github.com/nodejs/node/issues/2182
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'src/node_constants.cc')
-rw-r--r-- | src/node_constants.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/node_constants.cc b/src/node_constants.cc index 87443c95be1..928502f6aff 100644 --- a/src/node_constants.cc +++ b/src/node_constants.cc @@ -1036,6 +1036,10 @@ void DefineSystemConstants(Local<Object> target) { NODE_DEFINE_CONSTANT(target, O_EXCL); #endif +#ifdef O_NOATIME + NODE_DEFINE_CONSTANT(target, O_NOATIME); +#endif + #ifdef O_NOFOLLOW NODE_DEFINE_CONSTANT(target, O_NOFOLLOW); #endif |