23 #if !defined (octave_oct_uname_h)
24 #define octave_uname_h 1
35 : utsname_sysname (
"unknown"), utsname_nodename (
"unknown"),
36 utsname_release (
"unknown"), utsname_version (
"unknown"),
37 utsname_machine (
"unknown"),
38 msg (
"uname not supported on this system"), err (-1)
42 : utsname_sysname (unm.utsname_sysname),
43 utsname_nodename (unm.utsname_nodename),
44 utsname_release (unm.utsname_release),
45 utsname_version (unm.utsname_version),
46 utsname_machine (unm.utsname_machine),
47 msg (unm.msg), err (unm.err)
69 std::string
sysname (
void)
const {
return utsname_sysname; }
70 std::string
nodename (
void)
const {
return utsname_nodename; }
71 std::string
release (
void)
const {
return utsname_release; }
72 std::string
version (
void)
const {
return utsname_version; }
73 std::string
machine (
void)
const {
return utsname_machine; }
75 std::string
message (
void)
const {
return msg; }
76 int error (
void)
const {
return err; }
std::string release(void) const
std::string utsname_release
std::string sysname(void) const
std::string machine(void) const
std::string utsname_machine
std::string message(void) const
std::string utsname_nodename
octave_uname(const octave_uname &unm)
std::string nodename(void) const
std::string version(void) const
std::string utsname_sysname
std::string utsname_version