Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

constants: add O_DIRECT

This will allow to speed up file i/o in some cases by usage of right offsets
and buffer sizes.
  • Loading branch information...
commit 3b17f3b80a4b96713b4a98fc85c32df44b7ba6ab 1 parent bf16d92
@bobrik bobrik authored bnoordhuis committed
Showing with 3 additions and 0 deletions.
  1. +3 −0  src/node_constants.cc
View
3  src/node_constants.cc
@@ -106,6 +106,9 @@ void DefineConstants(Handle<Object> 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);
Please sign in to comment.
Something went wrong with that request. Please try again.