Declaration
#include <ospace/unix/system.h>
class os_system
clock_ticks_per_second
/*
static */ long clock_ticks_per_second()
Returns the number of
"clock ticks" per second. This is a constant and is used to
maintain some internal statistics, as well as provide an underlying
heartbeat of the operating system.
hardware_version
/*
static */ string hardware_version()
Returns the version
identification.
Throws: os_unix_toolkit_error
host_name
/*
static */ string host_name()
Returns the host name.
Throws: os_unix_toolkit_error
limit
/*
static */ long limit( int n )
Returns the limit
associated with the resource encoded by n .
Throws: os_unix_toolkit_error
machine
/*
static */ string machine()
Returns the name of the
hardware architecture.
Throws: os_unix_toolkit_error
page_size
/*
static */ long page_size()
Returns the number of
bytes in one of the pages. This is the granularity of many memory management
calls. This page size does not necessarily reflect the size of pages on the
underlying hardware.
platform_version
/*
static */ string platform_version()
Returns the release
identification.
Throws: os_unix_toolkit_error
posix_version
/*
static */ long posix_version()
Returns the POSIX.1
version number.
print
/*
static */ void print( ostream& stream )
Prints name to stream
.
system_name
/*
static */ string system_name()
Returns the name of the
operating system.
Throws: os_unix_toolkit_error
xpg_version
/*
static */ long xpg_version()
Returns the XPG
version number.
Throws: os_unix_toolkit_error