summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Babrou <ibobrik@gmail.com>2012-08-28 11:03:51 +0400
committerBen Noordhuis <info@bnoordhuis.nl>2012-08-28 15:04:55 +0200
commit3b17f3b80a4b96713b4a98fc85c32df44b7ba6ab (patch)
tree6bbb2a61664d5796171bd329e85e2565eece40bb
parentbf16d9280ea7aadce5c5437184c1d80e651a997a (diff)
downloadnode-new-3b17f3b80a4b96713b4a98fc85c32df44b7ba6ab.tar.gz
constants: add O_DIRECT
This will allow to speed up file i/o in some cases by usage of right offsets and buffer sizes.
-rw-r--r--src/node_constants.cc3
1 files changed, 3 insertions, 0 deletions
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<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);