readFile to take in fd
authorAravind Anbudurai <aru7@fb.com>
Tue, 2 Aug 2016 16:55:15 +0000 (09:55 -0700)
committerFacebook Github Bot 6 <facebook-github-bot-6-bot@fb.com>
Tue, 2 Aug 2016 17:08:55 +0000 (10:08 -0700)
commit4bd3e568094414d1135e2dcab5cdff14d84ed0d1
tree3ccb3ba53ec033819049d26a6fe233058cd1a68b
parent42cd3696a4aae657ec2ae420ed912abd3c274be6
readFile to take in fd

Summary:
I want to be able to read from an fd into an std::string and this diffs helps
with that.

Reviewed By: yfeldblum

Differential Revision: D3654709

fbshipit-source-id: d48e8001a50f90c66cbe5b4a3b536c7b0074c39d
folly/FileUtil.h
folly/test/FileUtilTest.cpp