= private = protected
dev_major()
Returns the major part of File_Stat#dev or nil.
File.stat("/dev/fd1").dev_major #=> 2 File.stat("/dev/tty").dev_major #=> 5
static VALUE rb_stat_dev_major(VALUE self) { #if defined(major) return DEVT2NUM(major(get_stat(self)->st_dev)); #else return Qnil; #endif }