ino()
public
Returns the inode number for stat.
File.stat("testfile").ino
Show source
static VALUE
rb_stat_ino(VALUE self)
{
struct stat *st = get_stat(self);
unsigned short *p2 = (unsigned short *)st;
unsigned int *p4 = (unsigned int *)st;
uint64_t r;
r = p2[2];
r <<= 16;
r |= p2[7];
r <<= 32;
r |= p4[5];
return ULL2NUM(r);
return ULL2NUM(get_stat(self)->st_ino);
return ULONG2NUM(get_stat(self)->st_ino);
}