143 bool callcmd(
const std::string &cmd, std::string &result);
151 std::string
getenv(
const std::string &name,
const std::string &default_value);
std::string platform_name(os_platform type)
Get the platform name for the current operating system.
bool callcmd(const std::string &cmd, std::string &result)
Execute a system command and get the output.
std::string getenv(const std::string &name, const std::string &default_value)
Get an environment variable.
os_platform platform_type()
Get the platform type for the current operating system.
bool system(const std::string &cmd)
Execute a system command.
std::string cpp_stl_version()
Get the C++ standard library version.
endian endian_type()
Get the program endianness.
os_platform
Operating system platform type.
Definition sysutil.h:44
std::string homedir()
Get the home dir for the current user.
uint16_t byteswap(uint16_t value)
Byteswap a 16-bit value.
std::string architecture()
Get the architecture of the cpu processor(or operating system).
uint16_t program_bit()
Get the program bit.
std::string getcwd()
Get the working directory of the current excuting process.
endian
Endianness type.
Definition sysutil.h:32