/* "@(#)sysmacros.h	5.1	6/9/86" */
/*
 * Some macros for units conversion
 */

/* major part of a device */
#define	major(x)	(int)((unsigned)x>>8)

/* minor part of a device */
#define	minor(x)	(int)(x&0377)

/* make a device number */
#define	makedev(x,y)	(dev_t)(((x)<<8) | (y))
