We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcce05d commit cf4c83cCopy full SHA for cf4c83c
src/node_constants.cc
@@ -1036,6 +1036,10 @@ void DefineSystemConstants(Local<Object> target) {
1036
NODE_DEFINE_CONSTANT(target, O_EXCL);
1037
#endif
1038
1039
+#ifdef O_NOATIME
1040
+ NODE_DEFINE_CONSTANT(target, O_NOATIME);
1041
+#endif
1042
+
1043
#ifdef O_NOFOLLOW
1044
NODE_DEFINE_CONSTANT(target, O_NOFOLLOW);
1045
test/parallel/test-process-constants-noatime.js
@@ -0,0 +1,11 @@
1
+'use strict';
2
3
+require('../common');
4
+const assert = require('assert');
5
6
+const isLinux = process.platform === 'linux';
7
8
+const O_NOATIME = process.binding('constants').O_NOATIME;
9
+const expected = isLinux ? 0x40000 : undefined;
10
11
+assert.strictEqual(O_NOATIME, expected);
0 commit comments