Fixed os::cpus and made os::memory work for OSX.

From: Ben Mahler <benjamin.mahler@gmail.com>
Review: https://reviews.apache.org/r/9793

git-svn-id: https://svn.apache.org/repos/asf/incubator/mesos/trunk@1460046 13f79535-47bb-0310-9956-ffa450edef68
Fixed io::read to not poll unnecessarily and re-enabled the buffered
read test.

From: Ben Mahler <benjamin.mahler@gmail.com>
Review: https://reviews.apache.org/r/9858

git-svn-id: https://svn.apache.org/repos/asf/incubator/mesos/trunk@1460047 13f79535-47bb-0310-9956-ffa450edef68
Added EXPECT/ASSERT_FUTURE_WILL_DISCARD to gtest.hpp.

From: Ben Mahler <benjamin.mahler@gmail.com>
Review: https://reviews.apache.org/r/10025

git-svn-id: https://svn.apache.org/repos/asf/incubator/mesos/trunk@1460048 13f79535-47bb-0310-9956-ffa450edef68
Added debugging symbols to default gcc flags for libprocess.

From: Ben Mahler <benjamin.mahler@gmail.com>
Review: https://reviews.apache.org/r/10067

git-svn-id: https://svn.apache.org/repos/asf/incubator/mesos/trunk@1460049 13f79535-47bb-0310-9956-ffa450edef68
Added debugging symbols to default gcc flags for mesos.

From: Ben Mahler <benjamin.mahler@gmail.com>
Review: https://reviews.apache.org/r/10068

git-svn-id: https://svn.apache.org/repos/asf/incubator/mesos/trunk@1460050 13f79535-47bb-0310-9956-ffa450edef68
Fixed libprocess http::get to close the socket.

From: Ben Mahler <benjamin.mahler@gmail.com>
Review: https://reviews.apache.org/r/10073

git-svn-id: https://svn.apache.org/repos/asf/incubator/mesos/trunk@1460051 13f79535-47bb-0310-9956-ffa450edef68
Fixed os::mktemp to use mkstemp, instead of the deprecated mktemp
syscall.

From: Ben Mahler <benjamin.mahler@gmail.com>
Review: https://reviews.apache.org/r/10074

git-svn-id: https://svn.apache.org/repos/asf/incubator/mesos/trunk@1460052 13f79535-47bb-0310-9956-ffa450edef68
Fixed TemporaryDirectoryTest to clean up the sandbox, and use ASSERTs
instead of CHECKs.

From: Ben Mahler <benjamin.mahler@gmail.com>
Review: https://reviews.apache.org/r/10077

git-svn-id: https://svn.apache.org/repos/asf/incubator/mesos/trunk@1460053 13f79535-47bb-0310-9956-ffa450edef68