RSC  0.17.1
PosixUtilities.cpp File Reference
#include "HostInfo.h"
#include <assert.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <sys/utsname.h>
#include <stdexcept>
#include <sstream>
#include <boost/algorithm/string.hpp>
#include <boost/format.hpp>
#include <boost/function.hpp>
Include dependency graph for PosixUtilities.cpp:

Go to the source code of this file.

Classes

struct  rsc::os::GetMachineType
 
struct  rsc::os::GetSysname
 
struct  rsc::os::GetRelease
 

Namespaces

 rsc
 
 rsc::os
 

Functions

std::string rsc::os::callWithUtsname (const std::string &context, boost::function1< std::string, const utsname & > thunk)
 
RSC_EXPORT std::string rsc::os::currentMachineType ()
 Determine and return the machine type, usually CPU architecture, of the local machine. More...
 
RSC_EXPORT std::string rsc::os::currentSoftwareType ()
 Determine and return the type of the operating system, usually the kernel name, running on the local machine. More...
 
RSC_EXPORT std::string rsc::os::currentSoftwareVersion ()
 Determine and return the version of the operating system within its type, usually the kernel version string, running on the local machine. More...
 
RSC_EXPORT std::string rsc::os::currentHostname ()
 Determine and return the hostname of the local machine. More...
 

Variables

const unsigned int rsc::os::HOSTNAME_MAX_LENGTH = 1024