int make_tempfile(const std::string &contents);
// Opposite of make_tempfile(). Returns false on failure.
+bool read_tempfile_and_close(int fd, std::string *contents);
+
+// Same as read_tempfile_and_close(), without the close.
bool read_tempfile(int fd, std::string *contents);
#endif // !defined(_UTIL_H