use definition S_IFBLK from stat.h rather than IFBLK from inode.h