/* * Returns the instruction set architecture, e.g. "sparc". */ static VALUE uname_architecture() { char buf[BUFSIZE]; sysinfo(SI_ARCHITECTURE, buf, BUFSIZE); return rb_str_new2(buf); }