13 #ifndef __STOUT_OS_POSIX_BOOTID_HPP__ 14 #define __STOUT_OS_POSIX_BOOTID_HPP__ 26 #if defined(__APPLE__) || defined(__FreeBSD__) 28 #endif // __APPLE__ || __FreeBSD__ 41 #elif defined(__APPLE__) || defined(__FreeBSD__) 48 if (boot_time.isError()) {
49 return Error(boot_time.error());
53 return Error(
"Not implemented");
59 #endif // __STOUT_OS_POSIX_BOOTID_HPP__ Try< std::string > bootId()
Definition: bootid.hpp:33
Definition: errorbase.hpp:36
T & get()&
Definition: try.hpp:80
Definition: posix_signalhandler.hpp:23
Result< std::string > read(int_fd fd, size_t size)
Definition: read.hpp:55
bool isError() const
Definition: try.hpp:78
Definition: sysctl.hpp:59
std::string stringify(int flags)
std::string trim(const std::string &from, Mode mode=ANY, const std::string &chars=WHITESPACE)
Definition: strings.hpp:67
Try< timeval > time() const
Definition: sysctl.hpp:218