about summary refs log tree commit diff
path: root/include/sys/sysmacros.h
blob: a2e2eaa247c2cd12621b5766805ceb959020f8a6 (plain) (blame)
1
2
3
4
5
6
7
8
#ifndef _SYSMACROS_H
#define _SYSMACROS_H

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

#endif