| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1036,6 +1036,10 @@ void DefineSystemConstants(Local<Object> target) { | |||
| 1036 | 1036 | NODE_DEFINE_CONSTANT(target, O_EXCL); | |
| 1037 | 1037 | #endif | |
| 1038 | 1038 | ||
| 1039 | + #ifdef O_NOATIME | ||
| 1040 | + NODE_DEFINE_CONSTANT(target, O_NOATIME); | ||
| 1041 | + #endif | ||
| 1042 | + | ||
| 1039 | 1043 | #ifdef O_NOFOLLOW | |
| 1040 | 1044 | NODE_DEFINE_CONSTANT(target, O_NOFOLLOW); | |
| 1041 | 1045 | #endif | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -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); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments