26 #if ! defined (octave_oct_uname_h)
27 #define octave_oct_uname_h 1
29 #include "octave-config.h"
44 : m_sysname (
"unknown"), m_nodename (
"unknown"),
45 m_release (
"unknown"), m_version (
"unknown"),
46 m_machine (
"unknown"),
47 m_errmsg (
"uname not supported on this system"), m_errno (-1)
51 : m_sysname (unm.m_sysname), m_nodename (unm.m_nodename),
52 m_release (unm.m_release), m_version (unm.m_version),
53 m_machine (unm.m_machine),
54 m_errmsg (unm.m_errmsg), m_errno (unm.m_errno)
76 std::string
sysname (
void)
const {
return m_sysname; }
77 std::string
nodename (
void)
const {
return m_nodename; }
78 std::string
release (
void)
const {
return m_release; }
79 std::string
version (
void)
const {
return m_version; }
80 std::string
machine (
void)
const {
return m_machine; }
82 std::string
message (
void)
const {
return m_errmsg; }
83 int error (
void)
const {
return m_errno; }
std::string release(void) const
std::string message(void) const
std::string version(void) const
std::string sysname(void) const
std::string nodename(void) const
std::string machine(void) const
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn