Fix the mode being used in the implementation of open in the Fcntl portability header
authorChristopher Dykes <cdykes@fb.com>
Wed, 3 Aug 2016 22:09:29 +0000 (15:09 -0700)
committerFacebook Github Bot 4 <facebook-github-bot-4-bot@fb.com>
Wed, 3 Aug 2016 22:23:49 +0000 (15:23 -0700)
commita0f8eed7f6e9a75451d0b7e7436e998ffeaea112
tree3c7097791ce02f23449c4a171b3a745ae99b5a03
parentabb963a06d6f2b7f6d39bbe34c5b6d581d79480e
Fix the mode being used in the implementation of open in the Fcntl portability header

Summary: The mode parameter to `open` under MSVC is not the same as the mode parameter everywhere else, so we need to do a bit of translation.

Reviewed By: yfeldblum

Differential Revision: D3651218

fbshipit-source-id: 80df1e15f34b8d66533256107d8c9218f757fde2
folly/portability/Fcntl.cpp