summaryrefslogtreecommitdiff
path: root/include/sys/sysmacros.h
blob: 2285271fbbbe8d95903cc62318fe95505c76c01a (plain) (blame)
1
2
3
4
5
6
7
8
#ifndef _SYS_SYSMACROS_H
#define _SYS_SYSMACROS_H

#define major(x) ((unsigned)((x) >> 8) & 0xff)
#define minor(x) ((unsigned)(x) & 0xff)
#define makedev(x,y) (((x)<<8)|((y)&0xff))

#endif