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)
61 m_sysname = unm.m_sysname;
62 m_nodename = unm.m_nodename;
63 m_release = unm.m_release;
64 m_version = unm.m_version;
65 m_machine = unm.m_machine;
67 m_errmsg = unm.m_errmsg;
68 m_errno = unm.m_errno;
76 std::string
sysname ()
const {
return m_sysname; }
77 std::string
nodename ()
const {
return m_nodename; }
78 std::string
release ()
const {
return m_release; }
79 std::string
version ()
const {
return m_version; }
80 std::string
machine ()
const {
return m_machine; }
82 std::string
message ()
const {
return m_errmsg; }
83 int error ()
const {
return m_errno; }
87 std::string m_sysname;
88 std::string m_nodename;
89 std::string m_release;
90 std::string m_version;
91 std::string m_machine;
99 OCTAVE_END_NAMESPACE(sys)
100 OCTAVE_END_NAMESPACE(
octave)
std::string release() const
std::string version() const
std::string nodename() const
std::string message() const
std::string machine() const
std::string sysname() const
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn