third_party/libprocess/include/stout/os.hpp
// Return the operating system name (e.g. Linux).
Return the operating system name .
Return the operating system name .
inline Try<std::string> sysname()
{
  Try<UTSInfo> info = uname();
  if (info.isError()) {
    return Try<std::string>::error(info.error());
  }
  return info.get().sysname;
}
inline Try < std :: string > sysname ( ) { Try < UTSInfo > info = uname ( ) ; if ( info . isError ( ) ) { return Try < std :: string > :: error ( info . error ( ) ) ; } return info . get ( ) . sysname ; }
Return the operating system name (e.g.
Return the operating system name ( e . g .