musl/arch/i386/bits/sysmacros.h

8 lines
205 B
C
Raw Normal View History

2011-02-12 05:22:29 +00:00
#define major(x) (((x) >> 8) & 0xff)
#define minor(x) ((x) & 0xff)
#define makedev(x,y) (((x)<<8)|((y)&0xff))
//#define makedev(x,y) \
// ((x)*0x100000001ULL)&(0xfffffffffff0)
// ((y)*0x1001 & 0xffff0ff)