/* * Returns the platform identifier. e.g. "SUNW,Sun-Blade-100". */ static VALUE uname_platform() { char buf[BUFSIZE]; sysinfo(SI_PLATFORM, buf, BUFSIZE); return rb_str_new2(buf); }