Method: LinuxStat::Uname.release
- Defined in:
- ext/utsname/utsname.c
.release ⇒ Object
Function to return the release, or nil if uname fails
23 24 25 26 27 28 29 |
# File 'ext/utsname/utsname.c', line 23
static VALUE getRelease(VALUE obj) {
struct utsname buf;
if (uname(&buf) == -1)
return Qnil;
return rb_str_new_cstr(buf.release);
}
|