Skip to content

Commit 3b17f3b

Browse files
bobrikbnoordhuis
authored andcommitted
constants: add O_DIRECT
This will allow to speed up file i/o in some cases by usage of right offsets and buffer sizes.
1 parent bf16d92 commit 3b17f3b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/node_constants.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ void DefineConstants(Handle<Object> target) {
106106
NODE_DEFINE_CONSTANT(target, O_SYMLINK);
107107
#endif
108108

109+
#ifdef O_DIRECT
110+
NODE_DEFINE_CONSTANT(target, O_DIRECT);
111+
#endif
109112

110113
#ifdef S_IRWXU
111114
NODE_DEFINE_CONSTANT(target, S_IRWXU);

0 commit comments

Comments
 (0)