Special-case /dev/null in open in the portability header
authorChristopher Dykes <cdykes@fb.com>
Wed, 10 Aug 2016 19:35:31 +0000 (12:35 -0700)
committerFacebook Github Bot 8 <facebook-github-bot-8-bot@fb.com>
Wed, 10 Aug 2016 19:38:26 +0000 (12:38 -0700)
commitc326c636c394b6b8c2ea170bafb89e7a00d8e828
tree48839e4dc626b15f8466421a9b86c138853a3562
parentaee84333e2d7b8a9958501d998099ce1793ac68c
Special-case /dev/null in open in the portability header

Summary: `/dev/null` doesn't exist on Windows, but thankfully, `NUL` does, and has the same semantics.

Reviewed By: meyering

Differential Revision: D3698007

fbshipit-source-id: 5ef31c6576f988dd747ea3c39e296c244bc640b7
folly/portability/Fcntl.cpp