Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
constants: add O_DIRECT
Browse files Browse the repository at this point in the history
This will allow to speed up file i/o in some cases by usage of right offsets
and buffer sizes.
  • Loading branch information
bobrik authored and bnoordhuis committed Aug 28, 2012
1 parent bf16d92 commit 3b17f3b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/node_constants.cc
Expand Up @@ -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);
Expand Down

0 comments on commit 3b17f3b

Please sign in to comment.