diff options
author | Ian Babrou <ibobrik@gmail.com> | 2012-08-28 11:03:51 +0400 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-08-28 15:04:55 +0200 |
commit | 3b17f3b80a4b96713b4a98fc85c32df44b7ba6ab (patch) | |
tree | 6bbb2a61664d5796171bd329e85e2565eece40bb /src | |
parent | bf16d9280ea7aadce5c5437184c1d80e651a997a (diff) | |
download | node-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.
Diffstat (limited to 'src')
-rw-r--r-- | src/node_constants.cc | 3 |
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); |