Module: LinuxStat::Uname

Defined in:
ext/utsname/utsname.c

Class Method Summary collapse

Class Method Details

.machineObject



34
35
36
37
# File 'ext/utsname/utsname.c', line 34

static VALUE getMachine(VALUE obj) {
  VALUE machine = status < 0 ? rb_str_new_cstr("") : rb_str_new_cstr(buf.machine) ;
  return machine ;
}

.nodenameObject



19
20
21
22
# File 'ext/utsname/utsname.c', line 19

static VALUE getNodename(VALUE obj) {
  VALUE nodename = status < 0 ? rb_str_new_cstr("") : rb_str_new_cstr(buf.nodename) ;
  return nodename ;
}

.releaseObject



24
25
26
27
# File 'ext/utsname/utsname.c', line 24

static VALUE getRelease(VALUE obj) {
  VALUE release = status < 0 ? rb_str_new_cstr("") : rb_str_new_cstr(buf.release) ;
  return release ;
}

.sysnameObject



14
15
16
17
# File 'ext/utsname/utsname.c', line 14

static VALUE getSysname(VALUE obj) {
  VALUE sysname = status < 0 ? rb_str_new_cstr("") : rb_str_new_cstr(buf.sysname) ;
  return sysname ;
}

.versionObject



29
30
31
32
# File 'ext/utsname/utsname.c', line 29

static VALUE getVersion(VALUE obj) {
  VALUE version = status < 0 ? rb_str_new_cstr("") : rb_str_new_cstr(buf.version) ;
  return version ;
}