rdev()
public
Returns an integer representing the device type on which stat
resides. Returns nil if the operating system doesn’t support this
feature.
File.stat("/dev/fd1").rdev
File.stat("/dev/tty").rdev
static VALUE
rb_stat_rdev(VALUE self)
{
#ifdef HAVE_STRUCT_STAT_ST_RDEV
return DEVT2NUM(get_stat(self)->st_rdev);
#else
return Qnil;
#endif
}