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; }