/* * Returns the ASCII representation of the hardware-specific serial number * of the machine that executes the function. */ static VALUE uname_hw_serial() { char buf[BUFSIZE]; sysinfo(SI_HW_SERIAL, buf, BUFSIZE); return rb_Integer(rb_str_new2(buf)); }