/* Including became more and more painful. Below a very abbreviated version of some declarations, only designed to be able to check a magic number in case no filesystem type was given. */ #ifndef BLKGETSIZE #ifndef _IO /* pre-1.3.45 */ #define BLKGETSIZE 0x1260 /* return device size */ #else /* same on i386, m68k, arm; different on alpha, mips, sparc, ppc */ #define BLKGETSIZE _IO(0x12,96) #endif #endif