From 3b17f3b80a4b96713b4a98fc85c32df44b7ba6ab Mon Sep 17 00:00:00 2001 From: Ian Babrou Date: Tue, 28 Aug 2012 11:03:51 +0400 Subject: [PATCH] constants: add O_DIRECT This will allow to speed up file i/o in some cases by usage of right offsets and buffer sizes. --- src/node_constants.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/node_constants.cc b/src/node_constants.cc index 06397b9280..2aea278cb6 100644 --- a/src/node_constants.cc +++ b/src/node_constants.cc @@ -106,6 +106,9 @@ void DefineConstants(Handle target) { NODE_DEFINE_CONSTANT(target, O_SYMLINK); #endif +#ifdef O_DIRECT + NODE_DEFINE_CONSTANT(target, O_DIRECT); +#endif #ifdef S_IRWXU NODE_DEFINE_CONSTANT(target, S_IRWXU);