Module: LinuxStat::Uname

Defined in:
ext/utsname/utsname.c

Class Method Summary collapse

Class Method Details

.machineObject



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

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

.nodenameObject



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

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

.releaseObject



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

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

.sysnameObject



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

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

.versionObject



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

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