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
Fixed zookeeper detector by ignoring ZNONODE error in detectMaster()
when it happens after getting child znodes but before getting their
data.

Review: https://reviews.apache.org/r/10105

git-svn-id: https://svn.apache.org/repos/asf/incubator/mesos/trunk@1461915 13f79535-47bb-0310-9956-ffa450edef68
Fixed slave to not garbage collect old slave directories based on
their modification time.

Review: https://reviews.apache.org/r/10162

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