ino()
public
Returns the inode number for stat.
File.stat("testfile").ino
Show source
static VALUE
rb_stat_ino(VALUE self)
{
/* assume INTEGER_PACK_LSWORD_FIRST and st_inohigh is just next of st_ino */
return rb_integer_unpack(&get_stat(self)->st_ino, 2,
SIZEOF_STRUCT_STAT_ST_INO, 0,
INTEGER_PACK_LSWORD_FIRST|INTEGER_PACK_NATIVE_BYTE_ORDER|
INTEGER_PACK_2COMP);
return ULL2NUM(get_stat(self)->st_ino);
return ULONG2NUM(get_stat(self)->st_ino);
}