Create a portability header for working with environment variables
authorChristopher Dykes <cdykes@fb.com>
Thu, 25 Feb 2016 17:41:35 +0000 (09:41 -0800)
committerfacebook-github-bot-1 <folly-bot@fb.com>
Thu, 25 Feb 2016 18:20:30 +0000 (10:20 -0800)
commit7bc876aa0bcd8b2685e7661050b102f3713524d8
tree652752a5b6d4593b9072ae4353a235b601b9ab73
parentddb7850ce6998d41b5f2e76492ec4f362d74127c
Create a portability header for working with environment variables

Summary:Because `extern char** environ` is not the correct way to access environ on Windows.
This also implements setenv and unsetenv for Windows, which means that TestUtils no longer needs to be disabled for the Windows build.

Reviewed By: mzlee

Differential Revision: D2973704

fb-gh-sync-id: 84db7db3494cf183fcbcc25063cb0482ef84ebf4
shipit-source-id: 84db7db3494cf183fcbcc25063cb0482ef84ebf4
folly/Makefile.am
folly/Subprocess.cpp
folly/experimental/TestUtil.cpp
folly/portability/Environment.cpp [new file with mode: 0755]
folly/portability/Environment.h [new file with mode: 0755]